﻿ACTIONSCRIPT (AS1/AS2) FOR FLASH #264185
https://swfchan.com/53/264185/

	movieClip 7 okayButton {
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 14 watertile {
	}
	movieClip 16 Collision_01 {
	}
	movieClip 18 GUI BG {
	}
	movieClip 21 dirttile {
	}
	movieClip 24 grasstile {
	}
	frame 1 {
		loadPercent = '0%';
		loadBytes = '0 of ' + Math.round(_root.getBytesTotal() / 1024) / 1000 + ' MB';
		amtLoaded = 0;
		_quality = 'MEDIUM';
		shadowsOn = true;
		gameDifficulty = 'normal';
		musicOn = true;
		mcWalkSpeed = 6;
		_root.kongregateServices.connect();
	}
	movieClip 28	{
	}
	movieClip 31	{
	}
	movieClip 34	{
	}
	movieClip 36	{
	}
	frame 2 {
		loadPercent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + '%';
		loadBytes = Math.round(_root.getBytesLoaded() / 1024) / 1000 + ' MB of ' + Math.round(_root.getBytesTotal() / 1024) / 1000 + ' MB loaded.';
		amtLoaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
		Hand.Shine._xscale = amtLoaded;
		Hand.Shine._yscale = amtLoaded;
		if (_root.getBytesLoaded() == _root.getBytesTotal()) {
			loadPercent = '100%';
			loadBytes = Math.round(_root.getBytesLoaded() / 1024) / 1000 + ' MB / ' + Math.round(_root.getBytesTotal() / 1024) / 1000 + ' MB loaded.';
			gotoAndPlay('Button');
		}
	}
	frame 3 {
		gotoAndPlay(2);
	}
	frame 4 {
		function donothing() {}
		function openMainMenu() {
			Sinister_Design_intro.removeMovieClip();
			playAdventureMusic01();
			play();
		}
		function refreshMenu() {
			if (menuclosed == false) {
				attachMovie('inGameMenu', 'ingameMenu', 500);
				ingameMenu._x = 5;
				ingameMenu._y = 57;
			}
			if (menuclosed == true) {
				ingameMenu.removeMovieClip();
			}
			if (convBoxClosed == false) {
				attachMovie('conv_Box', 'ConvBox', 510);
				ConvBox._x = 129;
				ConvBox._y = 57;
			}
			if (convBoxClosed == true) {
				ConvBox.removeMovieClip();
			}
			if (levelBoxClosed == false) {
				attachMovie('LevelUpBox', 'LevelUpBox', 620);
				LevelUpBox._x = 79;
				LevelUpBox._y = 57;
			}
			if (levelBoxClosed == true) {
				LevelUpBox.removeMovieClip();
			}
			if (cardGUIClosed == false) {
				attachMovie('CardGUI', 'cardGUI', 610);
				cardGUI._x = 4;
				cardGUI._y = 5;
			}
			if (cardGUIClosed == true) {
				cardGUI.removeMovieClip();
			}
			if (okayButtonClosed == false) {
				attachMovie('okayButton', 'okayButton', 630);
				okayButton._x = 260;
				okayButton._y = 190;
				okayButton.onPress = function () {
					okayButtonClosed = true;
					cardGUIClosed = true;
					refreshMenu();
					if (wonCards == 1) {
						convBranch = 12;
						money -= bet;
					}
					if (wonCards == 2) {
						convBranch = 13;
						money += bet;
					}
					convBoxClosed = false;
					conversation();
				};
			}
			if (okayButtonClosed == true) {
				okayButton.removeMovieClip();
			}
		}
		function unmute() {
			if (lastscene == 'town01') {
				playMystereMusic();
			}
			if (lastscene == 'town02') {
				playMystereMusic();
			}
			if (lastscene == 'town02B') {
				playMystereMusic();
			}
			if (lastscene == 'cave01') {
				playMystereMusic();
			}
			if (lastscene == 'cave02') {
				playMystereMusic();
			}
			if (lastscene == 'cave03') {
				playMystereMusic();
			}
			if (lastscene == 'cave04') {
				playCreepyMusic();
			}
			if (lastscene == 'deeper01') {
				playCreepyMusic();
			}
			if (lastscene == 'deeper02') {
				playCreepyMusic();
			}
			if (lastscene == 'deeper04') {
				playCreepyMusic();
			}
			if (lastscene == 'workshop01') {
				playInfiltrationMusic();
			}
			if (lastscene == 'workshop02') {
				playInfiltrationMusic();
			}
			if (lastscene == 'workshop03') {
				playInfiltrationMusic();
			}
			if (lastscene == 'workshop04') {
				playInfiltrationMusic();
			}
			if (lastscene == 'workshop05') {
				playInfiltrationMusic();
			}
			if (lastscene == 'workshop06') {
				playInfiltrationMusic();
			}
			if (lastscene == 'lake01') {
				playMystereMusic();
				playBeachWaves();
			}
			if (lastscene == 'lake02') {
				playMystereMusic();
				playBeachWaves();
			}
			if (lastscene == 'lake03') {
				playCreepyMusic();
			}
			if (lastscene == 'acad01') {
				playBazaarMusic();
			}
		}
		function adjustDifficulty() {
			if (gameDifficulty == 'easy') {
				wingold *= 0.9;
				wingold = Math.round(wingold);
				MaxHP16 *= 0.65;
				MaxHP16 = Math.round(MaxHP16);
				MaxHP17 *= 0.65;
				MaxHP17 = Math.round(MaxHP17);
				MaxHP18 *= 0.65;
				MaxHP18 = Math.round(MaxHP18);
				MaxHP19 *= 0.65;
				MaxHP19 = Math.round(MaxHP19);
				MaxHP20 *= 0.65;
				MaxHP20 = Math.round(MaxHP20);
				MaxHP21 *= 0.65;
				MaxHP21 = Math.round(MaxHP21);
				MaxHP22 *= 0.65;
				MaxHP22 = Math.round(MaxHP22);
				MaxHP23 *= 0.65;
				MaxHP23 = Math.round(MaxHP23);
				MaxHP24 *= 0.65;
				MaxHP24 = Math.round(MaxHP24);
				MaxHP25 *= 0.65;
				MaxHP25 = Math.round(MaxHP25);
				char16Strength *= 0.65;
				char16Strength = Math.round(char16Strength);
				char17Strength *= 0.65;
				char17Strength = Math.round(char17Strength);
				char18Strength *= 0.65;
				char18Strength = Math.round(char18Strength);
				char19Strength *= 0.65;
				char19Strength = Math.round(char19Strength);
				char20Strength *= 0.65;
				char20Strength = Math.round(char20Strength);
				char21Strength *= 0.65;
				char21Strength = Math.round(char21Strength);
				char22Strength *= 0.65;
				char22Strength = Math.round(char22Strength);
				char23Strength *= 0.65;
				char23Strength = Math.round(char23Strength);
				char24Strength *= 0.65;
				char24Strength = Math.round(char24Strength);
				char25Strength *= 0.65;
				char25Strength = Math.round(char25Strength);
			}
			if (gameDifficulty == 'normal') {
				wingold *= 1.2;
				wingold = Math.round(wingold);
			}
			if (gameDifficulty == 'hard') {
				wingold *= 1.7;
				wingold = Math.round(wingold);
				MaxHP16 *= 1.3;
				MaxHP16 = Math.round(MaxHP16);
				MaxHP17 *= 1.3;
				MaxHP17 = Math.round(MaxHP17);
				MaxHP18 *= 1.3;
				MaxHP18 = Math.round(MaxHP18);
				MaxHP19 *= 1.3;
				MaxHP19 = Math.round(MaxHP19);
				MaxHP20 *= 1.3;
				MaxHP20 = Math.round(MaxHP20);
				MaxHP21 *= 1.3;
				MaxHP21 = Math.round(MaxHP21);
				MaxHP22 *= 1.3;
				MaxHP22 = Math.round(MaxHP22);
				MaxHP23 *= 1.3;
				MaxHP23 = Math.round(MaxHP23);
				MaxHP24 *= 1.3;
				MaxHP24 = Math.round(MaxHP24);
				MaxHP25 *= 1.3;
				MaxHP25 = Math.round(MaxHP25);
				char16Strength *= 1.3;
				char16Strength = Math.round(char16Strength);
				char17Strength *= 1.3;
				char17Strength = Math.round(char17Strength);
				char18Strength *= 1.3;
				char18Strength = Math.round(char18Strength);
				char19Strength *= 1.3;
				char19Strength = Math.round(char19Strength);
				char20Strength *= 1.3;
				char20Strength = Math.round(char20Strength);
				char21Strength *= 1.3;
				char21Strength = Math.round(char21Strength);
				char22Strength *= 1.3;
				char22Strength = Math.round(char22Strength);
				char23Strength *= 1.3;
				char23Strength = Math.round(char23Strength);
				char24Strength *= 1.3;
				char24Strength = Math.round(char24Strength);
				char25Strength *= 1.3;
				char25Strength = Math.round(char25Strength);
			}
			if (gameDifficulty == 'brutal') {
				wingold *= 2.4;
				wingold = Math.round(wingold);
				MaxHP16 *= 1.6;
				MaxHP16 = Math.round(MaxHP16);
				MaxHP17 *= 1.6;
				MaxHP17 = Math.round(MaxHP17);
				MaxHP18 *= 1.6;
				MaxHP18 = Math.round(MaxHP18);
				MaxHP19 *= 1.6;
				MaxHP19 = Math.round(MaxHP19);
				MaxHP20 *= 1.6;
				MaxHP20 = Math.round(MaxHP20);
				MaxHP21 *= 1.6;
				MaxHP21 = Math.round(MaxHP21);
				MaxHP22 *= 1.6;
				MaxHP22 = Math.round(MaxHP22);
				MaxHP23 *= 1.6;
				MaxHP23 = Math.round(MaxHP23);
				MaxHP24 *= 1.6;
				MaxHP24 = Math.round(MaxHP24);
				MaxHP25 *= 1.6;
				MaxHP25 = Math.round(MaxHP25);
				char16Strength *= 1.6;
				char16Strength = Math.round(char16Strength);
				char17Strength *= 1.6;
				char17Strength = Math.round(char17Strength);
				char18Strength *= 1.6;
				char18Strength = Math.round(char18Strength);
				char19Strength *= 1.6;
				char19Strength = Math.round(char19Strength);
				char20Strength *= 1.6;
				char20Strength = Math.round(char20Strength);
				char21Strength *= 1.6;
				char21Strength = Math.round(char21Strength);
				char22Strength *= 1.6;
				char22Strength = Math.round(char22Strength);
				char23Strength *= 1.6;
				char23Strength = Math.round(char23Strength);
				char24Strength *= 1.6;
				char24Strength = Math.round(char24Strength);
				char25Strength *= 1.6;
				char25Strength = Math.round(char25Strength);
			}
			wongold = 'Won ' + wingold + ' gold coins!';
		}
		function removeGrotius() {
			if (slot1 == 'Grotius') {
				slot1 = 'none';
			}
			if (slot2 == 'Grotius') {
				slot2 = 'none';
			}
			if (slot3 == 'Grotius') {
				slot3 = 'none';
			}
			if (slot5 == 'Grotius') {
				slot5 = 'none';
			}
			if (slot6 == 'Grotius') {
				slot6 = 'none';
			}
			if (slot7 == 'Grotius') {
				slot7 = 'none';
			}
			if (slot8 == 'Grotius') {
				slot8 = 'none';
			}
		}
		function removeAnyaGuy() {
			if (slot1 == 'Anya' || slot1 == 'Guy') {
				slot1 = 'none';
			}
			if (slot2 == 'Anya' || slot2 == 'Guy') {
				slot2 = 'none';
			}
			if (slot3 == 'Anya' || slot3 == 'Guy') {
				slot3 = 'none';
			}
			if (slot5 == 'Anya' || slot5 == 'Guy') {
				slot5 = 'none';
			}
			if (slot6 == 'Anya' || slot6 == 'Guy') {
				slot6 = 'none';
			}
			if (slot7 == 'Anya' || slot7 == 'Guy') {
				slot7 = 'none';
			}
			if (slot8 == 'Anya' || slot8 == 'Guy') {
				slot8 = 'none';
			}
		}
		function playMenuClick() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
		function playMenuSelect() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
		}
		function playStepTile1() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_StepTile1', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_StepTile1);
			} else {
				this.createEmptyMovieClip('_StepTile1_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.StepTile1 = new Sound(this.BS_StepTile1);
			}
			_global.Behaviors.Sound.StepTile1.attachSound('StepTile1');
			_global.Behaviors.Sound.StepTile1.start(0, 1);
		}
		function playStepTile2() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_StepTile2', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_StepTile2);
			} else {
				this.createEmptyMovieClip('_StepTile2_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.StepTile2 = new Sound(this.BS_StepTile2);
			}
			_global.Behaviors.Sound.StepTile2.attachSound('StepTile2');
			_global.Behaviors.Sound.StepTile2.start(0, 1);
		}
		function playStepGrass1() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_StepGrass1', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_StepGrass1);
			} else {
				this.createEmptyMovieClip('_StepGrass1_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.StepGrass1 = new Sound(this.BS_StepGrass1);
			}
			_global.Behaviors.Sound.StepGrass1.attachSound('StepGrass1');
			_global.Behaviors.Sound.StepGrass1.start(0, 1);
		}
		function playStepGrass2() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_StepGrass2', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_StepGrass2);
			} else {
				this.createEmptyMovieClip('_StepGrass2_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.StepGrass2 = new Sound(this.BS_StepGrass2);
			}
			_global.Behaviors.Sound.StepGrass2.attachSound('StepGrass2');
			_global.Behaviors.Sound.StepGrass2.start(0, 1);
		}
		function playBeachWaves() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_BeachWaves', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.BeachWaves = new Sound(this._parent.BS_BeachWaves);
			} else {
				this.createEmptyMovieClip('_BeachWaves_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.BeachWaves = new Sound(this.BS_BeachWaves);
			}
			_global.Behaviors.Sound.BeachWaves.attachSound('BeachWaves');
			_global.Behaviors.Sound.BeachWaves.start(0, 99999999);
		}
		function playSDintro() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_playSDintro', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.playSDintro = new Sound(this._parent.BS_playSDintro);
			} else {
				this.createEmptyMovieClip('_playSDintro_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.playSDintro = new Sound(this.BS_playSDintro);
			}
			_global.Behaviors.Sound.playSDintro.attachSound('playSDintro');
			_global.Behaviors.Sound.playSDintro.start(0, 1);
		}
		function playFanfareMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_FanfareMusic', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.FanfareMusic = new Sound(this._parent.BS_FanfareMusic);
				} else {
					this.createEmptyMovieClip('_FanfareMusic_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.FanfareMusic = new Sound(this.BS_FanfareMusic);
				}
				_global.Behaviors.Sound.FanfareMusic.attachSound('FanfareMusic');
				_global.Behaviors.Sound.FanfareMusic.start(0, 1);
			}
		}
		function playEndingMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_EndingMusic', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.EndingMusic = new Sound(this._parent.BS_EndingMusic);
				} else {
					this.createEmptyMovieClip('_EndingMusic_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.EndingMusic = new Sound(this.BS_EndingMusic);
				}
				_global.Behaviors.Sound.EndingMusic.attachSound('EndingMusic');
				_global.Behaviors.Sound.EndingMusic.start(0, 1);
			}
		}
		function playTastidianIntro() {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_playTastidianIntro', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.playTastidianIntro = new Sound(this._parent.BS_playTastidianIntro);
			} else {
				this.createEmptyMovieClip('_playTastidianIntro_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.playTastidianIntro = new Sound(this.BS_playTastidianIntro);
			}
			_global.Behaviors.Sound.playTastidianIntro.attachSound('playTastidianIntro');
			_global.Behaviors.Sound.playTastidianIntro.start(0, 1);
		}
		function playMysteryFlourish() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_MysteryFlourish', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MysteryFlourish = new Sound(this._parent.BS_MysteryFlourish);
				} else {
					this.createEmptyMovieClip('_MysteryFlourish_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MysteryFlourish = new Sound(this.BS_MysteryFlourish);
				}
				_global.Behaviors.Sound.MysteryFlourish.attachSound('MysteryFlourish');
				_global.Behaviors.Sound.MysteryFlourish.start(0, 1);
			}
		}
		function playAdventureMusic01() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_AdventureMusic01', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.AdventureMusic01 = new Sound(this._parent.BS_AdventureMusic01);
				} else {
					this.createEmptyMovieClip('_AdventureMusic01_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.AdventureMusic01 = new Sound(this.BS_AdventureMusic01);
				}
				_global.Behaviors.Sound.AdventureMusic01.attachSound('AdventureMusic01');
				_global.Behaviors.Sound.AdventureMusic01.start(0, 9999);
			}
		}
		function playInfiltrationMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_InfiltrationMusic01', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.InfiltrationMusic01 = new Sound(this._parent.BS_InfiltrationMusic01);
				} else {
					this.createEmptyMovieClip('_InfiltrationMusic01_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.InfiltrationMusic01 = new Sound(this.BS_InfiltrationMusic01);
				}
				_global.Behaviors.Sound.InfiltrationMusic01.attachSound('InfiltrationMusic01');
				_global.Behaviors.Sound.InfiltrationMusic01.start(0, 9999);
			}
		}
		function playMystereMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_MystereMusic', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MystereMusic = new Sound(this._parent.BS_MystereMusic);
				} else {
					this.createEmptyMovieClip('_MystereMusic_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MystereMusic = new Sound(this.BS_MystereMusic);
				}
				_global.Behaviors.Sound.MystereMusic.attachSound('MystereMusic');
				_global.Behaviors.Sound.MystereMusic.start(0, 9999);
			}
		}
		function playMirrorMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_MirrorMusic', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MirrorMusic = new Sound(this._parent.BS_MirrorMusic);
				} else {
					this.createEmptyMovieClip('_MirrorMusic_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MirrorMusic = new Sound(this.BS_MirrorMusic);
				}
				_global.Behaviors.Sound.MirrorMusic.attachSound('MirrorMusic');
				_global.Behaviors.Sound.MirrorMusic.start(0, 9999);
			}
		}
		function playBazaarMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_BazaarMusic', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.BazaarMusic = new Sound(this._parent.BS_BazaarMusic);
				} else {
					this.createEmptyMovieClip('_BazaarMusic_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.BazaarMusic = new Sound(this.BS_BazaarMusic);
				}
				_global.Behaviors.Sound.BazaarMusic.attachSound('BazaarMusic');
				_global.Behaviors.Sound.BazaarMusic.start(0, 9999);
			}
		}
		function playCreepyMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_CreepyMusic01', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.CreepyMusic01 = new Sound(this._parent.BS_CreepyMusic01);
				} else {
					this.createEmptyMovieClip('_CreepyMusic01_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.CreepyMusic01 = new Sound(this.BS_CreepyMusic01);
				}
				_global.Behaviors.Sound.CreepyMusic01.attachSound('CreepyMusic01');
				_global.Behaviors.Sound.CreepyMusic01.start(0, 9999);
			}
		}
		function playDavidMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_DavidMusic', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.DavidMusic = new Sound(this._parent.BS_DavidMusic);
				} else {
					this.createEmptyMovieClip('_DavidMusic_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.DavidMusic = new Sound(this.BS_DavidMusic);
				}
				_global.Behaviors.Sound.DavidMusic.attachSound('DavidMusic');
				_global.Behaviors.Sound.DavidMusic.start(0, 9999);
			}
		}
		function playBattleMusic01() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_BattleMusic01', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.BattleMusic01 = new Sound(this._parent.BS_BattleMusic01);
				} else {
					this.createEmptyMovieClip('_BattleMusic01_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.BattleMusic01 = new Sound(this.BS_BattleMusic01);
				}
				_global.Behaviors.Sound.BattleMusic01.attachSound('BattleMusic01');
				_global.Behaviors.Sound.BattleMusic01.start(0, 999999);
			}
		}
		function playBattleMusic02() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_BattleMusic02', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.BattleMusic02 = new Sound(this._parent.BS_BattleMusic02);
				} else {
					this.createEmptyMovieClip('_BattleMusic02_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.BattleMusic02 = new Sound(this.BS_BattleMusic02);
				}
				_global.Behaviors.Sound.BattleMusic02.attachSound('BattleMusic02');
				_global.Behaviors.Sound.BattleMusic02.start(0, 999999);
			}
		}
		function playFinalBossMusic() {
			stopAllSounds();
			if (musicOn == true) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_FinalBossMusic', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.FinalBossMusic = new Sound(this._parent.BS_FinalBossMusic);
				} else {
					this.createEmptyMovieClip('_FinalBossMusic_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.FinalBossMusic = new Sound(this.BS_FinalBossMusic);
				}
				_global.Behaviors.Sound.FinalBossMusic.attachSound('FinalBossMusic');
				_global.Behaviors.Sound.FinalBossMusic.start(0, 999999);
			}
		}
		function cutScene() {
			if (cueScene == 'Forest01') {
				_root.attachMovie('csceneForest01', 'cutSceneMC', 20);
			}
			if (cueScene == 'DeeperDowns01') {
				_root.attachMovie('csceneDeeperDowns01', 'cutSceneMC', 20);
			}
			if (cueScene == 'LakeAlto01') {
				_root.attachMovie('csceneLakeAlto01', 'cutSceneMC', 20);
			}
		}
		function safetyBonus() {
			_root.battleDisplay.removeMovieClip();
			if (totalDead == 0) {
				wingold *= 1.4;
				wingold = Math.round(wingold);
				_root.attachMovie('SafetyBonusB', 'SafetyBonusGUI', 99001);
				SafetyBonusGUI._x = 15;
				SafetyBonusGUI._y = 165;
				wongold = 'Won ' + wingold + ' gold coins!';
			}
			if (totalDead == 1) {
				wingold *= 1.2;
				wingold = Math.round(wingold);
				_root.attachMovie('SafetyBonusA', 'SafetyBonusGUI', 99001);
				SafetyBonusGUI._x = 15;
				SafetyBonusGUI._y = 165;
				wongold = 'Won ' + wingold + ' gold coins!';
			}
		}
		function checkOrbTotal() {
			totalOrbs = 0;
			if (gotWhiteOrb == true) {
				++totalOrbs;
			}
			if (gotOrangeOrb == true) {
				++totalOrbs;
			}
			if (gotRedOrb == true) {
				++totalOrbs;
			}
			if (gotBlueOrb == true) {
				++totalOrbs;
			}
			if (gotGreenOrb == true) {
				++totalOrbs;
			}
			if (gotYellowOrb == true) {
				++totalOrbs;
			}
			if (gotIndigoOrb == true) {
				++totalOrbs;
			}
			if (gotBlackOrb == true) {
				++totalOrbs;
			}
			_root.kongregateStats.submit('Orbs', totalOrbs);
		}
		function changeScene() {
			pinholeClose.removeMovieClip();
			fadeOut.removeMovieClip();
			fadeIn.removeMovieClip();
			cutSceneMC.removeMovieClip();
			Overhead.removeMovieClip();
			mapAcademy.removeMovieClip();
			mapDeeperDowns.removeMovieClip();
			mapLowlands.removeMovieClip();
			mapMechBase.removeMovieClip();
			mapMsgBox.removeMovieClip();
			if (_root.goingtoScene == 'mainmenu') {
				playAdventureMusic01();
				gotoAndPlay('mainmenuload');
			}
			if (goingtoScene == 'tutorials') {
				playAdventureMusic01();
				gotoAndPlay('Tutorials');
			}
			if (goingtoScene == 'multiplayerMenu') {
				playAdventureMusic01();
				gotoAndPlay('duelSetup');
			}
			if (goingtoScene == 'intro') {
				stopAllSounds();
				gotoAndStop('IntroCutScene');
			}
			if (goingtoScene == 'ending01') {
				endingText = 1;
				playEndingMusic();
				gotoAndStop('ending');
			}
			if (goingtoScene == 'ending02') {
				endingText = 2;
				playEndingMusic();
				gotoAndStop('ending');
			}
			if (goingtoScene == 'mapScreen') {
				playAdventureMusic01();
				gotoAndPlay('mapScreen');
			}
			if (goingtoScene == 'deathScreen') {
				playMystereMusic();
				gotoAndStop('deathScreen');
			}
			if (goingtoScene == 'startTownFight01') {
				playBattleMusic01();
				gotoAndPlay('startTownFight01');
			}
			if (goingtoScene == 'startTownFight02') {
				playBattleMusic01();
				gotoAndPlay('startTownFight02');
			}
			if (goingtoScene == 'startTownFight03') {
				playBattleMusic01();
				gotoAndPlay('startTownFight03');
			}
			if (goingtoScene == 'randomBattle01') {
				playBattleMusic01();
				gotoAndPlay('startRandom01');
			}
			if (goingtoScene == 'randomBattle02') {
				playBattleMusic01();
				gotoAndPlay('startRandom02');
			}
			if (goingtoScene == 'battle02A') {
				playBattleMusic01();
				gotoAndPlay('startBattle02A');
			}
			if (_root.goingtoScene == 'battle02B') {
				playBattleMusic02();
				gotoAndPlay('startBattle02B');
			}
			if (goingtoScene == 'battle03A') {
				lastscene = 'battle';
				playBattleMusic01();
				gotoAndPlay('startBattle03A');
			}
			if (goingtoScene == 'battle03B') {
				playBattleMusic01();
				gotoAndPlay('startBattle03B');
			}
			if (goingtoScene == 'battle03C') {
				playBattleMusic02();
				gotoAndPlay('startBattle03C');
			}
			if (goingtoScene == 'battle04A') {
				playBattleMusic01();
				gotoAndPlay('startBattle04A');
			}
			if (goingtoScene == 'battle04B') {
				playBattleMusic01();
				gotoAndPlay('startBattle04B');
			}
			if (goingtoScene == 'battle04C') {
				playBattleMusic02();
				gotoAndPlay('startBattle04C');
			}
			if (goingtoScene == 'battle05A') {
				playBattleMusic01();
				gotoAndPlay('startBattle05A');
			}
			if (goingtoScene == 'battle05B') {
				playBattleMusic01();
				gotoAndPlay('startBattle05B');
			}
			if (goingtoScene == 'battle05C') {
				playBattleMusic01();
				gotoAndPlay('startBattle05C');
			}
			if (goingtoScene == 'battle05D') {
				playBattleMusic01();
				gotoAndPlay('startBattle05D');
			}
			if (goingtoScene == 'battle05E') {
				playBattleMusic01();
				gotoAndPlay('startBattle05E');
			}
			if (goingtoScene == 'battle05F') {
				playBattleMusic01();
				gotoAndPlay('startBattle05F');
			}
			if (goingtoScene == 'battle05G') {
				playBattleMusic01();
				gotoAndPlay('startBattle05G');
			}
			if (goingtoScene == 'battle06A') {
				playBattleMusic01();
				gotoAndPlay('startBattle06A');
			}
			if (goingtoScene == 'battle06B') {
				playBattleMusic01();
				gotoAndPlay('startBattle06B');
			}
			if (goingtoScene == 'battle06C') {
				playBattleMusic01();
				gotoAndPlay('startBattle06C');
			}
			if (goingtoScene == 'battle06D') {
				playBattleMusic01();
				gotoAndPlay('startBattle06D');
			}
			if (goingtoScene == 'battle06E') {
				playBattleMusic02();
				gotoAndPlay('startBattle06E');
			}
			if (goingtoScene == 'battle07A') {
				playBattleMusic01();
				gotoAndPlay('startBattle07A');
			}
			if (goingtoScene == 'battle07B') {
				playBattleMusic02();
				gotoAndPlay('startBattle07B');
			}
			if (goingtoScene == 'battle08A') {
				playBattleMusic01();
				gotoAndPlay('startBattle08A');
			}
			if (goingtoScene == 'battle08B') {
				playBattleMusic02();
				gotoAndPlay('startBattle08B');
			}
			if (goingtoScene == 'battle08C') {
				playBattleMusic01();
				gotoAndPlay('startBattle08C');
			}
			if (goingtoScene == 'battle08D') {
				playFinalBossMusic();
				gotoAndPlay('startBattle08D');
			}
			if (goingtoScene == 'battle08E') {
				playFinalBossMusic();
				gotoAndPlay('startBattle08E');
			}
			if (goingtoScene == 'town01') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startTown01');
				if (lastscene == 'town02') {
					mainChar._rotation -= 180;
					Overhead._y -= 520;
					Background._y -= 520;
				}
				if (lastscene == 'town03') {
					Overhead._y += 570;
					Background._y += 570;
				}
				if (lastscene == 'townfight01') {
					Overhead._x -= 250;
					Overhead._y -= 560;
					Background._x -= 250;
					Background._y -= 560;
				}
				if (lastscene == 'townfight02') {
					Overhead._x += 250;
					Overhead._y += 40;
					Background._x += 250;
					Background._y += 40;
				}
				if (lastscene == 'townfight03') {
					Overhead.Roof1B._visible = false;
					Background.Lala._visible = true;
					Overhead._x += 460;
					Overhead._y -= 100;
					Background._x += 460;
					Background._y -= 100;
				}
				if (lastscene !== 'town02' && lastscene !== 'town03') {
					playMystereMusic();
				}
			}
			if (goingtoScene == 'town01B') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startTown01B');
				playCreepyMusic();
			}
			if (goingtoScene == 'town02') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startTown02');
				if (lastscene !== 'town01') {
					playMystereMusic();
				}
			}
			if (goingtoScene == 'town02fromB') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startTown02');
				mainChar._rotation -= 180;
				Background._y -= 700;
			}
			if (goingtoScene == 'town02B') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startTown02B');
				if (lastscene !== 'town02' && lastscene !== 'town02C') {
					playMystereMusic();
				}
				if (lastscene == 'town02') {
					Background._y -= 200;
					mainChar._rotation -= 180;
				}
				if (lastscene == 'town02C') {
					Background._y += 100;
				}
			}
			if (goingtoScene == 'town02C') {
				gotoAndPlay('startTown02C');
			}
			if (goingtoScene == 'town03') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startTown03');
				mainChar._rotation = 180;
				if (lastscene !== 'town01') {
					playMystereMusic();
				}
			}
			if (goingtoScene == 'cave01') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startCave01');
				if (lastscene == 'cave02') {
					mainChar._rotation -= 180;
					Overhead._y -= 320;
					Background._y -= 320;
				}
				if (lastscene !== 'cave02') {
					playMystereMusic();
				}
			}
			if (goingtoScene == 'cave02') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startCave02');
				if (lastscene == 'cave03') {
					mainChar._rotation = 90;
					Overhead._x -= 360;
					Overhead._y -= 580;
					Background._x -= 360;
					Background._y -= 580;
				} else {
					if (lastscene !== 'cave01' && lastscene !== 'cave03') {
						playMystereMusic();
					}
				}
			}
			if (goingtoScene == 'cave02B') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startCave02B');
				playMirrorMusic();
			}
			if (goingtoScene == 'cave02C') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startCave02C');
				playMirrorMusic();
			}
			if (goingtoScene == 'cave03') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startCave03');
				mainChar._rotation = 270;
				if (lastscene == 'cave04') {
					Background._x -= 200;
					Overhead._x -= 200;
					mainChar._rotation = 90;
					playMystereMusic();
				}
			}
			if (goingtoScene == 'cave04') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startCave04');
				playCreepyMusic();
			}
			if (goingtoScene == 'deeper01') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startDeeper01');
				if (lastscene !== 'deeper02') {
					playCreepyMusic();
					mainChar._rotation = 270;
				}
				if (lastscene == 'deeper02') {
					mainChar._rotation = 90;
					Overhead._x -= 600;
					Overhead._y -= 80;
					Background._x -= 600;
					Background._y -= 80;
				}
			}
			if (goingtoScene == 'deeper02') {
				gotoAndStop('loadConvos');
				gotoAndPlay('startDeeper02');
				if (lastscene !== 'deeper01') {
					mainChar._rotation = 90;
					Background._x -= 700;
				}
				if (lastscene == 'deeper02') {
					playCreepyMusic();
				}
				if (lastscene == 'deeper01') {
					mainChar._rotation = 270;
				}
			}
			if (goingtoScene == 'deeper03') {
				gotoAndStop('loadConvos');
				stopAllSounds();
				gotoAndPlay('startDeeper03');
				mainChar._rotation = 315;
				if (lastscene == 'deeper03' && spokeToNarrator >= 7) {
					Background._x += 200;
					Background._y += 200;
				}
			}
			if (goingtoScene == 'deeper04') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startDeeper04');
				if (lastscene !== 'deeper02' && lastscene !== 'workshop07') {
					playCreepyMusic();
				}
				if (lastScene !== 'workshop01') {
					setSecurityCode();
					setFloorLamps();
					mainChar._rotation -= 180;
				}
				if (lastscene == 'workshop01') {
					mainChar._rotation = 315;
					Background._x += 350;
					Background._y += 313.3;
				}
				if (lastscene == 'workshop07') {
					mainChar._rotation -= 180;
					Background._y += 263.3;
				}
			}
			if (goingtoScene == 'workshop01') {
				gotoAndPlay('startWorkshop01');
				displayFloorLamps();
				if (lastscene !== 'workshop02') {
					mainChar._rotation -= 180;
					playInfiltrationMusic();
				}
				if (lastscene == 'workshop02') {
					Background._y += 574;
				}
			}
			if (goingtoScene == 'workshop02') {
				gotoAndPlay('startWorkshop02');
				displayFloorLamps();
				if (lastscene !== 'workshop03') {
					mainChar._rotation -= 180;
				}
				if (lastscene == 'workshop02') {
					playInfiltrationMusic();
				}
				if (lastscene == 'workshop03') {
					Background._y += 654.5;
				}
			}
			if (goingtoScene == 'workshop03') {
				gotoAndPlay('startWorkshop03');
				displayFloorLamps();
				if (lastscene !== 'workshop04') {
					mainChar._rotation -= 180;
				}
				if (lastscene == 'workshop03') {
					playInfiltrationMusic();
				}
				if (lastscene == 'workshop04') {
					Background._y += 654.5;
				}
			}
			if (goingtoScene == 'workshop04') {
				gotoAndPlay('startWorkshop04');
				displayFloorLamps();
				if (lastscene !== 'workshop05') {
					mainChar._rotation -= 180;
				}
				if (lastscene == 'workshop04') {
					playInfiltrationMusic();
				}
				if (lastscene == 'workshop05') {
					Overhead._y += 654.5;
					Background._y += 654.5;
				}
			}
			if (goingtoScene == 'workshop05') {
				gotoAndPlay('startWorkshop05');
				displayFloorLamps();
				if (lastscene !== 'workshop06') {
					mainChar._rotation -= 180;
				}
				if (lastscene == 'workshop05') {
					playInfiltrationMusic();
				}
				if (lastscene == 'workshop06') {
					Background._y += 654.5;
				}
			}
			if (goingtoScene == 'workshop06') {
				gotoAndPlay('startWorkshop06');
				displayWallLamp();
				mainChar._rotation -= 180;
				if (lastscene == 'workshop06') {
					playInfiltrationMusic();
				}
			}
			if (goingtoScene == 'workshop07') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startWorkshop07');
				mainChar._rotation -= 180;
				if (lastscene !== 'deeper04') {
					playCreepyMusic();
				}
			}
			if (goingtoScene == 'workshop07B') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startWorkshop07');
				mainChar._rotation -= 180;
				Background._y += 900;
				Background._x -= 200;
			}
			if (goingtoScene == 'lake01') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startLake01');
				playMystereMusic();
				playBeachWaves();
				if (lastscene == 'mapScreen') {
					floorType = 'grass';
					mainChar._rotation -= 180;
				} else {
					if (lastscene == 'lakeOpen' || lastscene == 'lakeOpen02' || lastscene == 'lakeOpen03') {
						Overhead._y += 500;
						Background._y += 500;
						floorType = 'tile';
					}
				}
			}
			if (goingtoScene == 'lake02') {
				gotoAndPlay('startLake02');
				playMystereMusic();
				playBeachWaves();
				if (lastscene == 'lakeOpen') {
					mainChar._rotation -= 180;
					floorType = 'tile';
				} else {
					floorType = 'grass';
					Overhead._y += 500;
					Background._y += 500;
				}
			}
			if (goingtoScene == 'lake03') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startLake03');
				floorType = 'tile';
				playCreepyMusic();
				if (lastscene == 'battle06E') {
					mainChar._rotation -= 180;
					Background._y -= 240;
				}
			}
			if (goingtoScene == 'lake03A') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startLake03A');
				playCreepyMusic();
			}
			if (goingtoScene == 'lake03B') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startLake03B');
				playCreepyMusic();
				floorType = 'tile';
				mainChar._rotation -= 180;
			}
			if (goingtoScene == 'lakeOpen') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startBoating01');
				playMirrorMusic();
				playBeachWaves();
				if (lastscene == 'lake01' || lastscene == 'battle06A') {
					storedX = 0;
					storedY = 0;
					boatHP = 5 + mainCharPsyDefense;
					boatDamage = 0;
					playMirrorMusic();
				}
				if (lastscene == 'lake02') {
					storedX = 1495;
					storedY = 2330;
					boatHP = 5 + mainCharPsyDefense;
					boatDamage = 0;
					mainChar._rotation -= 180;
				}
			}
			if (goingtoScene == 'lakeOpen02') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndStop('startBoating01');
				gotoAndPlay('startBoating02');
				storedX = 0;
				storedY = 0;
				boatHP = 5 + mainCharPsyDefense;
				boatDamage = 0;
				playInfiltrationMusic();
			}
			if (goingtoScene == 'lakeOpen03') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndStop('startBoating01');
				gotoAndPlay('startBoating03');
				storedX = 1495;
				storedY = 2330;
				boatHP = 5 + mainCharPsyDefense;
				boatDamage = 0;
				playInfiltrationMusic();
			}
			if (goingtoScene == 'acad01') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				playBazaarMusic();
				floorType = 'tile';
				mainChar._rotation = 270;
			}
			if (goingtoScene == 'acad01NW_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 270;
				Overhead._x -= 400;
				Overhead._y += 790;
				Background._x -= 400;
				Background._y += 790;
				Overhead.BldgNW._visible = false;
			}
			if (goingtoScene == 'acad01NW_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 90;
				Overhead._x -= 800;
				Overhead._y += 790;
				Background._x -= 800;
				Background._y += 790;
				Overhead.BldgNW._visible = false;
			}
			if (goingtoScene == 'acad01NE_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 270;
				Overhead._x -= 1600;
				Overhead._y += 790;
				Background._x -= 1600;
				Background._y += 790;
				Overhead.BldgNE._visible = false;
			}
			if (goingtoScene == 'acad01NE_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 90;
				Overhead._x -= 2000;
				Overhead._y += 790;
				Background._x -= 2000;
				Background._y += 790;
				Overhead.BldgNE._visible = false;
			}
			if (goingtoScene == 'acad01NE_SE') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 90;
				Overhead._x -= 2000;
				Overhead._y += 430;
				Background._x -= 2000;
				Background._y += 430;
				Overhead.BldgNE._visible = false;
			}
			if (goingtoScene == 'acad01SW_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 270;
				Overhead._x -= 400;
				Overhead._y -= 790;
				Background._x -= 400;
				Background._y -= 790;
				Overhead.BldgSW._visible = false;
			}
			if (goingtoScene == 'acad01SW_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 90;
				Overhead._x -= 800;
				Overhead._y -= 790;
				Background._x -= 800;
				Background._y -= 790;
				Overhead.BldgSW._visible = false;
			}
			if (goingtoScene == 'acad01SE_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 270;
				Overhead._x -= 1600;
				Overhead._y -= 790;
				Background._x -= 1600;
				Background._y -= 790;
				Overhead.BldgSE._visible = false;
			}
			if (goingtoScene == 'acad01SE_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad01');
				floorType = 'tile';
				mainChar._rotation = 90;
				Overhead._x -= 2000;
				Overhead._y -= 790;
				Background._x -= 2000;
				Background._y -= 790;
				Overhead.BldgSE._visible = false;
			}
			if (goingtoScene == 'acad02NW_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 90;
				Background.gotoAndStop('NW_W');
				Overhead.gotoAndStop(1);
				lastscene = 'acad02NW_W';
			}
			if (goingtoScene == 'acad02NW_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 270;
				Background.gotoAndStop('NW_E');
				Overhead.gotoAndStop(3);
				lastscene = 'acad02NW_E';
			}
			if (goingtoScene == 'acad02NE_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 90;
				Background.gotoAndStop('NE_W');
				Overhead.gotoAndStop(1);
				lastscene = 'acad02NE_W';
			}
			if (goingtoScene == 'acad02NE_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 270;
				Background.gotoAndStop('NE_E');
				Overhead.gotoAndStop(2);
				lastscene = 'acad02NE_E';
			}
			if (goingtoScene == 'acad02NE_E2') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				Background._x -= 350;
				Background._y += 50;
				Overhead._x -= 350;
				Overhead._y += 50;
				Background.gotoAndStop('NE_E2');
				Overhead.gotoAndStop(2);
				lastscene = 'acad02NE_E2';
			}
			if (goingtoScene == 'acad02NE_SE') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 270;
				Background.gotoAndStop('NE_SE');
				Overhead.gotoAndStop(2);
				lastscene = 'acad02NE_SE';
			}
			if (goingtoScene == 'acad02SW_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 90;
				Background.gotoAndStop('SW_W');
				Overhead.gotoAndStop(1);
				lastscene = 'acad02SW_W';
			}
			if (goingtoScene == 'acad02SW_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 270;
				Background.gotoAndStop('SW_E');
				Overhead.gotoAndStop(2);
				lastscene = 'acad02SW_E';
			}
			if (goingtoScene == 'acad02SE_W') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 90;
				Background.gotoAndStop('SE_W');
				Overhead.gotoAndStop(1);
				lastscene = 'acad02SE_W';
			}
			if (goingtoScene == 'acad02SE_E') {
				gotoAndStop('loadConvos');
				gotoAndStop('startTown01');
				gotoAndPlay('startAcad02');
				floorType = 'tile';
				mainChar._rotation = 270;
				Background.gotoAndStop('SE_E');
				Overhead.gotoAndStop(2);
				lastscene = 'acad02SE_E';
			}
		}
		function killShadowMaps() {
			if (shadowsOn == false) {
				Background.ShadowMap.swapDepths(2);
				Background.ShadowMap.removeMovieClip();
				Overhead.ShadowMap.swapDepths(3);
				Overhead.ShadowMap.removeMovieClip();
			}
		}
		function quitGame() {
			goingtoScene = 'mainmenu';
			if (lastscene == 'town01') {
				gotoAndStop('closeTown01');
			}
			if (lastscene == 'town02') {
				gotoAndStop('closeTown02');
			}
			if (lastscene == 'town02B') {
				gotoAndStop('closeTown02B');
			}
			if (lastscene == 'town03') {
				gotoAndStop('closeTown03');
			}
			if (lastscene == 'cave01') {
				gotoAndStop('closeCave01');
			}
			if (lastscene == 'cave02') {
				gotoAndStop('closeCave02');
			}
			if (lastscene == 'cave02C') {
				gotoAndStop('closeCave02C');
			}
			if (lastscene == 'cave03') {
				gotoAndStop('closeCave03');
			}
			if (lastscene == 'cave04') {
				gotoAndStop('closeCave04');
			}
			if (lastscene == 'deeper01') {
				gotoAndStop('closeDeeper01');
			}
			if (lastscene == 'deeper02') {
				gotoAndStop('closeDeeper02');
			}
			if (lastscene == 'deeper03') {
				gotoAndStop('closeDeeper03');
			}
			if (lastscene == 'deeper04') {
				gotoAndStop('closeDeeper04');
			}
			if (lastscene == 'workshop07') {
				gotoAndStop('closeWorkshop07');
			}
			if (lastscene == 'lake01') {
				gotoAndStop('closeLake01');
			}
			if (lastscene == 'lake02') {
				gotoAndStop('closeLake02');
			}
			if (lastscene == 'lake03') {
				gotoAndStop('closeLake03');
			}
			if (lastscene == 'acad01') {
				gotoAndStop('closeAcad01');
			}
			if (lastscene == 'acad02') {
				gotoAndStop('closeAcad02');
			}
		}
		function tallyMissions() {
			if (mission1Done == true) {
				missionsDone = 1;
			}
			if (mission2Done == true) {
				missionsDone = 2;
			}
			if (mission3Done == true) {
				missionsDone = 3;
			}
			if (mission4Done == true) {
				missionsDone = 4;
			}
			if (mission5Done == true) {
				missionsDone = 5;
			}
			if (mission6Done == true) {
				missionsDone = 6;
			}
			if (mission7Done == true) {
				missionsDone = 7;
			}
			if (mission8Done == true) {
				missionsDone = 8;
			}
			if (mission9Done == true) {
				missionsDone = 9;
			}
			if (mission10Done == true) {
				missionsDone = 10;
			}
			if (mission11Done == true) {
				missionsDone = 11;
			}
			if (mission12Done == true) {
				missionsDone = 12;
			}
		}
		function autoSave() {
			saveSlot = 0;
			recordSaveData();
			saveGame();
		}
		function recordSaveData() {
			if (saveSlot == 0) {
				myLSO = SharedObject.getLocal('TelepathRPG2_saveData0');
				myObj = {};
				myObj.objArray = new Array();
				var v3 = '';
				var v2 = 0;
				var v1 = '';
				v3 = mainCharName;
				v2 = mainCharLevel;
				if (lastscene == 'town01') {
					v1 = 'Somnus';
				}
				if (lastscene == 'town02' || lastscene == 'town02B') {
					v1 = 'Headquarters';
				}
				if (lastscene == 'town03') {
					v1 = 'The Palace';
				}
				if (lastscene == 'cave01' || lastscene == 'cave02' || lastscene == 'cave03' || lastscene == 'cave04') {
					v1 = 'Great Forest';
				}
				if (lastscene == 'cave02C') {
					v1 = 'Gelf\'s Shop';
				}
				if (lastscene == 'deeper01' || lastscene == 'deeper02' || lastscene == 'deeper03' || lastscene == 'deeper04') {
					v1 = 'Deeper Downs';
				}
				if (lastscene == 'workshop01' || lastscene == 'workshop02' || lastscene == 'workshop03' || lastscene == 'workshop04' || lastscene == 'workshop05' || lastscene == 'workshop06') {
					v1 = 'Security Station';
				}
				if (lastscene == 'workshop07') {
					v1 = 'Golem Workshop';
				}
				if (lastscene == 'lake01' || lastscene == 'lake02') {
					v1 = 'Lake Alto';
				}
				if (lastscene == 'lake03') {
					v1 = 'DarkEye\'s Cave';
				}
				if (lastscene == 'acad01') {
					v1 = 'Psy Academy';
				}
				if (lastscene == 'acad02NW_W' || lastscene == 'acad02NW_E') {
					v1 = 'Academy Building NW';
				}
				if (lastscene == 'acad02NE_W' || lastscene == 'acad02NE_E' || lastscene == 'acad02NE_E2' || lastscene == 'acad02NE_SE') {
					v1 = 'Academy Building NE';
				}
				if (lastscene == 'acad02SW_W' || lastscene == 'acad02SW_E') {
					v1 = 'Academy Building SW';
				}
				if (lastscene == 'acad02SE_W' || lastscene == 'acad02SE_E') {
					v1 = 'Academy Building SE';
				}
				myObj.objArray[0] = v3;
				myObj.objArray[1] = v2;
				myObj.objArray[2] = v1;
				myLSO.data.myObj = myObj;
			}
			if (saveSlot == 1) {
				myLSO = SharedObject.getLocal('TelepathRPG2_saveData1');
				myObj = {};
				myObj.objArray = new Array();
				saveSlot1_mainCharName = mainCharName;
				saveSlot1_mainCharLevel = mainCharLevel;
				if (lastscene == 'town01') {
					saveSlot1_mainCharScene = 'Somnus';
				}
				if (lastscene == 'town02' || lastscene == 'town02B') {
					saveSlot1_mainCharScene = 'Headquarters';
				}
				if (lastscene == 'town03') {
					saveSlot1_mainCharScene = 'The Palace';
				}
				if (lastscene == 'cave01' || lastscene == 'cave02' || lastscene == 'cave03' || lastscene == 'cave04') {
					saveSlot1_mainCharScene = 'Great Forest';
				}
				if (lastscene == 'cave02C') {
					saveSlot1_mainCharScene = 'Gelf\'s Shop';
				}
				if (lastscene == 'deeper01' || lastscene == 'deeper02' || lastscene == 'deeper03' || lastscene == 'deeper04') {
					saveSlot1_mainCharScene = 'Deeper Downs';
				}
				if (lastscene == 'workshop01' || lastscene == 'workshop02' || lastscene == 'workshop03' || lastscene == 'workshop04' || lastscene == 'workshop05' || lastscene == 'workshop06') {
					saveSlot1_mainCharScene = 'Security Station';
				}
				if (lastscene == 'workshop07') {
					saveSlot1_mainCharScene = 'Golem Workshop';
				}
				if (lastscene == 'lake01' || lastscene == 'lake02') {
					saveSlot1_mainCharScene = 'Lake Alto';
				}
				if (lastscene == 'lake03') {
					saveSlot1_mainCharScene = 'DarkEye\'s Cave';
				}
				if (lastscene == 'acad01') {
					saveSlot1_mainCharScene = 'Psy Academy';
				}
				if (lastscene == 'acad02NW_W' || lastscene == 'acad02NW_E') {
					saveSlot1_mainCharScene = 'Academy Building NW';
				}
				if (lastscene == 'acad02NE_W' || lastscene == 'acad02NE_E' || lastscene == 'acad02NE_E2' || lastscene == 'acad02NE_SE') {
					saveSlot1_mainCharScene = 'Academy Building NE';
				}
				if (lastscene == 'acad02SW_W' || lastscene == 'acad02SW_E') {
					saveSlot1_mainCharScene = 'Academy Building SW';
				}
				if (lastscene == 'acad02SE_W' || lastscene == 'acad02SE_E') {
					saveSlot1_mainCharScene = 'Academy Building SE';
				}
				myObj.objArray[0] = saveSlot1_mainCharName;
				myObj.objArray[1] = saveSlot1_mainCharLevel;
				myObj.objArray[2] = saveSlot1_mainCharScene;
				myLSO.data.myObj = myObj;
			}
			if (saveSlot == 2) {
				myLSO = SharedObject.getLocal('TelepathRPG2_saveData2');
				myObj = {};
				myObj.objArray = new Array();
				saveSlot2_mainCharName = mainCharName;
				saveSlot2_mainCharLevel = mainCharLevel;
				if (lastscene == 'town01') {
					saveSlot2_mainCharScene = 'Somnus';
				}
				if (lastscene == 'town02' || lastscene == 'town02B') {
					saveSlot2_mainCharScene = 'Headquarters';
				}
				if (lastscene == 'town03') {
					saveSlot2_mainCharScene = 'The Palace';
				}
				if (lastscene == 'cave01' || lastscene == 'cave02' || lastscene == 'cave03' || lastscene == 'cave04') {
					saveSlot2_mainCharScene = 'Great Forest';
				}
				if (lastscene == 'cave02C') {
					saveSlot2_mainCharScene = 'Gelf\'s Shop';
				}
				if (lastscene == 'deeper01' || lastscene == 'deeper02' || lastscene == 'deeper03' || lastscene == 'deeper04') {
					saveSlot2_mainCharScene = 'Deeper Downs';
				}
				if (lastscene == 'workshop01' || lastscene == 'workshop02' || lastscene == 'workshop03' || lastscene == 'workshop04' || lastscene == 'workshop05' || lastscene == 'workshop06') {
					saveSlot2_mainCharScene = 'Security Station';
				}
				if (lastscene == 'workshop07') {
					saveSlot2_mainCharScene = 'Golem Workshop';
				}
				if (lastscene == 'lake01' || lastscene == 'lake02') {
					saveSlot2_mainCharScene = 'Lake Alto';
				}
				if (lastscene == 'lake03') {
					saveSlot2_mainCharScene = 'DarkEye\'s Cave';
				}
				if (lastscene == 'acad01') {
					saveSlot2_mainCharScene = 'Psy Academy';
				}
				if (lastscene == 'acad02NW_W' || lastscene == 'acad02NW_E') {
					saveSlot2_mainCharScene = 'Academy Building NW';
				}
				if (lastscene == 'acad02NE_W' || lastscene == 'acad02NE_E' || lastscene == 'acad02NE_E2' || lastscene == 'acad02NE_SE') {
					saveSlot2_mainCharScene = 'Academy Building NE';
				}
				if (lastscene == 'acad02SW_W' || lastscene == 'acad02SW_E') {
					saveSlot2_mainCharScene = 'Academy Building SW';
				}
				if (lastscene == 'acad02SE_W' || lastscene == 'acad02SE_E') {
					saveSlot2_mainCharScene = 'Academy Building SE';
				}
				myObj.objArray[0] = saveSlot2_mainCharName;
				myObj.objArray[1] = saveSlot2_mainCharLevel;
				myObj.objArray[2] = saveSlot2_mainCharScene;
				myLSO.data.myObj = myObj;
			}
		}
		function loadSaveData() {
			myLSO = SharedObject.getLocal('TelepathRPG2_saveData0');
			if (myLSO.data.myObj == undefined) {
				saveSlot0_mainCharName = 'No Data';
				saveSlot0_mainCharLevel = 0;
				saveSlot0_mainCharScene = '';
			} else {
				saveSlot0_mainCharName = myLSO.data.myObj.objArray[0];
				saveSlot0_mainCharLevel = myLSO.data.myObj.objArray[1];
				saveSlot0_mainCharScene = myLSO.data.myObj.objArray[2];
			}
			myLSO = SharedObject.getLocal('TelepathRPG2_saveData1');
			if (myLSO.data.myObj == undefined) {
				saveSlot1_mainCharName = 'No Data';
				saveSlot1_mainCharLevel = 0;
				saveSlot1_mainCharScene = '';
			} else {
				saveSlot1_mainCharName = myLSO.data.myObj.objArray[0];
				saveSlot1_mainCharLevel = myLSO.data.myObj.objArray[1];
				saveSlot1_mainCharScene = myLSO.data.myObj.objArray[2];
			}
			myLSO = SharedObject.getLocal('TelepathRPG2_saveData2');
			if (myLSO.data.myObj == undefined) {
				saveSlot2_mainCharName = 'No Data';
				saveSlot2_mainCharLevel = 0;
				saveSlot2_mainCharScene = '';
			} else {
				saveSlot2_mainCharName = myLSO.data.myObj.objArray[0];
				saveSlot2_mainCharLevel = myLSO.data.myObj.objArray[1];
				saveSlot2_mainCharScene = myLSO.data.myObj.objArray[2];
			}
		}
		function saveGame() {
			if (saveSlot == 0) {
				myLSO = SharedObject.getLocal('TelepathRPG2_autoSave');
			}
			if (saveSlot == 1) {
				myLSO = SharedObject.getLocal('TelepathRPG2_slot01');
			}
			if (saveSlot == 2) {
				myLSO = SharedObject.getLocal('TelepathRPG2_slot02');
			}
			if (myLSO.data.myObj == undefined) {
				_root.saveDisplay = 'Game Saved.';
			} else {
				_root.saveDisplay = 'Overwrote Saved Game.';
			}
			myObj = {};
			myObj.objArray = new Array();
			myObj.objArray[0] = mainCharName;
			myObj.objArray[1] = mainCharHP;
			myObj.objArray[2] = mainCharPsP;
			myObj.objArray[3] = mainCharPsyPower;
			myObj.objArray[4] = mainCharPsyDefense;
			myObj.objArray[5] = mainCharPersonality;
			myObj.objArray[6] = mainCharAptitude;
			myObj.objArray[7] = mainCharSpeed;
			myObj.objArray[8] = mainCharMBLevel;
			myObj.objArray[9] = mainCharMSLevel;
			myObj.objArray[10] = mainCharPBLevel;
			myObj.objArray[11] = mainCharFBLevel;
			myObj.objArray[12] = mainCharLevel;
			myObj.objArray[13] = money;
			myObj.objArray[14] = lastscene;
			myObj.objArray[15] = mainCharDamage;
			myObj.objArray[16] = mainCharDrain;
			myObj.objArray[17] = mission1Done;
			myObj.objArray[18] = mission2Done;
			myObj.objArray[19] = mission3Done;
			myObj.objArray[20] = mission4Done;
			myObj.objArray[21] = mission5Done;
			myObj.objArray[22] = mission6Done;
			myObj.objArray[23] = mission7Done;
			myObj.objArray[24] = mission8Done;
			myObj.objArray[25] = mission9Done;
			myObj.objArray[26] = mission10Done;
			myObj.objArray[27] = mission11Done;
			myObj.objArray[28] = mission12Done;
			myObj.objArray[29] = spokeToTastidian;
			myObj.objArray[30] = spokeToSnarl;
			myObj.objArray[31] = spokeToNiven;
			myObj.objArray[32] = spokeToFestus;
			myObj.objArray[33] = spokeToHellion;
			myObj.objArray[34] = spokeToNelis;
			myObj.objArray[35] = mainCharLeftToLevel;
			myObj.objArray[36] = gameDifficulty;
			myObj.objArray[37] = formation;
			myObj.objArray[38] = gotDarkling;
			myObj.objArray[39] = gotShadowboxer;
			myObj.objArray[40] = gotFestus;
			myObj.objArray[41] = gotNiven;
			myObj.objArray[42] = gotFlint;
			myObj.objArray[43] = gotHelena;
			myObj.objArray[44] = gotGrotius;
			myObj.objArray[45] = gotAnya;
			myObj.objArray[46] = gotGuy;
			myObj.objArray[47] = gotDorgon;
			myObj.objArray[48] = gotJack;
			myObj.objArray[49] = gotLuca;
			myObj.objArray[50] = gotMagellan;
			myObj.objArray[51] = gotXerxes;
			myObj.objArray[52] = darklingDead;
			myObj.objArray[53] = shadowboxerDead;
			myObj.objArray[54] = festusDead;
			myObj.objArray[55] = nivenDead;
			myObj.objArray[56] = flintDead;
			myObj.objArray[57] = helenaDead;
			myObj.objArray[58] = grotiusDead;
			myObj.objArray[59] = anyaDead;
			myObj.objArray[60] = guyDead;
			myObj.objArray[61] = dorgonDead;
			myObj.objArray[62] = jackDead;
			myObj.objArray[63] = lucaDead;
			myObj.objArray[64] = magellanDead;
			myObj.objArray[65] = xerxesDead;
			myObj.objArray[66] = mainCharAttackType1;
			myObj.objArray[67] = mainCharAttackType2;
			myObj.objArray[68] = mainCharAttackType3;
			myObj.objArray[69] = mainCharAttackType4;
			myObj.objArray[70] = darklingHP;
			myObj.objArray[71] = shadowboxerHP;
			myObj.objArray[72] = festusHP;
			myObj.objArray[73] = nivenHP;
			myObj.objArray[74] = flintHP;
			myObj.objArray[75] = helenaHP;
			myObj.objArray[76] = grotiusHP;
			myObj.objArray[77] = anyaHP;
			myObj.objArray[78] = guyHP;
			myObj.objArray[79] = dorgonHP;
			myObj.objArray[80] = jackHP;
			myObj.objArray[81] = lucaHP;
			myObj.objArray[82] = magellanHP;
			myObj.objArray[83] = xerxesHP;
			myObj.objArray[84] = darklingPsP;
			myObj.objArray[85] = shadowboxerPsP;
			myObj.objArray[86] = festusPsP;
			myObj.objArray[87] = nivenPsP;
			myObj.objArray[88] = flintPsP;
			myObj.objArray[89] = helenaPsP;
			myObj.objArray[90] = grotiusPsP;
			myObj.objArray[91] = anyaPsP;
			myObj.objArray[92] = guyPsP;
			myObj.objArray[93] = dorgonPsP;
			myObj.objArray[94] = jackPsP;
			myObj.objArray[95] = lucaPsP;
			myObj.objArray[96] = magellanPsP;
			myObj.objArray[97] = xerxesPsP;
			myObj.objArray[98] = darklingSpeed;
			myObj.objArray[99] = shadowboxerSpeed;
			myObj.objArray[100] = festusSpeed;
			myObj.objArray[101] = nivenSpeed;
			myObj.objArray[102] = flintSpeed;
			myObj.objArray[103] = helenaSpeed;
			myObj.objArray[104] = grotiusSpeed;
			myObj.objArray[105] = anyaSpeed;
			myObj.objArray[106] = guySpeed;
			myObj.objArray[107] = dorgonSpeed;
			myObj.objArray[108] = jackSpeed;
			myObj.objArray[109] = lucaSpeed;
			myObj.objArray[110] = magellanSpeed;
			myObj.objArray[111] = xerxesSpeed;
			myObj.objArray[112] = darklingAttackType1;
			myObj.objArray[113] = darklingAttackType2;
			myObj.objArray[114] = darklingAttackType3;
			myObj.objArray[115] = darklingAttackType4;
			myObj.objArray[116] = shadowboxerAttackType1;
			myObj.objArray[117] = shadowboxerAttackType2;
			myObj.objArray[118] = shadowboxerAttackType3;
			myObj.objArray[119] = shadowboxerAttackType4;
			myObj.objArray[120] = festusAttackType1;
			myObj.objArray[121] = festusAttackType2;
			myObj.objArray[122] = festusAttackType3;
			myObj.objArray[123] = festusAttackType4;
			myObj.objArray[124] = nivenAttackType1;
			myObj.objArray[125] = nivenAttackType2;
			myObj.objArray[126] = nivenAttackType3;
			myObj.objArray[127] = nivenAttackType4;
			myObj.objArray[128] = flintAttackType1;
			myObj.objArray[129] = flintAttackType2;
			myObj.objArray[130] = flintAttackType3;
			myObj.objArray[131] = flintAttackType4;
			myObj.objArray[132] = helenaAttackType1;
			myObj.objArray[133] = helenaAttackType2;
			myObj.objArray[134] = helenaAttackType3;
			myObj.objArray[135] = helenaAttackType4;
			myObj.objArray[136] = grotiusAttackType1;
			myObj.objArray[137] = grotiusAttackType2;
			myObj.objArray[138] = grotiusAttackType3;
			myObj.objArray[139] = grotiusAttackType4;
			myObj.objArray[140] = anyaAttackType1;
			myObj.objArray[141] = anyaAttackType2;
			myObj.objArray[142] = anyaAttackType3;
			myObj.objArray[143] = anyaAttackType4;
			myObj.objArray[144] = guyAttackType1;
			myObj.objArray[145] = guyAttackType2;
			myObj.objArray[146] = guyAttackType3;
			myObj.objArray[147] = guyAttackType4;
			myObj.objArray[148] = dorgonAttackType1;
			myObj.objArray[149] = dorgonAttackType2;
			myObj.objArray[150] = dorgonAttackType3;
			myObj.objArray[151] = dorgonAttackType4;
			myObj.objArray[152] = jackAttackType1;
			myObj.objArray[153] = jackAttackType2;
			myObj.objArray[154] = jackAttackType3;
			myObj.objArray[155] = jackAttackType4;
			myObj.objArray[156] = lucaAttackType1;
			myObj.objArray[157] = lucaAttackType2;
			myObj.objArray[158] = lucaAttackType3;
			myObj.objArray[159] = lucaAttackType4;
			myObj.objArray[160] = magellanAttackType1;
			myObj.objArray[161] = magellanAttackType2;
			myObj.objArray[162] = magellanAttackType3;
			myObj.objArray[163] = magellanAttackType4;
			myObj.objArray[164] = xerxesAttackType1;
			myObj.objArray[165] = xerxesAttackType2;
			myObj.objArray[166] = xerxesAttackType3;
			myObj.objArray[167] = xerxesAttackType4;
			myObj.objArray[168] = nivenStrength;
			myObj.objArray[169] = flintStrength;
			myObj.objArray[170] = helenaStrength;
			myObj.objArray[171] = grotiusStrength;
			myObj.objArray[172] = dorgonStrength;
			myObj.objArray[173] = jackStrength;
			myObj.objArray[174] = lucaStrength;
			myObj.objArray[175] = magellanStrength;
			myObj.objArray[176] = xerxesStrength;
			myObj.objArray[177] = darklingPsyPower;
			myObj.objArray[178] = shadowboxerPsyPower;
			myObj.objArray[179] = festusPsyPower;
			myObj.objArray[180] = nivenPsyPower;
			myObj.objArray[181] = flintPsyPower;
			myObj.objArray[182] = helenaPsyPower;
			myObj.objArray[183] = grotiusPsyPower;
			myObj.objArray[184] = anyaPsyPower;
			myObj.objArray[185] = guyPsyPower;
			myObj.objArray[186] = dorgonPsyPower;
			myObj.objArray[187] = jackPsyPower;
			myObj.objArray[188] = lucaPsyPower;
			myObj.objArray[189] = magellanPsyPower;
			myObj.objArray[190] = xerxesPsyPower;
			myObj.objArray[191] = darklingPsyDefense;
			myObj.objArray[192] = shadowboxerPsyDefense;
			myObj.objArray[193] = festusPsyDefense;
			myObj.objArray[194] = nivenPsyDefense;
			myObj.objArray[195] = flintPsyDefense;
			myObj.objArray[196] = helenaPsyDefense;
			myObj.objArray[197] = grotiusPsyDefense;
			myObj.objArray[198] = anyaPsyDefense;
			myObj.objArray[199] = guyPsyDefense;
			myObj.objArray[200] = dorgonPsyDefense;
			myObj.objArray[201] = jackPsyDefense;
			myObj.objArray[202] = lucaPsyDefense;
			myObj.objArray[203] = magellanPsyDefense;
			myObj.objArray[204] = xerxesPsyDefense;
			myObj.objArray[205] = darklingMBLevel;
			myObj.objArray[206] = shadowboxerMBLevel;
			myObj.objArray[207] = festusMBLevel;
			myObj.objArray[208] = nivenMBLevel;
			myObj.objArray[209] = flintMBLevel;
			myObj.objArray[210] = helenaMBLevel;
			myObj.objArray[211] = grotiusMBLevel;
			myObj.objArray[212] = anyaMBLevel;
			myObj.objArray[213] = guyMBLevel;
			myObj.objArray[214] = dorgonMBLevel;
			myObj.objArray[215] = jackMBLevel;
			myObj.objArray[216] = lucaMBLevel;
			myObj.objArray[217] = magellanMBLevel;
			myObj.objArray[218] = xerxesMBLevel;
			myObj.objArray[219] = darklingMSLevel;
			myObj.objArray[220] = shadowboxerMSLevel;
			myObj.objArray[221] = festusMSLevel;
			myObj.objArray[222] = nivenMSLevel;
			myObj.objArray[223] = flintMSLevel;
			myObj.objArray[224] = helenaMSLevel;
			myObj.objArray[225] = grotiusMSLevel;
			myObj.objArray[226] = anyaMSLevel;
			myObj.objArray[227] = guyMSLevel;
			myObj.objArray[228] = dorgonMSLevel;
			myObj.objArray[229] = jackMSLevel;
			myObj.objArray[230] = lucaMSLevel;
			myObj.objArray[231] = magellanMSLevel;
			myObj.objArray[232] = xerxesMSLevel;
			myObj.objArray[233] = darklingPBLevel;
			myObj.objArray[234] = shadowboxerPBLevel;
			myObj.objArray[235] = festusPBLevel;
			myObj.objArray[236] = nivenPBLevel;
			myObj.objArray[237] = flintPBLevel;
			myObj.objArray[238] = helenaPBLevel;
			myObj.objArray[239] = grotiusPBLevel;
			myObj.objArray[240] = anyaPBLevel;
			myObj.objArray[241] = guyPBLevel;
			myObj.objArray[242] = dorgonPBLevel;
			myObj.objArray[243] = jackPBLevel;
			myObj.objArray[244] = lucaPBLevel;
			myObj.objArray[245] = magellanPBLevel;
			myObj.objArray[246] = xerxesPBLevel;
			myObj.objArray[247] = darklingFBLevel;
			myObj.objArray[248] = shadowboxerFBLevel;
			myObj.objArray[249] = festusFBLevel;
			myObj.objArray[250] = nivenFBLevel;
			myObj.objArray[251] = flintFBLevel;
			myObj.objArray[252] = helenaFBLevel;
			myObj.objArray[253] = grotiusFBLevel;
			myObj.objArray[254] = anyaFBLevel;
			myObj.objArray[255] = guyFBLevel;
			myObj.objArray[256] = dorgonFBLevel;
			myObj.objArray[257] = jackFBLevel;
			myObj.objArray[258] = lucaFBLevel;
			myObj.objArray[259] = magellanFBLevel;
			myObj.objArray[260] = xerxesFBLevel;
			myObj.objArray[261] = slot1;
			myObj.objArray[262] = slot2;
			myObj.objArray[263] = slot3;
			myObj.objArray[264] = slot5;
			myObj.objArray[265] = slot6;
			myObj.objArray[266] = slot7;
			myObj.objArray[267] = slot8;
			myObj.objArray[268] = mainCharMovement;
			myObj.objArray[269] = darklingMovement;
			myObj.objArray[270] = shadowboxerMovement;
			myObj.objArray[271] = festusMovement;
			myObj.objArray[272] = nivenMovement;
			myObj.objArray[273] = flintMovement;
			myObj.objArray[274] = helenaMovement;
			myObj.objArray[275] = grotiusMovement;
			myObj.objArray[276] = anyaMovement;
			myObj.objArray[277] = guyMovement;
			myObj.objArray[278] = dorgonMovement;
			myObj.objArray[279] = jackMovement;
			myObj.objArray[280] = lucaMovement;
			myObj.objArray[281] = magellanMovement;
			myObj.objArray[282] = xerxesMovement;
			myObj.objArray[283] = spokeToJack;
			myObj.objArray[284] = randomBattles;
			myObj.objArray[285] = spokeToNegatus;
			myObj.objArray[286] = moneyWon;
			myObj.objArray[287] = spokeToNarrator;
			myObj.objArray[288] = spokeToAnya;
			myObj.objArray[289] = spokeToGuy;
			myObj.objArray[290] = spokeToFlavin;
			myObj.objArray[291] = spokeToLala;
			myObj.objArray[292] = spokeToVagrant;
			myObj.objArray[293] = foundBooks;
			myObj.objArray[294] = darklingResists;
			myObj.objArray[295] = shadowboxerResists;
			myObj.objArray[296] = festusResists;
			myObj.objArray[297] = nivenResists;
			myObj.objArray[298] = flintResists;
			myObj.objArray[299] = helenaResists;
			myObj.objArray[300] = grotiusResists;
			myObj.objArray[301] = anyaResists;
			myObj.objArray[302] = guyResists;
			myObj.objArray[303] = dorgonResists;
			myObj.objArray[304] = jackResists;
			myObj.objArray[305] = lucaResists;
			myObj.objArray[306] = magellanResists;
			myObj.objArray[307] = xerxesResists;
			myObj.objArray[308] = mainCharResists;
			myObj.objArray[309] = gotBlueOrb;
			myObj.objArray[310] = gotOrangeOrb;
			myObj.objArray[311] = gotBlackOrb;
			myObj.objArray[312] = gotWhiteOrb;
			myObj.objArray[313] = gotGreenOrb;
			myObj.objArray[314] = gotYellowOrb;
			myObj.objArray[315] = missionsDone;
			myObj.objArray[316] = lastMissionsDone;
			myObj.objArray[317] = openedAccount;
			myObj.objArray[318] = amtInAccount;
			myObj.objArray[319] = gotRedOrb;
			myObj.objArray[320] = beat05A;
			myObj.objArray[321] = workshopOpened;
			myObj.objArray[322] = securityCode;
			myObj.objArray[323] = lamp01Color;
			myObj.objArray[324] = lamp02Color;
			myObj.objArray[325] = lamp03Color;
			myObj.objArray[326] = lamp04Color;
			myObj.objArray[327] = lamp05Color;
			myObj.objArray[328] = lamp06Color;
			myObj.objArray[329] = lamp07Color;
			myObj.objArray[330] = lamp08Color;
			myObj.objArray[331] = lamp09Color;
			myObj.objArray[332] = lamp10Color;
			myObj.objArray[333] = spokeToGrotius;
			myObj.objArray[334] = beat06A;
			myObj.objArray[335] = gotSaw;
			myObj.objArray[336] = spokeToGelf;
			myObj.objArray[337] = gotFlameThrower;
			myObj.objArray[338] = gotCapacitor;
			myObj.objArray[339] = gotIndigoOrb;
			myObj.objArray[340] = spokeToPiter;
			myObj.objArray[341] = beatGame;
			myObj.objArray[342] = hyperFocus;
			myObj.objArray[343] = spokeToDavid;
			myObj.objArray[344] = gotGuardGold;
			myLSO.data.myObj = myObj;
		}
		function loadGame() {
			if (saveSlot == 0) {
				myLSO = SharedObject.getLocal('TelepathRPG2_autoSave');
			}
			if (saveSlot == 1) {
				myLSO = SharedObject.getLocal('TelepathRPG2_slot01');
			}
			if (saveSlot == 2) {
				myLSO = SharedObject.getLocal('TelepathRPG2_slot02');
			}
			if (myLSO.data.myObj == undefined) {
				_root.saveDisplay = 'No Saved Game Detected.';
			} else {
				_root.saveDisplay = 'Game Loaded.';
				mainCharName = myLSO.data.myObj.objArray[0];
				mainCharHP = myLSO.data.myObj.objArray[1];
				mainCharPsP = myLSO.data.myObj.objArray[2];
				mainCharPsyPower = myLSO.data.myObj.objArray[3];
				mainCharPsyDefense = myLSO.data.myObj.objArray[4];
				mainCharPersonality = myLSO.data.myObj.objArray[5];
				mainCharAptitude = myLSO.data.myObj.objArray[6];
				mainCharSpeed = myLSO.data.myObj.objArray[7];
				mainCharMBLevel = myLSO.data.myObj.objArray[8];
				mainCharMSLevel = myLSO.data.myObj.objArray[9];
				mainCharPBLevel = myLSO.data.myObj.objArray[10];
				mainCharFBLevel = myLSO.data.myObj.objArray[11];
				mainCharLevel = myLSO.data.myObj.objArray[12];
				money = myLSO.data.myObj.objArray[13];
				lastscene = myLSO.data.myObj.objArray[14];
				mainCharDamage = myLSO.data.myObj.objArray[15];
				mainCharDrain = myLSO.data.myObj.objArray[16];
				mission1Done = myLSO.data.myObj.objArray[17];
				mission2Done = myLSO.data.myObj.objArray[18];
				mission3Done = myLSO.data.myObj.objArray[19];
				mission4Done = myLSO.data.myObj.objArray[20];
				mission5Done = myLSO.data.myObj.objArray[21];
				mission6Done = myLSO.data.myObj.objArray[22];
				mission7Done = myLSO.data.myObj.objArray[23];
				mission8Done = myLSO.data.myObj.objArray[24];
				mission9Done = myLSO.data.myObj.objArray[25];
				mission10Done = myLSO.data.myObj.objArray[26];
				mission11Done = myLSO.data.myObj.objArray[27];
				mission12Done = myLSO.data.myObj.objArray[28];
				spokeToTastidian = myLSO.data.myObj.objArray[29];
				spokeToSnarl = myLSO.data.myObj.objArray[30];
				spokeToNiven = myLSO.data.myObj.objArray[31];
				spokeToFestus = myLSO.data.myObj.objArray[32];
				spokeToHellion = myLSO.data.myObj.objArray[33];
				spokeToNelis = myLSO.data.myObj.objArray[34];
				mainCharLeftToLevel = myLSO.data.myObj.objArray[35];
				gameDifficulty = myLSO.data.myObj.objArray[36];
				formation = myLSO.data.myObj.objArray[37];
				gotDarkling = myLSO.data.myObj.objArray[38];
				gotShadowboxer = myLSO.data.myObj.objArray[39];
				gotFestus = myLSO.data.myObj.objArray[40];
				gotNiven = myLSO.data.myObj.objArray[41];
				gotFlint = myLSO.data.myObj.objArray[42];
				gotHelena = myLSO.data.myObj.objArray[43];
				gotGrotius = myLSO.data.myObj.objArray[44];
				gotAnya = myLSO.data.myObj.objArray[45];
				gotGuy = myLSO.data.myObj.objArray[46];
				gotDorgon = myLSO.data.myObj.objArray[47];
				gotJack = myLSO.data.myObj.objArray[48];
				gotLuca = myLSO.data.myObj.objArray[49];
				gotMagellan = myLSO.data.myObj.objArray[50];
				gotXerxes = myLSO.data.myObj.objArray[51];
				darklingDead = myLSO.data.myObj.objArray[52];
				shadowboxerDead = myLSO.data.myObj.objArray[53];
				festusDead = myLSO.data.myObj.objArray[54];
				nivenDead = myLSO.data.myObj.objArray[55];
				flintDead = myLSO.data.myObj.objArray[56];
				helenaDead = myLSO.data.myObj.objArray[57];
				grotiusDead = myLSO.data.myObj.objArray[58];
				anyaDead = myLSO.data.myObj.objArray[59];
				guyDead = myLSO.data.myObj.objArray[60];
				dorgonDead = myLSO.data.myObj.objArray[61];
				jackDead = myLSO.data.myObj.objArray[62];
				lucaDead = myLSO.data.myObj.objArray[63];
				magellanDead = myLSO.data.myObj.objArray[64];
				xerxesDead = myLSO.data.myObj.objArray[65];
				mainCharAttackType1 = myLSO.data.myObj.objArray[66];
				mainCharAttackType2 = myLSO.data.myObj.objArray[67];
				mainCharAttackType3 = myLSO.data.myObj.objArray[68];
				mainCharAttackType4 = myLSO.data.myObj.objArray[69];
				darklingHP = myLSO.data.myObj.objArray[70];
				shadowboxerHP = myLSO.data.myObj.objArray[71];
				festusHP = myLSO.data.myObj.objArray[72];
				nivenHP = myLSO.data.myObj.objArray[73];
				flintHP = myLSO.data.myObj.objArray[74];
				helenaHP = myLSO.data.myObj.objArray[75];
				grotiusHP = myLSO.data.myObj.objArray[76];
				anyaHP = myLSO.data.myObj.objArray[77];
				guyHP = myLSO.data.myObj.objArray[78];
				dorgonHP = myLSO.data.myObj.objArray[79];
				jackHP = myLSO.data.myObj.objArray[80];
				lucaHP = myLSO.data.myObj.objArray[81];
				magellanHP = myLSO.data.myObj.objArray[82];
				xerxesHP = myLSO.data.myObj.objArray[83];
				darklingPsP = myLSO.data.myObj.objArray[84];
				shadowboxerPsP = myLSO.data.myObj.objArray[85];
				festusPsP = myLSO.data.myObj.objArray[86];
				nivenPsP = myLSO.data.myObj.objArray[87];
				flintPsP = myLSO.data.myObj.objArray[88];
				helenaPsP = myLSO.data.myObj.objArray[89];
				grotiusPsP = myLSO.data.myObj.objArray[90];
				anyaPsP = myLSO.data.myObj.objArray[91];
				guyPsP = myLSO.data.myObj.objArray[92];
				dorgonPsP = myLSO.data.myObj.objArray[93];
				jackPsP = myLSO.data.myObj.objArray[94];
				lucaPsP = myLSO.data.myObj.objArray[95];
				magellanPsP = myLSO.data.myObj.objArray[96];
				xerxesPsP = myLSO.data.myObj.objArray[97];
				darklingSpeed = myLSO.data.myObj.objArray[98];
				shadowboxerSpeed = myLSO.data.myObj.objArray[99];
				festusSpeed = myLSO.data.myObj.objArray[100];
				nivenSpeed = myLSO.data.myObj.objArray[101];
				flintSpeed = myLSO.data.myObj.objArray[102];
				helenaSpeed = myLSO.data.myObj.objArray[103];
				grotiusSpeed = myLSO.data.myObj.objArray[104];
				anyaSpeed = myLSO.data.myObj.objArray[105];
				guySpeed = myLSO.data.myObj.objArray[106];
				dorgonSpeed = myLSO.data.myObj.objArray[107];
				jackSpeed = myLSO.data.myObj.objArray[108];
				lucaSpeed = myLSO.data.myObj.objArray[109];
				magellanSpeed = myLSO.data.myObj.objArray[110];
				xerxesSpeed = myLSO.data.myObj.objArray[111];
				darklingAttackType1 = myLSO.data.myObj.objArray[112];
				darklingAttackType2 = myLSO.data.myObj.objArray[113];
				darklingAttackType3 = myLSO.data.myObj.objArray[114];
				darklingAttackType4 = myLSO.data.myObj.objArray[115];
				shadowboxerAttackType1 = myLSO.data.myObj.objArray[116];
				shadowboxerAttackType2 = myLSO.data.myObj.objArray[117];
				shadowboxerAttackType3 = myLSO.data.myObj.objArray[118];
				shadowboxerAttackType4 = myLSO.data.myObj.objArray[119];
				festusAttackType1 = myLSO.data.myObj.objArray[120];
				festusAttackType2 = myLSO.data.myObj.objArray[121];
				festusAttackType3 = myLSO.data.myObj.objArray[122];
				festusAttackType4 = myLSO.data.myObj.objArray[123];
				nivenAttackType1 = myLSO.data.myObj.objArray[124];
				nivenAttackType2 = myLSO.data.myObj.objArray[125];
				nivenAttackType3 = myLSO.data.myObj.objArray[126];
				nivenAttackType4 = myLSO.data.myObj.objArray[127];
				flintAttackType1 = myLSO.data.myObj.objArray[128];
				flintAttackType2 = myLSO.data.myObj.objArray[129];
				flintAttackType3 = myLSO.data.myObj.objArray[130];
				flintAttackType4 = myLSO.data.myObj.objArray[131];
				helenaAttackType1 = myLSO.data.myObj.objArray[132];
				helenaAttackType2 = myLSO.data.myObj.objArray[133];
				helenaAttackType3 = myLSO.data.myObj.objArray[134];
				helenaAttackType4 = myLSO.data.myObj.objArray[135];
				grotiusAttackType1 = myLSO.data.myObj.objArray[136];
				grotiusAttackType2 = myLSO.data.myObj.objArray[137];
				grotiusAttackType3 = myLSO.data.myObj.objArray[138];
				grotiusAttackType4 = myLSO.data.myObj.objArray[139];
				anyaAttackType1 = myLSO.data.myObj.objArray[140];
				anyaAttackType2 = myLSO.data.myObj.objArray[141];
				anyaAttackType3 = myLSO.data.myObj.objArray[142];
				anyaAttackType4 = myLSO.data.myObj.objArray[143];
				guyAttackType1 = myLSO.data.myObj.objArray[144];
				guyAttackType2 = myLSO.data.myObj.objArray[145];
				guyAttackType3 = myLSO.data.myObj.objArray[146];
				guyAttackType4 = myLSO.data.myObj.objArray[147];
				dorgonAttackType1 = myLSO.data.myObj.objArray[148];
				dorgonAttackType2 = myLSO.data.myObj.objArray[149];
				dorgonAttackType3 = myLSO.data.myObj.objArray[150];
				dorgonAttackType4 = myLSO.data.myObj.objArray[151];
				jackAttackType1 = myLSO.data.myObj.objArray[152];
				jackAttackType2 = myLSO.data.myObj.objArray[153];
				jackAttackType3 = myLSO.data.myObj.objArray[154];
				jackAttackType4 = myLSO.data.myObj.objArray[155];
				lucaAttackType1 = myLSO.data.myObj.objArray[156];
				lucaAttackType2 = myLSO.data.myObj.objArray[157];
				lucaAttackType3 = myLSO.data.myObj.objArray[158];
				lucaAttackType4 = myLSO.data.myObj.objArray[159];
				magellanAttackType1 = myLSO.data.myObj.objArray[160];
				magellanAttackType2 = myLSO.data.myObj.objArray[161];
				magellanAttackType3 = myLSO.data.myObj.objArray[162];
				magellanAttackType4 = myLSO.data.myObj.objArray[163];
				xerxesAttackType1 = myLSO.data.myObj.objArray[164];
				xerxesAttackType2 = myLSO.data.myObj.objArray[165];
				xerxesAttackType3 = myLSO.data.myObj.objArray[166];
				xerxesAttackType4 = myLSO.data.myObj.objArray[167];
				nivenStrength = myLSO.data.myObj.objArray[168];
				flintStrength = myLSO.data.myObj.objArray[169];
				helenaStrength = myLSO.data.myObj.objArray[170];
				grotiusStrength = myLSO.data.myObj.objArray[171];
				dorgonStrength = myLSO.data.myObj.objArray[172];
				jackStrength = myLSO.data.myObj.objArray[173];
				lucaStrength = myLSO.data.myObj.objArray[174];
				magellanStrength = myLSO.data.myObj.objArray[175];
				xerxesStrength = myLSO.data.myObj.objArray[176];
				darklingPsyPower = myLSO.data.myObj.objArray[177];
				shadowboxerPsyPower = myLSO.data.myObj.objArray[178];
				festusPsyPower = myLSO.data.myObj.objArray[179];
				nivenPsyPower = myLSO.data.myObj.objArray[180];
				flintPsyPower = myLSO.data.myObj.objArray[181];
				helenaPsyPower = myLSO.data.myObj.objArray[182];
				grotiusPsyPower = myLSO.data.myObj.objArray[183];
				anyaPsyPower = myLSO.data.myObj.objArray[184];
				guyPsyPower = myLSO.data.myObj.objArray[185];
				dorgonPsyPower = myLSO.data.myObj.objArray[186];
				jackPsyPower = myLSO.data.myObj.objArray[187];
				lucaPsyPower = myLSO.data.myObj.objArray[188];
				magellanPsyPower = myLSO.data.myObj.objArray[189];
				xerxesPsyPower = myLSO.data.myObj.objArray[190];
				darklingPsyDefense = myLSO.data.myObj.objArray[191];
				shadowboxerPsyDefense = myLSO.data.myObj.objArray[192];
				festusPsyDefense = myLSO.data.myObj.objArray[193];
				nivenPsyDefense = myLSO.data.myObj.objArray[194];
				flintPsyDefense = myLSO.data.myObj.objArray[195];
				helenaPsyDefense = myLSO.data.myObj.objArray[196];
				grotiusPsyDefense = myLSO.data.myObj.objArray[197];
				anyaPsyDefense = myLSO.data.myObj.objArray[198];
				guyPsyDefense = myLSO.data.myObj.objArray[199];
				dorgonPsyDefense = myLSO.data.myObj.objArray[200];
				jackPsyDefense = myLSO.data.myObj.objArray[201];
				lucaPsyDefense = myLSO.data.myObj.objArray[202];
				magellanPsyDefense = myLSO.data.myObj.objArray[203];
				xerxesPsyDefense = myLSO.data.myObj.objArray[204];
				darklingMBLevel = myLSO.data.myObj.objArray[205];
				shadowboxerMBLevel = myLSO.data.myObj.objArray[206];
				festusMBLevel = myLSO.data.myObj.objArray[207];
				nivenMBLevel = myLSO.data.myObj.objArray[208];
				flintMBLevel = myLSO.data.myObj.objArray[209];
				helenaMBLevel = myLSO.data.myObj.objArray[210];
				grotiusMBLevel = myLSO.data.myObj.objArray[211];
				anyaMBLevel = myLSO.data.myObj.objArray[212];
				guyMBLevel = myLSO.data.myObj.objArray[213];
				dorgonMBLevel = myLSO.data.myObj.objArray[214];
				jackMBLevel = myLSO.data.myObj.objArray[215];
				lucaMBLevel = myLSO.data.myObj.objArray[216];
				magellanMBLevel = myLSO.data.myObj.objArray[217];
				xerxesMBLevel = myLSO.data.myObj.objArray[218];
				darklingMSLevel = myLSO.data.myObj.objArray[219];
				shadowboxerMSLevel = myLSO.data.myObj.objArray[220];
				festusMSLevel = myLSO.data.myObj.objArray[221];
				nivenMSLevel = myLSO.data.myObj.objArray[222];
				flintMSLevel = myLSO.data.myObj.objArray[223];
				helenaMSLevel = myLSO.data.myObj.objArray[224];
				grotiusMSLevel = myLSO.data.myObj.objArray[225];
				anyaMSLevel = myLSO.data.myObj.objArray[226];
				guyMSLevel = myLSO.data.myObj.objArray[227];
				dorgonMSLevel = myLSO.data.myObj.objArray[228];
				jackMSLevel = myLSO.data.myObj.objArray[229];
				lucaMSLevel = myLSO.data.myObj.objArray[230];
				magellanMSLevel = myLSO.data.myObj.objArray[231];
				xerxesMSLevel = myLSO.data.myObj.objArray[232];
				darklingPBLevel = myLSO.data.myObj.objArray[233];
				shadowboxerPBLevel = myLSO.data.myObj.objArray[234];
				festusPBLevel = myLSO.data.myObj.objArray[235];
				nivenPBLevel = myLSO.data.myObj.objArray[236];
				flintPBLevel = myLSO.data.myObj.objArray[237];
				helenaPBLevel = myLSO.data.myObj.objArray[238];
				grotiusPBLevel = myLSO.data.myObj.objArray[239];
				anyaPBLevel = myLSO.data.myObj.objArray[240];
				guyPBLevel = myLSO.data.myObj.objArray[241];
				dorgonPBLevel = myLSO.data.myObj.objArray[242];
				jackPBLevel = myLSO.data.myObj.objArray[243];
				lucaPBLevel = myLSO.data.myObj.objArray[244];
				magellanPBLevel = myLSO.data.myObj.objArray[245];
				xerxesPBLevel = myLSO.data.myObj.objArray[246];
				darklingFBLevel = myLSO.data.myObj.objArray[247];
				shadowboxerFBLevel = myLSO.data.myObj.objArray[248];
				festusFBLevel = myLSO.data.myObj.objArray[249];
				nivenFBLevel = myLSO.data.myObj.objArray[250];
				flintFBLevel = myLSO.data.myObj.objArray[251];
				helenaFBLevel = myLSO.data.myObj.objArray[252];
				grotiusFBLevel = myLSO.data.myObj.objArray[253];
				anyaFBLevel = myLSO.data.myObj.objArray[254];
				guyFBLevel = myLSO.data.myObj.objArray[255];
				dorgonFBLevel = myLSO.data.myObj.objArray[256];
				jackFBLevel = myLSO.data.myObj.objArray[257];
				lucaFBLevel = myLSO.data.myObj.objArray[258];
				magellanFBLevel = myLSO.data.myObj.objArray[259];
				xerxesFBLevel = myLSO.data.myObj.objArray[260];
				slot1 = myLSO.data.myObj.objArray[261];
				slot2 = myLSO.data.myObj.objArray[262];
				slot3 = myLSO.data.myObj.objArray[263];
				slot5 = myLSO.data.myObj.objArray[264];
				slot6 = myLSO.data.myObj.objArray[265];
				slot7 = myLSO.data.myObj.objArray[266];
				slot8 = myLSO.data.myObj.objArray[267];
				mainCharMovement = myLSO.data.myObj.objArray[268];
				darklingMovement = myLSO.data.myObj.objArray[269];
				shadowboxerMovement = myLSO.data.myObj.objArray[270];
				festusMovement = myLSO.data.myObj.objArray[271];
				nivenMovement = myLSO.data.myObj.objArray[272];
				flintMovement = myLSO.data.myObj.objArray[273];
				helenaMovement = myLSO.data.myObj.objArray[274];
				grotiusMovement = myLSO.data.myObj.objArray[275];
				anyaMovement = myLSO.data.myObj.objArray[276];
				guyMovement = myLSO.data.myObj.objArray[277];
				dorgonMovement = myLSO.data.myObj.objArray[278];
				jackMovement = myLSO.data.myObj.objArray[279];
				lucaMovement = myLSO.data.myObj.objArray[280];
				magellanMovement = myLSO.data.myObj.objArray[281];
				xerxesMovement = myLSO.data.myObj.objArray[282];
				spokeToJack = myLSO.data.myObj.objArray[283];
				randomBattles = myLSO.data.myObj.objArray[284];
				spokeToNegatus = myLSO.data.myObj.objArray[285];
				moneyWon = myLSO.data.myObj.objArray[286];
				spokeToNarrator = myLSO.data.myObj.objArray[287];
				spokeToAnya = myLSO.data.myObj.objArray[288];
				spokeToGuy = myLSO.data.myObj.objArray[289];
				spokeToFlavin = myLSO.data.myObj.objArray[290];
				spokeToLala = myLSO.data.myObj.objArray[291];
				spokeToVagrant = myLSO.data.myObj.objArray[292];
				foundBooks = myLSO.data.myObj.objArray[293];
				darklingResists = myLSO.data.myObj.objArray[294];
				shadowboxerResists = myLSO.data.myObj.objArray[295];
				festusResists = myLSO.data.myObj.objArray[296];
				nivenResists = myLSO.data.myObj.objArray[297];
				flintResists = myLSO.data.myObj.objArray[298];
				helenaResists = myLSO.data.myObj.objArray[299];
				grotiusResists = myLSO.data.myObj.objArray[300];
				anyaResists = myLSO.data.myObj.objArray[301];
				guyResists = myLSO.data.myObj.objArray[302];
				dorgonResists = myLSO.data.myObj.objArray[303];
				jackResists = myLSO.data.myObj.objArray[304];
				lucaResists = myLSO.data.myObj.objArray[305];
				magellanResists = myLSO.data.myObj.objArray[306];
				xerxesResists = myLSO.data.myObj.objArray[307];
				mainCharResists = myLSO.data.myObj.objArray[308];
				gotBlueOrb = myLSO.data.myObj.objArray[309];
				gotOrangeOrb = myLSO.data.myObj.objArray[310];
				gotBlackOrb = myLSO.data.myObj.objArray[311];
				gotWhiteOrb = myLSO.data.myObj.objArray[312];
				gotGreenOrb = myLSO.data.myObj.objArray[313];
				gotYellowOrb = myLSO.data.myObj.objArray[314];
				missionsDone = myLSO.data.myObj.objArray[315];
				lastMissionsDone = myLSO.data.myObj.objArray[316];
				openedAccount = myLSO.data.myObj.objArray[317];
				amtInAccount = myLSO.data.myObj.objArray[318];
				gotRedOrb = myLSO.data.myObj.objArray[319];
				beat05A = myLSO.data.myObj.objArray[320];
				workshopOpened = myLSO.data.myObj.objArray[321];
				securityCode = myLSO.data.myObj.objArray[322];
				lamp01Color = myLSO.data.myObj.objArray[323];
				lamp02Color = myLSO.data.myObj.objArray[324];
				lamp03Color = myLSO.data.myObj.objArray[325];
				lamp04Color = myLSO.data.myObj.objArray[326];
				lamp05Color = myLSO.data.myObj.objArray[327];
				lamp06Color = myLSO.data.myObj.objArray[328];
				lamp07Color = myLSO.data.myObj.objArray[329];
				lamp08Color = myLSO.data.myObj.objArray[330];
				lamp09Color = myLSO.data.myObj.objArray[331];
				lamp10Color = myLSO.data.myObj.objArray[332];
				spokeToGrotius = myLSO.data.myObj.objArray[333];
				beat06A = myLSO.data.myObj.objArray[334];
				gotSaw = myLSO.data.myObj.objArray[335];
				spokeToGelf = myLSO.data.myObj.objArray[336];
				gotFlameThrower = myLSO.data.myObj.objArray[337];
				gotCapacitor = myLSO.data.myObj.objArray[338];
				gotIndigoOrb = myLSO.data.myObj.objArray[339];
				spokeToPiter = myLSO.data.myObj.objArray[340];
				beatGame = myLSO.data.myObj.objArray[341];
				hyperFocus = myLSO.data.myObj.objArray[342];
				spokeToDavid = myLSO.data.myObj.objArray[343];
				gotGuardGold = myLSO.data.myObj.objArray[344];
				goingtoScene = lastscene;
				changeScene();
				HPdisplay();
			}
		}
		function HPdisplay() {
			charHP = mainCharHP - mainCharDamage;
			charPsP = mainCharPsP - mainCharDrain;
		}
		function donothing() {}
		function gotoMySite() {
			getURL('http://www.sinisterdesign.net/', '_blank');
		}
		function getHelp() {
			getURL('http://sinisterdesign.net/TelepathRPGChapter2FAQ.html', '_blank');
		}
		function endTurnButton() {
			if (moving == false && moveTurn < 16) {
				char1.gotoAndStop(1);
				char2.gotoAndStop(1);
				char3.gotoAndStop(1);
				char4.gotoAndStop(1);
				char5.gotoAndStop(1);
				char6.gotoAndStop(1);
				char7.gotoAndStop(1);
				char8.gotoAndStop(1);
				char9.gotoAndStop(1);
				changeturns();
			}
		}
		function undoButton() {
			if (attacked == 0 && !moving) {
				undoMove();
				displaySteps();
			}
			if (attacked == 1) {
				display = 'Cannot undo after attack.';
			}
		}
		function showHeartsButton() {
			if (moveTurn < 16 && attacked == 0) {
				reDisplaySelection();
				showHearts();
			}
		}
		function rotateButton1() {
			if (moveTurn == 1 && attacked == 0) {
				rotateCW1();
			}
			if (moveTurn == 2 && attacked == 0) {
				rotateCW2();
			}
			if (moveTurn == 3 && attacked == 0) {
				rotateCW3();
			}
			if (moveTurn == 4 && attacked == 0) {
				rotateCW4();
			}
			if (moveTurn == 5 && attacked == 0) {
				rotateCW5();
			}
			if (moveTurn == 6 && attacked == 0) {
				rotateCW6();
			}
			if (moveTurn == 7 && attacked == 0) {
				rotateCW7();
			}
			if (moveTurn == 8 && attacked == 0) {
				rotateCW8();
			}
			if (moveTurn == 9 && attacked == 0) {
				rotateCW9();
			}
			if (attacked == 1) {
			}
		}
		function rotateButton2() {
			if (moveTurn == 1 && attacked == 0) {
				rotateCCW1();
			}
			if (moveTurn == 2 && attacked == 0) {
				rotateCCW2();
			}
			if (moveTurn == 3 && attacked == 0) {
				rotateCCW3();
			}
			if (moveTurn == 4 && attacked == 0) {
				rotateCCW4();
			}
			if (moveTurn == 5 && attacked == 0) {
				rotateCCW5();
			}
			if (moveTurn == 6 && attacked == 0) {
				rotateCCW6();
			}
			if (moveTurn == 7 && attacked == 0) {
				rotateCCW7();
			}
			if (moveTurn == 8 && attacked == 0) {
				rotateCCW8();
			}
			if (moveTurn == 9 && attacked == 0) {
				rotateCCW9();
			}
			if (attacked == 1) {
			}
		}
		function viewNextChar() {
			if (_root.currView == 'magellan' && gotXerxes) {
				_root.currView = 'xerxes';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
			}
			if (_root.currView == 'luca' && gotMagellan) {
				_root.currView = 'magellan';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
			}
			if (_root.currView == 'luca' && !gotMagellan) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
			}
			if (_root.currView == 'jack' && gotLuca) {
				_root.currView = 'luca';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
			}
			if (_root.currView == 'jack' && !gotLuca) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
			}
			if (_root.currView == 'dorgon' && gotJack) {
				_root.currView = 'jack';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
			}
			if (_root.currView == 'dorgon' && !gotJack) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
			}
			if (_root.currView == 'guy' && gotDorgon) {
				_root.currView = 'dorgon';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
			}
			if (_root.currView == 'guy' && !gotDorgon) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
			}
			if (_root.currView == 'anya' && gotGuy) {
				_root.currView = 'guy';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
			}
			if (_root.currView == 'anya' && !gotGuy) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
			}
			if (_root.currView == 'grotius' && gotAnya) {
				_root.currView = 'anya';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
			}
			if (_root.currView == 'grotius' && !gotAnya) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
			}
			if (_root.currView == 'helena' && gotGrotius) {
				_root.currView = 'grotius';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
			}
			if (_root.currView == 'helena' && !gotGrotius) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
			}
			if (_root.currView == 'flint' && gotHelena) {
				_root.currView = 'helena';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
			}
			if (_root.currView == 'flint' && !gotHelena) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
			}
			if (_root.currView == 'niven' && gotFlint) {
				_root.currView = 'flint';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
			}
			if (_root.currView == 'niven' && !gotFlint) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
			}
			if (_root.currView == 'festus' && gotNiven) {
				_root.currView = 'niven';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
			}
			if (_root.currView == 'festus' && !gotNiven) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
			}
			if (_root.currView == 'shadowboxer' && gotFestus) {
				_root.currView = 'festus';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
			}
			if (_root.currView == 'shadowboxer' && !gotFestus) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
			}
			if (_root.currView == 'darkling' && gotShadowboxer) {
				_root.currView = 'shadowboxer';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
			}
			if (_root.currView == 'shadowboxer' && !gotFestus) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
			}
			if (_root.currView == 'hero' && gotDarkling) {
				_root.currView = 'darkling';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
			}
			if (_root.currView == 'hero' && !gotDarkling) {
				if (gotXerxes) {
					_root.currView = 'xerxes';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
				}
				if (gotMagellan) {
					_root.currView = 'magellan';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
			}
		}
		function viewPrevChar() {
			if (_root.currView == 'darkling') {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
			}
			if (_root.currView == 'shadowboxer' && gotDarkling) {
				_root.currView = 'darkling';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
			}
			if (_root.currView == 'shadowboxer' && !gotDarkling) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
			}
			if (_root.currView == 'festus' && gotShadowboxer) {
				_root.currView = 'shadowboxer';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
			}
			if (_root.currView == 'festus' && !gotShadowboxer) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
			}
			if (_root.currView == 'niven' && gotFestus) {
				_root.currView = 'festus';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
			}
			if (_root.currView == 'niven' && !gotFestus) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
			}
			if (_root.currView == 'flint' && gotNiven) {
				_root.currView = 'niven';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
			}
			if (_root.currView == 'flint' && !gotNiven) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
			}
			if (_root.currView == 'helena' && gotFlint) {
				_root.currView = 'flint';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
			}
			if (_root.currView == 'helena' && !gotFlint) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
			}
			if (_root.currView == 'grotius' && gotHelena) {
				_root.currView = 'helena';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
			}
			if (_root.currView == 'grotius' && !gotHelena) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
			}
			if (_root.currView == 'anya' && gotGrotius) {
				_root.currView = 'grotius';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
			}
			if (_root.currView == 'anya' && !gotGrotius) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
			}
			if (_root.currView == 'guy' && gotAnya) {
				_root.currView = 'anya';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
			}
			if (_root.currView == 'guy' && !gotAnya) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
			}
			if (_root.currView == 'dorgon' && gotGuy) {
				_root.currView = 'guy';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
			}
			if (_root.currView == 'dorgon' && !gotGuy) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
			}
			if (_root.currView == 'jack' && gotDorgon) {
				_root.currView = 'dorgon';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
			}
			if (_root.currView == 'jack' && !gotDorgon) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
			}
			if (_root.currView == 'luca' && gotJack) {
				_root.currView = 'jack';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
			}
			if (_root.currView == 'luca' && !gotJack) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
			}
			if (_root.currView == 'magellan' && gotLuca) {
				_root.currView = 'luca';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
			}
			if (_root.currView == 'magellan' && !gotLuca) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
			}
			if (_root.currView == 'xerxes' && gotMagellan) {
				_root.currView = 'magellan';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
			}
			if (_root.currView == 'xerxes' && !gotMagellan) {
				_root.currView = 'hero';
				_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
				if (gotDarkling) {
					_root.currView = 'darkling';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
				}
				if (gotShadowboxer) {
					_root.currView = 'shadowboxer';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
				}
				if (gotFestus) {
					_root.currView = 'festus';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
				}
				if (gotNiven) {
					_root.currView = 'niven';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
				}
				if (gotFlint) {
					_root.currView = 'flint';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
				}
				if (gotHelena) {
					_root.currView = 'helena';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
				}
				if (gotGrotius) {
					_root.currView = 'grotius';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
				}
				if (gotAnya) {
					_root.currView = 'anya';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
				}
				if (gotGuy) {
					_root.currView = 'guy';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
				}
				if (gotDorgon) {
					_root.currView = 'dorgon';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
				}
				if (gotJack) {
					_root.currView = 'jack';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
				}
				if (gotLuca) {
					_root.currView = 'luca';
					_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
				}
			}
		}
		function setSecurityCode() {
			securityCode = random(5);
		}
		function checkSecurityCode() {
			if (securityCode == lamp01Color && securityCode == lamp02Color && securityCode == lamp03Color) {
				if (securityCode == lamp04Color && securityCode == lamp05Color && securityCode == lamp06Color) {
					if (securityCode == lamp07Color && securityCode == lamp08Color && securityCode == lamp09Color) {
						if (securityCode == lamp10Color) {
							workshopOpened = true;
						}
					}
				}
			} else {}
		}
		function setFloorLamps() {
			lamp01Color = random(5);
			lamp02Color = random(5);
			lamp03Color = random(5);
			lamp04Color = random(5);
			lamp05Color = random(5);
			lamp06Color = random(5);
			lamp07Color = random(5);
			lamp08Color = random(5);
			lamp09Color = random(5);
			lamp10Color = random(5);
		}
		function changeFloorLamp01() {
			lamp01Color += 1;
			if (lamp01Color > 4) {
				lamp01Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp02() {
			lamp02Color += 1;
			if (lamp02Color > 4) {
				lamp02Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp03() {
			lamp03Color += 1;
			if (lamp03Color > 4) {
				lamp03Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp04() {
			lamp04Color += 1;
			if (lamp04Color > 4) {
				lamp04Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp05() {
			lamp05Color += 1;
			if (lamp05Color > 4) {
				lamp05Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp06() {
			lamp06Color += 1;
			if (lamp06Color > 4) {
				lamp06Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp07() {
			lamp07Color += 1;
			if (lamp07Color > 4) {
				lamp07Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp08() {
			lamp08Color += 1;
			if (lamp08Color > 4) {
				lamp08Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp09() {
			lamp09Color += 1;
			if (lamp09Color > 4) {
				lamp09Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function changeFloorLamp10() {
			lamp10Color += 1;
			if (lamp10Color > 4) {
				lamp10Color = 0;
			}
			displayFloorLamps();
			checkSecurityCode();
		}
		function displayWallLamp() {
			if (securityCode == 0) {
				Background.wallLamp.gotoAndStop('white');
			}
			if (securityCode == 1) {
				Background.wallLamp.gotoAndStop('blue');
			}
			if (securityCode == 2) {
				Background.wallLamp.gotoAndStop('green');
			}
			if (securityCode == 3) {
				Background.wallLamp.gotoAndStop('yellow');
			}
			if (securityCode == 4) {
				Background.wallLamp.gotoAndStop('red');
			}
		}
		function displayFloorLamps() {
			if (lamp01Color == 0) {
				Background.lamp01.gotoAndStop('white');
			}
			if (lamp01Color == 1) {
				Background.lamp01.gotoAndStop('blue');
			}
			if (lamp01Color == 2) {
				Background.lamp01.gotoAndStop('green');
			}
			if (lamp01Color == 3) {
				Background.lamp01.gotoAndStop('yellow');
			}
			if (lamp01Color == 4) {
				Background.lamp01.gotoAndStop('red');
			}
			if (lamp02Color == 0) {
				Background.lamp02.gotoAndStop('white');
			}
			if (lamp02Color == 1) {
				Background.lamp02.gotoAndStop('blue');
			}
			if (lamp02Color == 2) {
				Background.lamp02.gotoAndStop('green');
			}
			if (lamp02Color == 3) {
				Background.lamp02.gotoAndStop('yellow');
			}
			if (lamp02Color == 4) {
				Background.lamp02.gotoAndStop('red');
			}
			if (lamp03Color == 0) {
				Background.lamp03.gotoAndStop('white');
			}
			if (lamp03Color == 1) {
				Background.lamp03.gotoAndStop('blue');
			}
			if (lamp03Color == 2) {
				Background.lamp03.gotoAndStop('green');
			}
			if (lamp03Color == 3) {
				Background.lamp03.gotoAndStop('yellow');
			}
			if (lamp03Color == 4) {
				Background.lamp03.gotoAndStop('red');
			}
			if (lamp04Color == 0) {
				Background.lamp04.gotoAndStop('white');
			}
			if (lamp04Color == 1) {
				Background.lamp04.gotoAndStop('blue');
			}
			if (lamp04Color == 2) {
				Background.lamp04.gotoAndStop('green');
			}
			if (lamp04Color == 3) {
				Background.lamp04.gotoAndStop('yellow');
			}
			if (lamp04Color == 4) {
				Background.lamp04.gotoAndStop('red');
			}
			if (lamp05Color == 0) {
				Background.lamp05.gotoAndStop('white');
			}
			if (lamp05Color == 1) {
				Background.lamp05.gotoAndStop('blue');
			}
			if (lamp05Color == 2) {
				Background.lamp05.gotoAndStop('green');
			}
			if (lamp05Color == 3) {
				Background.lamp05.gotoAndStop('yellow');
			}
			if (lamp05Color == 4) {
				Background.lamp05.gotoAndStop('red');
			}
			if (lamp06Color == 0) {
				Background.lamp06.gotoAndStop('white');
			}
			if (lamp06Color == 1) {
				Background.lamp06.gotoAndStop('blue');
			}
			if (lamp06Color == 2) {
				Background.lamp06.gotoAndStop('green');
			}
			if (lamp06Color == 3) {
				Background.lamp06.gotoAndStop('yellow');
			}
			if (lamp06Color == 4) {
				Background.lamp06.gotoAndStop('red');
			}
			if (lamp07Color == 0) {
				Background.lamp07.gotoAndStop('white');
			}
			if (lamp07Color == 1) {
				Background.lamp07.gotoAndStop('blue');
			}
			if (lamp07Color == 2) {
				Background.lamp07.gotoAndStop('green');
			}
			if (lamp07Color == 3) {
				Background.lamp07.gotoAndStop('yellow');
			}
			if (lamp07Color == 4) {
				Background.lamp07.gotoAndStop('red');
			}
			if (lamp08Color == 0) {
				Background.lamp08.gotoAndStop('white');
			}
			if (lamp08Color == 1) {
				Background.lamp08.gotoAndStop('blue');
			}
			if (lamp08Color == 2) {
				Background.lamp08.gotoAndStop('green');
			}
			if (lamp08Color == 3) {
				Background.lamp08.gotoAndStop('yellow');
			}
			if (lamp08Color == 4) {
				Background.lamp08.gotoAndStop('red');
			}
			if (lamp09Color == 0) {
				Background.lamp09.gotoAndStop('white');
			}
			if (lamp09Color == 1) {
				Background.lamp09.gotoAndStop('blue');
			}
			if (lamp09Color == 2) {
				Background.lamp09.gotoAndStop('green');
			}
			if (lamp09Color == 3) {
				Background.lamp09.gotoAndStop('yellow');
			}
			if (lamp09Color == 4) {
				Background.lamp09.gotoAndStop('red');
			}
			if (lamp10Color == 0) {
				Background.lamp10.gotoAndStop('white');
			}
			if (lamp10Color == 1) {
				Background.lamp10.gotoAndStop('blue');
			}
			if (lamp10Color == 2) {
				Background.lamp10.gotoAndStop('green');
			}
			if (lamp10Color == 3) {
				Background.lamp10.gotoAndStop('yellow');
			}
			if (lamp10Color == 4) {
				Background.lamp10.gotoAndStop('red');
			}
		}
		function setDefaults() {
			speed = 5;
			tileSize = 50;
			velocityX = 0;
			velocityY = 0;
			currentX = char1._x;
			currentY = char1._y;
			initialX = char1._x;
			initialY = char1._y;
			moveTurn = 1;
			if (whichBattle == 'mission07A' || whichBattle == 'townfight01' || whichBattle == 'townfight02') {
				moveTurn = 15;
			}
			MBDmg = 0;
			MSDmg = 0;
			PBDmg = 0;
			FBDmg = 0;
			hotKeyAtk = true;
			canEndTurn = true;
			shownHearts = false;
			moving = false;
			blocked = false;
			wonBattle = false;
			lostBattle = false;
			nelisDead = false;
			currAttackType1 = 'none';
			currAttackType2 = 'none';
			currAttackType3 = 'none';
			currAttackType4 = 'none';
			nelisAttackType = '';
			attacked = 0;
			shouldAttack = 0;
			moved = 0;
			pspSpent = 0;
			speedIncreased = 0;
			totalDead = 0;
			checkedForDead = false;
			display = '';
			chosenAttack = 'none';
			mindBlastDrain = 2;
			whirlwindDrain = 8;
			snakeeyesDrain = 5;
			shadowBlastDrain = 6;
			darkVortexDrain = 16;
			shadowPort1Drain = 3;
			shadowPort2Drain = 5;
			pyroBlastDrain = 7;
			frostBlastDrain = 4;
			frostBlast2Drain = 7;
			fireBreathDrain = 3;
			darkBreathDrain = 10;
			lightBlastDrain = 16;
			laserBlastDrain = 6;
			pyroHailDrain = 12;
			megaShieldDrain = 5;
			bigShieldDrain = 10;
			frostShieldDrain = 4;
			mindShieldDrain = 3;
			farShieldDrain = 3;
			feedbackDrain = 5;
			vengeanceDrain = 5;
			flingDrain = 3;
			trickShotDrain = 4;
			steamEngineDrain = 3;
			spinSawDrain = 1;
			meleeDrain = 0;
			charAtkDrain = 0;
			steps = 0;
			focus = 2;
			startX = 0;
			startY = 0;
			hitWallLeft = false;
			hitWallRight = false;
			hitWallUp = false;
			hitWallDown = false;
			hitWallLeft2 = false;
			hitWallRight2 = false;
			hitWallUp2 = false;
			hitWallDown2 = false;
			hitWallLeft3 = false;
			hitWallRight3 = false;
			hitWallUp3 = false;
			hitWallDown3 = false;
			hitWallLeft4 = false;
			hitWallRight4 = false;
			hitWallUp4 = false;
			hitWallDown4 = false;
			hitWallLeft5 = false;
			hitWallRight5 = false;
			hitWallUp5 = false;
			hitWallDown5 = false;
			hitWallLeft6 = false;
			hitWallRight6 = false;
			hitWallUp6 = false;
			hitWallDown6 = false;
			hitWallLeft7 = false;
			hitWallRight7 = false;
			hitWallLeft8 = false;
			hitWallRight8 = false;
			hitWallLeft9 = false;
			hitWallRight9 = false;
			hitWallUpLeft = false;
			hitWallDownRight = false;
			hitWallUpRight = false;
			hitWallDownLeft = false;
			hitBlockLeft = false;
			hitBlockRight = false;
			hitBlockUp = false;
			hitBlockDown = false;
			hitBlockLeft2 = false;
			hitBlockRight2 = false;
			hitBlockUp2 = false;
			hitBlockDown2 = false;
			hitBlockUpLeft = false;
			hitBlockUpRight = false;
			hitBlockDownLeft = false;
			hitBlockDownRight = false;
			hitBlockUp2Left = false;
			hitBlockUp2Right = false;
			hitBlockDown2Left = false;
			hitBlockDown2Right = false;
			hitBlockUpLeft2 = false;
			hitBlockUpRight2 = false;
			hitBlockDownLeft2 = false;
			hitBlockDownRight2 = false;
			char1Damage = 0;
			char2Damage = 0;
			char3Damage = 0;
			char4Damage = 0;
			char5Damage = 0;
			char6Damage = 0;
			char7Damage = 0;
			char8Damage = 0;
			char1Drain = 0;
			char2Drain = 0;
			char3Drain = 0;
			char4Drain = 0;
			char5Drain = 0;
			char6Drain = 0;
			char7Drain = 0;
			char8Drain = 0;
			char16Damage = 0;
			char17Damage = 0;
			char18Damage = 0;
			char19Damage = 0;
			char20Damage = 0;
			char21Damage = 0;
			char22Damage = 0;
			char23Damage = 0;
			char24Damage = 0;
			char25Damage = 0;
			char16Drain = 0;
			char17Drain = 0;
			char18Drain = 0;
			char19Drain = 0;
			char20Drain = 0;
			char21Drain = 0;
			char22Drain = 0;
			char23Drain = 0;
			char24Drain = 0;
			char25Drain = 0;
			displaySelection();
			displayName();
			displayAttackButtons();
			displayHP();
			displayPsP();
			displaySteps();
		}
		function endTurnButton() {
			if (moving == false && attacked == 0 && moveTurn < 16 && canEndTurn == true) {
				canEndTurn == false;
				char1.gotoAndStop(1);
				char2.gotoAndStop(1);
				char3.gotoAndStop(1);
				char4.gotoAndStop(1);
				char5.gotoAndStop(1);
				char6.gotoAndStop(1);
				char7.gotoAndStop(1);
				char8.gotoAndStop(1);
				char9.gotoAndStop(1);
				changeturns();
			}
		}
		function surrenderButton() {
			if (moving == false && attacked == 0 && moveTurn < 16) {
				loseBattle();
			}
		}
		function attackButton1() {
			if (moving == false && hotKeyAtk == true && moveTurn < 16) {
				if (currAttackType1 == 'none') {
				} else {
					if (attacked == 0) {
						chosenAttack = currAttackType1;
						attack();
					} else {
						display = 'Already attacked.';
					}
				}
			} else {
				if (hotKeyAtk == false) {
					display = 'Move cursor off character to use attack hot keys!';
				}
			}
		}
		function attackButton2() {
			if (moving == false && hotKeyAtk == true && moveTurn < 16) {
				if (currAttackType2 == 'none') {
				} else {
					if (attacked == 0) {
						chosenAttack = currAttackType2;
						attack();
					} else {
						display = 'Already attacked.';
					}
				}
			} else {
				if (hotKeyAtk == false) {
					display = 'Move cursor off character to use attack hot keys!';
				}
			}
		}
		function attackButton3() {
			if (moving == false && hotKeyAtk == true && moveTurn < 16) {
				if (currAttackType3 == 'none') {
				} else {
					if (attacked == 0) {
						chosenAttack = currAttackType3;
						attack();
					} else {
						display = 'Already attacked.';
					}
				}
			} else {
				if (hotKeyAtk == false) {
					display = 'Move cursor off character to use attack hot keys!';
				}
			}
		}
		function attackButton4() {
			if (moving == false && hotKeyAtk == true && moveTurn < 16) {
				if (currAttackType4 == 'none') {
				} else {
					if (attacked == 0) {
						chosenAttack = currAttackType4;
						attack();
					} else {
						display = 'Already attacked.';
					}
				}
			} else {
				if (hotKeyAtk == false) {
					display = 'Move cursor off character to use attack hot keys!';
				}
			}
		}
		function populateBattlefield() {
			char1Dead = true;
			char2Dead = true;
			char3Dead = true;
			char5Dead = true;
			char6Dead = true;
			char7Dead = true;
			char8Dead = true;
			char9Dead = true;
			char10Dead = true;
			char11Dead = true;
			char12Dead = true;
			char13Dead = true;
			char14Dead = true;
			char15Dead = true;
			if (slot1 == 'Darkling' && !darklingDead) {
				_root.attachMovie('shadowlingRedSmallGood', 'char1', 2);
				name1 = 'Darkling';
				char1Movement = darklingMovement;
				char1Resists = darklingResists;
				char1Dead = false;
				MaxHP1 = darklingHP;
				MaxPsP1 = darklingPsP;
				MaxSteps1 = darklingSpeed;
				char1AttackType1 = darklingAttackType1;
				char1AttackType2 = darklingAttackType2;
				char1AttackType3 = darklingAttackType3;
				char1AttackType4 = darklingAttackType4;
				char1Strength = 1;
				char1PsyPower = darklingPsyPower;
				char1PsyDefense = darklingPsyDefense;
				char1MBlevel = darklingMBLevel;
				char1MSlevel = darklingMSLevel;
				char1PBlevel = darklingPBLevel;
				char1FBmax = darklingFBLevel + darklingPsyDefense;
			}
			if (slot1 == 'Shadowboxer' && !shadowboxerDead) {
				_root.attachMovie('shadowlingRedGood', 'char1', 2);
				name1 = 'Shadowboxer';
				char1Movement = shadowboxerMovement;
				char1Resists = shadowboxerResists;
				char1Dead = false;
				MaxHP1 = shadowboxerHP;
				MaxPsP1 = shadowboxerPsP;
				MaxSteps1 = shadowboxerSpeed;
				char1AttackType1 = shadowboxerAttackType1;
				char1AttackType2 = shadowboxerAttackType2;
				char1AttackType3 = shadowboxerAttackType3;
				char1AttackType4 = shadowboxerAttackType4;
				char1Strength = 1;
				char1PsyPower = shadowboxerPsyPower;
				char1PsyDefense = shadowboxerPsyDefense;
				char1MBlevel = shadowboxerMBLevel;
				char1MSlevel = shadowboxerMSLevel;
				char1PBlevel = shadowboxerPBLevel;
				char1FBlevel = shadowboxerFBLevel;
				char1FBmax = shadowboxerFBLevel + shadowboxerPsyDefense;
			}
			if (slot1 == 'Festus' && !festusDead) {
				_root.attachMovie('shadowlingBlueGood', 'char1', 2);
				name1 = 'Festus';
				char1Movement = festusMovement;
				char1Resists = festusResists;
				char1Dead = false;
				MaxHP1 = festusHP;
				MaxPsP1 = festusPsP;
				MaxSteps1 = festusSpeed;
				char1AttackType1 = festusAttackType1;
				char1AttackType2 = festusAttackType2;
				char1AttackType3 = festusAttackType3;
				char1AttackType4 = festusAttackType4;
				char1Strength = 1;
				char1PsyPower = festusPsyPower;
				char1PsyDefense = festusPsyDefense;
				char1MBlevel = festusMBLevel;
				char1MSlevel = festusMSLevel;
				char1PBlevel = festusPBLevel;
				char1FBmax = festusFBLevel + festusPsyDefense;
			}
			if (slot1 == 'Niven' && !nivenDead) {
				_root.attachMovie('shadowlingKniferGood', 'char1', 2);
				name1 = 'Niven';
				char1Movement = nivenMovement;
				char1Resists = nivenResists;
				char1Dead = false;
				MaxHP1 = nivenHP;
				MaxPsP1 = nivenPsP;
				MaxSteps1 = nivenSpeed;
				char1AttackType1 = nivenAttackType1;
				char1AttackType2 = nivenAttackType2;
				char1AttackType3 = nivenAttackType3;
				char1AttackType4 = nivenAttackType4;
				char1Strength = nivenStrength;
				char1PsyPower = nivenPsyPower;
				char1PsyDefense = nivenPsyDefense;
				char1MBlevel = nivenMBLevel;
				char1MSlevel = nivenMSLevel;
				char1PBlevel = nivenPBLevel;
				char1FBmax = nivenFBLevel + nivenPsyDefense;
			}
			if (slot1 == 'Flint' && !flintDead) {
				_root.attachMovie('stoneGolemGood', 'char1', 2);
				name1 = 'Flint';
				char1Movement = flintMovement;
				char1Resists = flintResists;
				char1Dead = false;
				MaxHP1 = flintHP;
				MaxPsP1 = flintPsP;
				MaxSteps1 = flintSpeed;
				char1AttackType1 = flintAttackType1;
				char1AttackType2 = flintAttackType2;
				char1AttackType3 = flintAttackType3;
				char1AttackType4 = flintAttackType4;
				char1Strength = flintStrength;
				char1PsyPower = flintPsyPower;
				char1PsyDefense = flintPsyDefense;
				char1MBlevel = flintMBLevel;
				char1MSlevel = flintMSLevel;
				char1PBlevel = flintPBLevel;
				char1FBmax = flintFBLevel + flintPsyDefense;
			}
			if (slot1 == 'Helena' && !helenaDead) {
				_root.attachMovie('guardRedFem', 'char1', 2);
				name1 = 'Helena';
				char1Movement = helenaMovement;
				char1Resists = helenaResists;
				char1Dead = false;
				MaxHP1 = helenaHP;
				MaxPsP1 = helenaPsP;
				MaxSteps1 = helenaSpeed;
				char1AttackType1 = helenaAttackType1;
				char1AttackType2 = helenaAttackType2;
				char1AttackType3 = helenaAttackType3;
				char1AttackType4 = helenaAttackType4;
				char1Strength = helenaStrength;
				char1PsyPower = helenaPsyPower;
				char1PsyDefense = helenaPsyDefense;
				char1MBlevel = helenaMBLevel;
				char1MSlevel = helenaMSLevel;
				char1PBlevel = helenaPBLevel;
				char1FBmax = helenaFBLevel + helenaPsyDefense;
			}
			if (slot1 == 'Grotius' && !grotiusDead) {
				_root.attachMovie('spriggatWhiteGood', 'char1', 2);
				name1 = 'Grotius';
				char1Movement = grotiusMovement;
				char1Resists = grotiusResists;
				char1Dead = false;
				MaxHP1 = grotiusHP;
				MaxPsP1 = grotiusPsP;
				MaxSteps1 = grotiusSpeed;
				char1AttackType1 = grotiusAttackType1;
				char1AttackType2 = grotiusAttackType2;
				char1AttackType3 = grotiusAttackType3;
				char1AttackType4 = grotiusAttackType4;
				char1Strength = grotiusStrength;
				char1PsyPower = grotiusPsyPower;
				char1PsyDefense = grotiusPsyDefense;
				char1MBlevel = grotiusMBLevel;
				char1MSlevel = grotiusMSLevel;
				char1PBlevel = grotiusPBLevel;
				char1FBmax = grotiusFBLevel + grotiusPsyDefense;
			}
			if (slot1 == 'Anya' && !anyaDead) {
				_root.attachMovie('anya', 'char1', 2);
				name1 = 'Anya';
				char1Movement = anyaMovement;
				char1Resists = anyaResists;
				char1Dead = false;
				MaxHP1 = anyaHP;
				MaxPsP1 = anyaPsP;
				MaxSteps1 = anyaSpeed;
				char1AttackType1 = anyaAttackType1;
				char1AttackType2 = anyaAttackType2;
				char1AttackType3 = anyaAttackType3;
				char1AttackType4 = anyaAttackType4;
				char1Strength = 1;
				char1PsyPower = anyaPsyPower;
				char1PsyDefense = anyaPsyDefense;
				char1MBlevel = anyaMBLevel;
				char1MSlevel = anyaMSLevel;
				char1PBlevel = anyaPBLevel;
				char1FBmax = anyaFBLevel + anyaPsyDefense;
			}
			if (slot1 == 'Guy' && !guyDead) {
				_root.attachMovie('guy', 'char1', 2);
				name1 = 'Guy';
				char1Movement = guyMovement;
				char1Resists = guyResists;
				char1Dead = false;
				MaxHP1 = guyHP;
				MaxPsP1 = guyPsP;
				MaxSteps1 = guySpeed;
				char1AttackType1 = guyAttackType1;
				char1AttackType2 = guyAttackType2;
				char1AttackType3 = guyAttackType3;
				char1AttackType4 = guyAttackType4;
				char1Strength = 1;
				char1PsyPower = guyPsyPower;
				char1PsyDefense = guyPsyDefense;
				char1MBlevel = guyMBLevel;
				char1MSlevel = guyMSLevel;
				char1PBlevel = guyPBLevel;
				char1FBmax = guyFBLevel + guyPsyDefense;
			}
			if (slot1 == 'Dorgon' && !dorgonDead) {
				_root.attachMovie('XXX', 'char1', 2);
				name1 = 'Dorgon';
				char1Movement = dorgonMovement;
				char1Resists = dorgonResists;
				char1Dead = false;
				MaxHP1 = dorgonHP;
				MaxPsP1 = dorgonPsP;
				MaxSteps1 = dorgonSpeed;
				char1AttackType1 = dorgonAttackType1;
				char1AttackType2 = dorgonAttackType2;
				char1AttackType3 = dorgonAttackType3;
				char1AttackType4 = dorgonAttackType4;
				char1Strength = dorgonStrength;
				char1PsyPower = dorgonPsyPower;
				char1PsyDefense = dorgonPsyDefense;
				char1MBlevel = dorgonMBLevel;
				char1MSlevel = dorgonMSLevel;
				char1PBlevel = dorgonPBLevel;
				char1FBmax = dorgonFBLevel + dorgonPsyDefense;
			}
			if (slot1 == 'Gamblin\' Jack' && !jackDead) {
				_root.attachMovie('guardWhiteCape', 'char1', 2);
				name1 = 'Gamblinâ€™ Jack';
				char1Movement = jackMovement;
				char1Resists = jackResists;
				char1Dead = false;
				MaxHP1 = jackHP;
				MaxPsP1 = jackPsP;
				MaxSteps1 = jackSpeed;
				char1AttackType1 = jackAttackType1;
				char1AttackType2 = jackAttackType2;
				char1AttackType3 = jackAttackType3;
				char1AttackType4 = jackAttackType4;
				char1Strength = jackStrength;
				char1PsyPower = jackPsyPower;
				char1PsyDefense = jackPsyDefense;
				char1MBlevel = jackMBLevel;
				char1MSlevel = jackMSLevel;
				char1PBlevel = jackPBLevel;
				char1FBmax = jackFBLevel + jackPsyDefense;
			}
			if (slot1 == 'Luca' && !lucaDead) {
				_root.attachMovie('XXX', 'char1', 2);
				name1 = 'Luca';
				char1Movement = lucaMovement;
				char1Resists = lucaResists;
				char1Dead = false;
				MaxHP1 = lucaHP;
				MaxPsP1 = lucaPsP;
				MaxSteps1 = lucaSpeed;
				char1AttackType1 = lucaAttackType1;
				char1AttackType2 = lucaAttackType2;
				char1AttackType3 = lucaAttackType3;
				char1AttackType4 = lucaAttackType4;
				char1Strength = lucaStrength;
				char1PsyPower = lucaPsyPower;
				char1PsyDefense = lucaPsyDefense;
				char1MBlevel = lucaMBLevel;
				char1MSlevel = lucaMSLevel;
				char1PBlevel = lucaPBLevel;
				char1FBmax = lucaFBLevel + lucaPsyDefense;
			}
			if (slot1 == 'Magellan' && !magellanDead) {
				_root.attachMovie('XXX', 'char1', 2);
				name1 = 'Magellan';
				char1Movement = magellanMovement;
				char1Resists = magellanResists;
				char1Dead = false;
				MaxHP1 = magellanHP;
				MaxPsP1 = magellanPsP;
				MaxSteps1 = magellanSpeed;
				char1AttackType1 = magellanAttackType1;
				char1AttackType2 = magellanAttackType2;
				char1AttackType3 = magellanAttackType3;
				char1AttackType4 = magellanAttackType4;
				char1Strength = magellanStrength;
				char1PsyPower = magellanPsyPower;
				char1PsyDefense = magellanPsyDefense;
				char1MBlevel = magellanMBLevel;
				char1MSlevel = magellanMSLevel;
				char1PBlevel = magellanPBLevel;
				char1FBmax = magellanFBLevel + magellanPsyDefense;
			}
			if (slot1 == 'Xerxes' && !xerxesDead) {
				_root.attachMovie('XXX', 'char1', 2);
				name1 = 'Xerxes';
				char1Movement = xerxesMovement;
				char1Resists = xerxesResists;
				char1Dead = false;
				MaxHP1 = xerxesHP;
				MaxPsP1 = xerxesPsP;
				MaxSteps1 = xerxesSpeed;
				char1AttackType1 = xerxesAttackType1;
				char1AttackType2 = xerxesAttackType2;
				char1AttackType3 = xerxesAttackType3;
				char1AttackType4 = xerxesAttackType4;
				char1Strength = xerxesStrength;
				char1PsyPower = xerxesPsyPower;
				char1PsyDefense = xerxesPsyDefense;
				char1MBlevel = xerxesMBLevel;
				char1MSlevel = xerxesMSLevel;
				char1PBlevel = xerxesPBLevel;
				char1FBmax = xerxesFBLevel + xerxesPsyDefense;
			}
			if (slot2 == 'Darkling' && !darklingDead) {
				_root.attachMovie('shadowlingRedSmallGood', 'char2', 3);
				name2 = 'Darkling';
				char2Movement = darklingMovement;
				char2Resists = darklingResists;
				char2Dead = false;
				MaxHP2 = darklingHP;
				MaxPsP2 = darklingPsP;
				MaxSteps2 = darklingSpeed;
				char2AttackType1 = darklingAttackType1;
				char2AttackType2 = darklingAttackType2;
				char2AttackType3 = darklingAttackType3;
				char2AttackType4 = darklingAttackType4;
				char2Strength = 1;
				char2PsyPower = darklingPsyPower;
				char2PsyDefense = darklingPsyDefense;
				char2MBlevel = darklingMBLevel;
				char2MSlevel = darklingMSLevel;
				char2PBlevel = darklingPBLevel;
				char2FBmax = darklingFBLevel + darklingPsyDefense;
			}
			if (slot2 == 'Shadowboxer' && !shadowboxerDead) {
				_root.attachMovie('shadowlingRedGood', 'char2', 3);
				name2 = 'Shadowboxer';
				char2Movement = shadowboxerMovement;
				char2Resists = shadowboxerResists;
				char2Dead = false;
				MaxHP2 = shadowboxerHP;
				MaxPsP2 = shadowboxerPsP;
				MaxSteps2 = shadowboxerSpeed;
				char2AttackType1 = shadowboxerAttackType1;
				char2AttackType2 = shadowboxerAttackType2;
				char2AttackType3 = shadowboxerAttackType3;
				char2AttackType4 = shadowboxerAttackType4;
				char2Strength = 1;
				char2PsyPower = shadowboxerPsyPower;
				char2PsyDefense = shadowboxerPsyDefense;
				char2MBlevel = shadowboxerMBLevel;
				char2MSlevel = shadowboxerMSLevel;
				char2PBlevel = shadowboxerPBLevel;
				char2FBlevel = shadowboxerFBLevel;
				char2FBmax = shadowboxerFBLevel + shadowboxerPsyDefense;
			}
			if (slot2 == 'Festus' && !festusDead) {
				_root.attachMovie('shadowlingBlueGood', 'char2', 3);
				name2 = 'Festus';
				char2Movement = festusMovement;
				char2Resists = festusResists;
				char2Dead = false;
				MaxHP2 = festusHP;
				MaxPsP2 = festusPsP;
				MaxSteps2 = festusSpeed;
				char2AttackType1 = festusAttackType1;
				char2AttackType2 = festusAttackType2;
				char2AttackType3 = festusAttackType3;
				char2AttackType4 = festusAttackType4;
				char2Strength = 1;
				char2PsyPower = festusPsyPower;
				char2PsyDefense = festusPsyDefense;
				char2MBlevel = festusMBLevel;
				char2MSlevel = festusMSLevel;
				char2PBlevel = festusPBLevel;
				char2FBmax = festusFBLevel + festusPsyDefense;
			}
			if (slot2 == 'Niven' && !nivenDead) {
				_root.attachMovie('shadowlingKniferGood', 'char2', 3);
				name2 = 'Niven';
				char2Movement = nivenMovement;
				char2Resists = nivenResists;
				char2Dead = false;
				MaxHP2 = nivenHP;
				MaxPsP2 = nivenPsP;
				MaxSteps2 = nivenSpeed;
				char2AttackType1 = nivenAttackType1;
				char2AttackType2 = nivenAttackType2;
				char2AttackType3 = nivenAttackType3;
				char2AttackType4 = nivenAttackType4;
				char2Strength = nivenStrength;
				char2PsyPower = nivenPsyPower;
				char2PsyDefense = nivenPsyDefense;
				char2MBlevel = nivenMBLevel;
				char2MSlevel = nivenMSLevel;
				char2PBlevel = nivenPBLevel;
				char2FBmax = nivenFBLevel + nivenPsyDefense;
			}
			if (slot2 == 'Flint' && !flintDead) {
				_root.attachMovie('stoneGolemGood', 'char2', 3);
				name2 = 'Flint';
				char2Movement = flintMovement;
				char2Resists = flintResists;
				char2Dead = false;
				MaxHP2 = flintHP;
				MaxPsP2 = flintPsP;
				MaxSteps2 = flintSpeed;
				char2AttackType1 = flintAttackType1;
				char2AttackType2 = flintAttackType2;
				char2AttackType3 = flintAttackType3;
				char2AttackType4 = flintAttackType4;
				char2Strength = flintStrength;
				char2PsyPower = flintPsyPower;
				char2PsyDefense = flintPsyDefense;
				char2MBlevel = flintMBLevel;
				char2MSlevel = flintMSLevel;
				char2PBlevel = flintPBLevel;
				char2FBmax = flintFBLevel + flintPsyDefense;
			}
			if (slot2 == 'Helena' && !helenaDead) {
				_root.attachMovie('guardRedFem', 'char2', 3);
				name2 = 'Helena';
				char2Movement = helenaMovement;
				char2Resists = helenaResists;
				char2Dead = false;
				MaxHP2 = helenaHP;
				MaxPsP2 = helenaPsP;
				MaxSteps2 = helenaSpeed;
				char2AttackType1 = helenaAttackType1;
				char2AttackType2 = helenaAttackType2;
				char2AttackType3 = helenaAttackType3;
				char2AttackType4 = helenaAttackType4;
				char2Strength = helenaStrength;
				char2PsyPower = helenaPsyPower;
				char2PsyDefense = helenaPsyDefense;
				char2MBlevel = helenaMBLevel;
				char2MSlevel = helenaMSLevel;
				char2PBlevel = helenaPBLevel;
				char2FBmax = helenaFBLevel + helenaPsyDefense;
			}
			if (slot2 == 'Grotius' && !grotiusDead) {
				_root.attachMovie('spriggatWhiteGood', 'char2', 3);
				name2 = 'Grotius';
				char2Movement = grotiusMovement;
				char2Resists = grotiusResists;
				char2Dead = false;
				MaxHP2 = grotiusHP;
				MaxPsP2 = grotiusPsP;
				MaxSteps2 = grotiusSpeed;
				char2AttackType1 = grotiusAttackType1;
				char2AttackType2 = grotiusAttackType2;
				char2AttackType3 = grotiusAttackType3;
				char2AttackType4 = grotiusAttackType4;
				char2Strength = grotiusStrength;
				char2PsyPower = grotiusPsyPower;
				char2PsyDefense = grotiusPsyDefense;
				char2MBlevel = grotiusMBLevel;
				char2MSlevel = grotiusMSLevel;
				char2PBlevel = grotiusPBLevel;
				char2FBmax = grotiusFBLevel + grotiusPsyDefense;
			}
			if (slot2 == 'Anya' && !anyaDead) {
				_root.attachMovie('anya', 'char2', 3);
				name2 = 'Anya';
				char2Movement = anyaMovement;
				char2Resists = anyaResists;
				char2Dead = false;
				MaxHP2 = anyaHP;
				MaxPsP2 = anyaPsP;
				MaxSteps2 = anyaSpeed;
				char2AttackType1 = anyaAttackType1;
				char2AttackType2 = anyaAttackType2;
				char2AttackType3 = anyaAttackType3;
				char2AttackType4 = anyaAttackType4;
				char2Strength = 1;
				char2PsyPower = anyaPsyPower;
				char2PsyDefense = anyaPsyDefense;
				char2MBlevel = anyaMBLevel;
				char2MSlevel = anyaMSLevel;
				char2PBlevel = anyaPBLevel;
				char2FBmax = anyaFBLevel + anyaPsyDefense;
			}
			if (slot2 == 'Guy' && !guyDead) {
				_root.attachMovie('guy', 'char2', 3);
				name2 = 'Guy';
				char2Movement = guyMovement;
				char2Resists = guyResists;
				char2Dead = false;
				MaxHP2 = guyHP;
				MaxPsP2 = guyPsP;
				MaxSteps2 = guySpeed;
				char2AttackType1 = guyAttackType1;
				char2AttackType2 = guyAttackType2;
				char2AttackType3 = guyAttackType3;
				char2AttackType4 = guyAttackType4;
				char2Strength = 1;
				char2PsyPower = guyPsyPower;
				char2PsyDefense = guyPsyDefense;
				char2MBlevel = guyMBLevel;
				char2MSlevel = guyMSLevel;
				char2PBlevel = guyPBLevel;
				char2FBmax = guyFBLevel + guyPsyDefense;
			}
			if (slot2 == 'Dorgon' && !dorgonDead) {
				_root.attachMovie('XXX', 'char2', 3);
				name2 = 'Dorgon';
				char2Movement = dorgonMovement;
				char2Resists = dorgonResists;
				char2Dead = false;
				MaxHP2 = dorgonHP;
				MaxPsP2 = dorgonPsP;
				MaxSteps2 = dorgonSpeed;
				char2AttackType1 = dorgonAttackType1;
				char2AttackType2 = dorgonAttackType2;
				char2AttackType3 = dorgonAttackType3;
				char2AttackType4 = dorgonAttackType4;
				char2Strength = dorgonStrength;
				char2PsyPower = dorgonPsyPower;
				char2PsyDefense = dorgonPsyDefense;
				char2MBlevel = dorgonMBLevel;
				char2MSlevel = dorgonMSLevel;
				char2PBlevel = dorgonPBLevel;
				char2FBmax = dorgonFBLevel + dorgonPsyDefense;
			}
			if (slot2 == 'Gamblin\' Jack' && !jackDead) {
				_root.attachMovie('guardWhiteCape', 'char2', 3);
				name2 = 'Gamblinâ€™ Jack';
				char2Movement = jackMovement;
				char2Resists = jackResists;
				char2Dead = false;
				MaxHP2 = jackHP;
				MaxPsP2 = jackPsP;
				MaxSteps2 = jackSpeed;
				char2AttackType1 = jackAttackType1;
				char2AttackType2 = jackAttackType2;
				char2AttackType3 = jackAttackType3;
				char2AttackType4 = jackAttackType4;
				char2Strength = jackStrength;
				char2PsyPower = jackPsyPower;
				char2PsyDefense = jackPsyDefense;
				char2MBlevel = jackMBLevel;
				char2MSlevel = jackMSLevel;
				char2PBlevel = jackPBLevel;
				char2FBmax = jackFBLevel + jackPsyDefense;
			}
			if (slot2 == 'Luca' && !lucaDead) {
				_root.attachMovie('XXX', 'char2', 3);
				name2 = 'Luca';
				char2Movement = lucaMovement;
				char2Resists = lucaResists;
				char2Dead = false;
				MaxHP2 = lucaHP;
				MaxPsP2 = lucaPsP;
				MaxSteps2 = lucaSpeed;
				char2AttackType1 = lucaAttackType1;
				char2AttackType2 = lucaAttackType2;
				char2AttackType3 = lucaAttackType3;
				char2AttackType4 = lucaAttackType4;
				char2Strength = lucaStrength;
				char2PsyPower = lucaPsyPower;
				char2PsyDefense = lucaPsyDefense;
				char2MBlevel = lucaMBLevel;
				char2MSlevel = lucaMSLevel;
				char2PBlevel = lucaPBLevel;
				char2FBmax = lucaFBLevel + lucaPsyDefense;
			}
			if (slot2 == 'Magellan' && !magellanDead) {
				_root.attachMovie('XXX', 'char2', 3);
				name2 = 'Magellan';
				char2Movement = magellanMovement;
				char2Resists = magellanResists;
				char2Dead = false;
				MaxHP2 = magellanHP;
				MaxPsP2 = magellanPsP;
				MaxSteps2 = magellanSpeed;
				char2AttackType1 = magellanAttackType1;
				char2AttackType2 = magellanAttackType2;
				char2AttackType3 = magellanAttackType3;
				char2AttackType4 = magellanAttackType4;
				char2Strength = magellanStrength;
				char2PsyPower = magellanPsyPower;
				char2PsyDefense = magellanPsyDefense;
				char2MBlevel = magellanMBLevel;
				char2MSlevel = magellanMSLevel;
				char2PBlevel = magellanPBLevel;
				char2FBmax = magellanFBLevel + magellanPsyDefense;
			}
			if (slot2 == 'Xerxes' && !xerxesDead) {
				_root.attachMovie('XXX', 'char2', 3);
				name2 = 'Xerxes';
				char2Movement = xerxesMovement;
				char2Resists = xerxesResists;
				char2Dead = false;
				MaxHP2 = xerxesHP;
				MaxPsP2 = xerxesPsP;
				MaxSteps2 = xerxesSpeed;
				char2AttackType1 = xerxesAttackType1;
				char2AttackType2 = xerxesAttackType2;
				char2AttackType3 = xerxesAttackType3;
				char2AttackType4 = xerxesAttackType4;
				char2Strength = xerxesStrength;
				char2PsyPower = xerxesPsyPower;
				char2PsyDefense = xerxesPsyDefense;
				char2MBlevel = xerxesMBLevel;
				char2MSlevel = xerxesMSLevel;
				char2PBlevel = xerxesPBLevel;
				char2FBmax = xerxesFBLevel + xerxesPsyDefense;
			}
			if (slot3 == 'Darkling' && !darklingDead) {
				_root.attachMovie('shadowlingRedSmallGood', 'char3', 4);
				name3 = 'Darkling';
				char3Movement = darklingMovement;
				char3Resists = darklingResists;
				char3Dead = false;
				MaxHP3 = darklingHP;
				MaxPsP3 = darklingPsP;
				MaxSteps3 = darklingSpeed;
				char3AttackType1 = darklingAttackType1;
				char3AttackType2 = darklingAttackType2;
				char3AttackType3 = darklingAttackType3;
				char3AttackType4 = darklingAttackType4;
				char3Strength = 1;
				char3PsyPower = darklingPsyPower;
				char3PsyDefense = darklingPsyDefense;
				char3MBlevel = darklingMBLevel;
				char3MSlevel = darklingMSLevel;
				char3PBlevel = darklingPBLevel;
				char3FBmax = darklingFBLevel + darklingPsyDefense;
			}
			if (slot3 == 'Shadowboxer' && !shadowboxerDead) {
				_root.attachMovie('shadowlingRedGood', 'char3', 4);
				name3 = 'Shadowboxer';
				char3Movement = shadowboxerMovement;
				char3Resists = shadowboxerResists;
				char3Dead = false;
				MaxHP3 = shadowboxerHP;
				MaxPsP3 = shadowboxerPsP;
				MaxSteps3 = shadowboxerSpeed;
				char3AttackType1 = shadowboxerAttackType1;
				char3AttackType2 = shadowboxerAttackType2;
				char3AttackType3 = shadowboxerAttackType3;
				char3AttackType4 = shadowboxerAttackType4;
				char3Strength = 1;
				char3PsyPower = shadowboxerPsyPower;
				char3PsyDefense = shadowboxerPsyDefense;
				char3MBlevel = shadowboxerMBLevel;
				char3MSlevel = shadowboxerMSLevel;
				char3PBlevel = shadowboxerPBLevel;
				char3FBlevel = shadowboxerFBLevel;
				char3FBmax = shadowboxerFBLevel + shadowboxerPsyDefense;
			}
			if (slot3 == 'Festus' && !festusDead) {
				_root.attachMovie('shadowlingBlueGood', 'char3', 4);
				name3 = 'Festus';
				char3Movement = festusMovement;
				char3Resists = festusResists;
				char3Dead = false;
				MaxHP3 = festusHP;
				MaxPsP3 = festusPsP;
				MaxSteps3 = festusSpeed;
				char3AttackType1 = festusAttackType1;
				char3AttackType2 = festusAttackType2;
				char3AttackType3 = festusAttackType3;
				char3AttackType4 = festusAttackType4;
				char3Strength = 1;
				char3PsyPower = festusPsyPower;
				char3PsyDefense = festusPsyDefense;
				char3MBlevel = festusMBLevel;
				char3MSlevel = festusMSLevel;
				char3PBlevel = festusPBLevel;
				char3FBmax = festusFBLevel + festusPsyDefense;
			}
			if (slot3 == 'Niven' && !nivenDead) {
				_root.attachMovie('shadowlingKniferGood', 'char3', 4);
				name3 = 'Niven';
				char3Movement = nivenMovement;
				char3Resists = nivenResists;
				char3Dead = false;
				MaxHP3 = nivenHP;
				MaxPsP3 = nivenPsP;
				MaxSteps3 = nivenSpeed;
				char3AttackType1 = nivenAttackType1;
				char3AttackType2 = nivenAttackType2;
				char3AttackType3 = nivenAttackType3;
				char3AttackType4 = nivenAttackType4;
				char3Strength = nivenStrength;
				char3PsyPower = nivenPsyPower;
				char3PsyDefense = nivenPsyDefense;
				char3MBlevel = nivenMBLevel;
				char3MSlevel = nivenMSLevel;
				char3PBlevel = nivenPBLevel;
				char3FBmax = nivenFBLevel + nivenPsyDefense;
			}
			if (slot3 == 'Flint' && !flintDead) {
				_root.attachMovie('stoneGolemGood', 'char3', 4);
				name3 = 'Flint';
				char3Movement = flintMovement;
				char3Resists = flintResists;
				char3Dead = false;
				MaxHP3 = flintHP;
				MaxPsP3 = flintPsP;
				MaxSteps3 = flintSpeed;
				char3AttackType1 = flintAttackType1;
				char3AttackType2 = flintAttackType2;
				char3AttackType3 = flintAttackType3;
				char3AttackType4 = flintAttackType4;
				char3Strength = flintStrength;
				char3PsyPower = flintPsyPower;
				char3PsyDefense = flintPsyDefense;
				char3MBlevel = flintMBLevel;
				char3MSlevel = flintMSLevel;
				char3PBlevel = flintPBLevel;
				char3FBmax = flintFBLevel + flintPsyDefense;
			}
			if (slot3 == 'Helena' && !helenaDead) {
				_root.attachMovie('guardRedFem', 'char3', 4);
				name3 = 'Helena';
				char3Movement = helenaMovement;
				char3Resists = helenaResists;
				char3Dead = false;
				MaxHP3 = helenaHP;
				MaxPsP3 = helenaPsP;
				MaxSteps3 = helenaSpeed;
				char3AttackType1 = helenaAttackType1;
				char3AttackType2 = helenaAttackType2;
				char3AttackType3 = helenaAttackType3;
				char3AttackType4 = helenaAttackType4;
				char3Strength = helenaStrength;
				char3PsyPower = helenaPsyPower;
				char3PsyDefense = helenaPsyDefense;
				char3MBlevel = helenaMBLevel;
				char3MSlevel = helenaMSLevel;
				char3PBlevel = helenaPBLevel;
				char3FBmax = helenaFBLevel + helenaPsyDefense;
			}
			if (slot3 == 'Grotius' && !grotiusDead) {
				_root.attachMovie('spriggatWhiteGood', 'char3', 4);
				name3 = 'Grotius';
				char3Movement = grotiusMovement;
				char3Resists = grotiusResists;
				char3Dead = false;
				MaxHP3 = grotiusHP;
				MaxPsP3 = grotiusPsP;
				MaxSteps3 = grotiusSpeed;
				char3AttackType1 = grotiusAttackType1;
				char3AttackType2 = grotiusAttackType2;
				char3AttackType3 = grotiusAttackType3;
				char3AttackType4 = grotiusAttackType4;
				char3Strength = grotiusStrength;
				char3PsyPower = grotiusPsyPower;
				char3PsyDefense = grotiusPsyDefense;
				char3MBlevel = grotiusMBLevel;
				char3MSlevel = grotiusMSLevel;
				char3PBlevel = grotiusPBLevel;
				char3FBmax = grotiusFBLevel + grotiusPsyDefense;
			}
			if (slot3 == 'Anya' && !anyaDead) {
				_root.attachMovie('anya', 'char3', 4);
				name3 = 'Anya';
				char3Movement = anyaMovement;
				char3Resists = anyaResists;
				char3Dead = false;
				MaxHP3 = anyaHP;
				MaxPsP3 = anyaPsP;
				MaxSteps3 = anyaSpeed;
				char3AttackType1 = anyaAttackType1;
				char3AttackType2 = anyaAttackType2;
				char3AttackType3 = anyaAttackType3;
				char3AttackType4 = anyaAttackType4;
				char3Strength = 1;
				char3PsyPower = anyaPsyPower;
				char3PsyDefense = anyaPsyDefense;
				char3MBlevel = anyaMBLevel;
				char3MSlevel = anyaMSLevel;
				char3PBlevel = anyaPBLevel;
				char3FBmax = anyaFBLevel + anyaPsyDefense;
			}
			if (slot3 == 'Guy' && !guyDead) {
				_root.attachMovie('guy', 'char3', 4);
				name3 = 'Guy';
				char3Movement = guyMovement;
				char3Resists = guyResists;
				char3Dead = false;
				MaxHP3 = guyHP;
				MaxPsP3 = guyPsP;
				MaxSteps3 = guySpeed;
				char3AttackType1 = guyAttackType1;
				char3AttackType2 = guyAttackType2;
				char3AttackType3 = guyAttackType3;
				char3AttackType4 = guyAttackType4;
				char3Strength = 1;
				char3PsyPower = guyPsyPower;
				char3PsyDefense = guyPsyDefense;
				char3MBlevel = guyMBLevel;
				char3MSlevel = guyMSLevel;
				char3PBlevel = guyPBLevel;
				char3FBmax = guyFBLevel + guyPsyDefense;
			}
			if (slot3 == 'Dorgon' && !dorgonDead) {
				_root.attachMovie('XXX', 'char3', 4);
				name3 = 'Dorgon';
				char3Movement = dorgonMovement;
				char3Resists = dorgonResists;
				char3Dead = false;
				MaxHP3 = dorgonHP;
				MaxPsP3 = dorgonPsP;
				MaxSteps3 = dorgonSpeed;
				char3AttackType1 = dorgonAttackType1;
				char3AttackType2 = dorgonAttackType2;
				char3AttackType3 = dorgonAttackType3;
				char3AttackType4 = dorgonAttackType4;
				char3Strength = dorgonStrength;
				char3PsyPower = dorgonPsyPower;
				char3PsyDefense = dorgonPsyDefense;
				char3MBlevel = dorgonMBLevel;
				char3MSlevel = dorgonMSLevel;
				char3PBlevel = dorgonPBLevel;
				char3FBmax = dorgonFBLevel + dorgonPsyDefense;
			}
			if (slot3 == 'Gamblin\' Jack' && !jackDead) {
				_root.attachMovie('guardWhiteCape', 'char3', 4);
				name3 = 'Gamblinâ€™ Jack';
				char3Movement = jackMovement;
				char3Resists = jackResists;
				char3Dead = false;
				MaxHP3 = jackHP;
				MaxPsP3 = jackPsP;
				MaxSteps3 = jackSpeed;
				char3AttackType1 = jackAttackType1;
				char3AttackType2 = jackAttackType2;
				char3AttackType3 = jackAttackType3;
				char3AttackType4 = jackAttackType4;
				char3Strength = jackStrength;
				char3PsyPower = jackPsyPower;
				char3PsyDefense = jackPsyDefense;
				char3MBlevel = jackMBLevel;
				char3MSlevel = jackMSLevel;
				char3PBlevel = jackPBLevel;
				char3FBmax = jackFBLevel + jackPsyDefense;
			}
			if (slot3 == 'Luca' && !lucaDead) {
				_root.attachMovie('XXX', 'char3', 4);
				name3 = 'Luca';
				char3Movement = lucaMovement;
				char3Resists = lucaResists;
				char3Dead = false;
				MaxHP3 = lucaHP;
				MaxPsP3 = lucaPsP;
				MaxSteps3 = lucaSpeed;
				char3AttackType1 = lucaAttackType1;
				char3AttackType2 = lucaAttackType2;
				char3AttackType3 = lucaAttackType3;
				char3AttackType4 = lucaAttackType4;
				char3Strength = lucaStrength;
				char3PsyPower = lucaPsyPower;
				char3PsyDefense = lucaPsyDefense;
				char3MBlevel = lucaMBLevel;
				char3MSlevel = lucaMSLevel;
				char3PBlevel = lucaPBLevel;
				char3FBmax = lucaFBLevel + lucaPsyDefense;
			}
			if (slot3 == 'Magellan' && !magellanDead) {
				_root.attachMovie('XXX', 'char3', 4);
				name3 = 'Magellan';
				char3Movement = magellanMovement;
				char3Resists = magellanResists;
				char3Dead = false;
				MaxHP3 = magellanHP;
				MaxPsP3 = magellanPsP;
				MaxSteps3 = magellanSpeed;
				char3AttackType1 = magellanAttackType1;
				char3AttackType2 = magellanAttackType2;
				char3AttackType3 = magellanAttackType3;
				char3AttackType4 = magellanAttackType4;
				char3Strength = magellanStrength;
				char3PsyPower = magellanPsyPower;
				char3PsyDefense = magellanPsyDefense;
				char3MBlevel = magellanMBLevel;
				char3MSlevel = magellanMSLevel;
				char3PBlevel = magellanPBLevel;
				char3FBmax = magellanFBLevel + magellanPsyDefense;
			}
			if (slot3 == 'Xerxes' && !xerxesDead) {
				_root.attachMovie('XXX', 'char3', 4);
				name3 = 'Xerxes';
				char3Movement = xerxesMovement;
				char3Resists = xerxesResists;
				char3Dead = false;
				MaxHP3 = xerxesHP;
				MaxPsP3 = xerxesPsP;
				MaxSteps3 = xerxesSpeed;
				char3AttackType1 = xerxesAttackType1;
				char3AttackType2 = xerxesAttackType2;
				char3AttackType3 = xerxesAttackType3;
				char3AttackType4 = xerxesAttackType4;
				char3Strength = xerxesStrength;
				char3PsyPower = xerxesPsyPower;
				char3PsyDefense = xerxesPsyDefense;
				char3MBlevel = xerxesMBLevel;
				char3MSlevel = xerxesMSLevel;
				char3PBlevel = xerxesPBLevel;
				char3FBmax = xerxesFBLevel + xerxesPsyDefense;
			}
			_root.attachMovie('mainChar', 'char4', 5);
			name4 = mainCharName;
			char4Dead = false;
			char4Movement = mainCharMovement;
			char4Resists = mainCharResists;
			MaxHP4 = mainCharHP;
			MaxPsP4 = mainCharPsP;
			MaxSteps4 = mainCharSpeed;
			char4AttackType1 = mainCharAttackType1;
			char4AttackType2 = mainCharAttackType2;
			char4AttackType3 = mainCharAttackType3;
			char4AttackType4 = mainCharAttackType4;
			char4Strength = 1;
			char4PsyPower = mainCharPsyPower;
			char4PsyDefense = mainCharPsyDefense;
			char4MBlevel = mainCharMBLevel;
			char4MSlevel = mainCharMSLevel;
			char4PBlevel = mainCharPBLevel;
			char4FBmax = mainCharFBLevel + mainCharPsyDefense;
			if (slot5 == 'Darkling' && !darklingDead) {
				_root.attachMovie('shadowlingRedSmallGood', 'char5', 6);
				name5 = 'Darkling';
				char5Movement = darklingMovement;
				char5Resists = darklingResists;
				char5Dead = false;
				MaxHP5 = darklingHP;
				MaxPsP5 = darklingPsP;
				MaxSteps5 = darklingSpeed;
				char5AttackType1 = darklingAttackType1;
				char5AttackType2 = darklingAttackType2;
				char5AttackType3 = darklingAttackType3;
				char5AttackType4 = darklingAttackType4;
				char5Strength = 1;
				char5PsyPower = darklingPsyPower;
				char5PsyDefense = darklingPsyDefense;
				char5MBlevel = darklingMBLevel;
				char5MSlevel = darklingMSLevel;
				char5PBlevel = darklingPBLevel;
				char5FBmax = darklingFBLevel + darklingPsyDefense;
			}
			if (slot5 == 'Shadowboxer' && !shadowboxerDead) {
				_root.attachMovie('shadowlingRedGood', 'char5', 6);
				name5 = 'Shadowboxer';
				char5Movement = shadowboxerMovement;
				char5Resists = shadowboxerResists;
				char5Dead = false;
				MaxHP5 = shadowboxerHP;
				MaxPsP5 = shadowboxerPsP;
				MaxSteps5 = shadowboxerSpeed;
				char5AttackType1 = shadowboxerAttackType1;
				char5AttackType2 = shadowboxerAttackType2;
				char5AttackType3 = shadowboxerAttackType3;
				char5AttackType4 = shadowboxerAttackType4;
				char5Strength = 1;
				char5PsyPower = shadowboxerPsyPower;
				char5PsyDefense = shadowboxerPsyDefense;
				char5MBlevel = shadowboxerMBLevel;
				char5MSlevel = shadowboxerMSLevel;
				char5PBlevel = shadowboxerPBLevel;
				char5FBlevel = shadowboxerFBLevel;
				char5FBmax = shadowboxerFBLevel + shadowboxerPsyDefense;
			}
			if (slot5 == 'Festus' && !festusDead) {
				_root.attachMovie('shadowlingBlueGood', 'char5', 6);
				name5 = 'Festus';
				char5Movement = festusMovement;
				char5Resists = festusResists;
				char5Dead = false;
				MaxHP5 = festusHP;
				MaxPsP5 = festusPsP;
				MaxSteps5 = festusSpeed;
				char5AttackType1 = festusAttackType1;
				char5AttackType2 = festusAttackType2;
				char5AttackType3 = festusAttackType3;
				char5AttackType4 = festusAttackType4;
				char5Strength = 1;
				char5PsyPower = festusPsyPower;
				char5PsyDefense = festusPsyDefense;
				char5MBlevel = festusMBLevel;
				char5MSlevel = festusMSLevel;
				char5PBlevel = festusPBLevel;
				char5FBmax = festusFBLevel + festusPsyDefense;
			}
			if (slot5 == 'Niven' && !nivenDead) {
				_root.attachMovie('shadowlingKniferGood', 'char5', 6);
				name5 = 'Niven';
				char5Movement = nivenMovement;
				char5Resists = nivenResists;
				char5Dead = false;
				MaxHP5 = nivenHP;
				MaxPsP5 = nivenPsP;
				MaxSteps5 = nivenSpeed;
				char5AttackType1 = nivenAttackType1;
				char5AttackType2 = nivenAttackType2;
				char5AttackType3 = nivenAttackType3;
				char5AttackType4 = nivenAttackType4;
				char5Strength = nivenStrength;
				char5PsyPower = nivenPsyPower;
				char5PsyDefense = nivenPsyDefense;
				char5MBlevel = nivenMBLevel;
				char5MSlevel = nivenMSLevel;
				char5PBlevel = nivenPBLevel;
				char5FBmax = nivenFBLevel + nivenPsyDefense;
			}
			if (slot5 == 'Flint' && !flintDead) {
				_root.attachMovie('stoneGolemGood', 'char5', 6);
				name5 = 'Flint';
				char5Movement = flintMovement;
				char5Resists = flintResists;
				char5Dead = false;
				MaxHP5 = flintHP;
				MaxPsP5 = flintPsP;
				MaxSteps5 = flintSpeed;
				char5AttackType1 = flintAttackType1;
				char5AttackType2 = flintAttackType2;
				char5AttackType3 = flintAttackType3;
				char5AttackType4 = flintAttackType4;
				char5Strength = flintStrength;
				char5PsyPower = flintPsyPower;
				char5PsyDefense = flintPsyDefense;
				char5MBlevel = flintMBLevel;
				char5MSlevel = flintMSLevel;
				char5PBlevel = flintPBLevel;
				char5FBmax = flintFBLevel + flintPsyDefense;
			}
			if (slot5 == 'Helena' && !helenaDead) {
				_root.attachMovie('guardRedFem', 'char5', 6);
				name5 = 'Helena';
				char5Movement = helenaMovement;
				char5Resists = helenaResists;
				char5Dead = false;
				MaxHP5 = helenaHP;
				MaxPsP5 = helenaPsP;
				MaxSteps5 = helenaSpeed;
				char5AttackType1 = helenaAttackType1;
				char5AttackType2 = helenaAttackType2;
				char5AttackType3 = helenaAttackType3;
				char5AttackType4 = helenaAttackType4;
				char5Strength = helenaStrength;
				char5PsyPower = helenaPsyPower;
				char5PsyDefense = helenaPsyDefense;
				char5MBlevel = helenaMBLevel;
				char5MSlevel = helenaMSLevel;
				char5PBlevel = helenaPBLevel;
				char5FBmax = helenaFBLevel + helenaPsyDefense;
			}
			if (slot5 == 'Grotius' && !grotiusDead) {
				_root.attachMovie('spriggatWhiteGood', 'char5', 6);
				name5 = 'Grotius';
				char5Movement = grotiusMovement;
				char5Resists = grotiusResists;
				char5Dead = false;
				MaxHP5 = grotiusHP;
				MaxPsP5 = grotiusPsP;
				MaxSteps5 = grotiusSpeed;
				char5AttackType1 = grotiusAttackType1;
				char5AttackType2 = grotiusAttackType2;
				char5AttackType3 = grotiusAttackType3;
				char5AttackType4 = grotiusAttackType4;
				char5Strength = grotiusStrength;
				char5PsyPower = grotiusPsyPower;
				char5PsyDefense = grotiusPsyDefense;
				char5MBlevel = grotiusMBLevel;
				char5MSlevel = grotiusMSLevel;
				char5PBlevel = grotiusPBLevel;
				char5FBmax = grotiusFBLevel + grotiusPsyDefense;
			}
			if (slot5 == 'Anya' && !anyaDead) {
				_root.attachMovie('anya', 'char5', 6);
				name5 = 'Anya';
				char5Movement = anyaMovement;
				char5Resists = anyaResists;
				char5Dead = false;
				MaxHP5 = anyaHP;
				MaxPsP5 = anyaPsP;
				MaxSteps5 = anyaSpeed;
				char5AttackType1 = anyaAttackType1;
				char5AttackType2 = anyaAttackType2;
				char5AttackType3 = anyaAttackType3;
				char5AttackType4 = anyaAttackType4;
				char5Strength = 1;
				char5PsyPower = anyaPsyPower;
				char5PsyDefense = anyaPsyDefense;
				char5MBlevel = anyaMBLevel;
				char5MSlevel = anyaMSLevel;
				char5PBlevel = anyaPBLevel;
				char5FBmax = anyaFBLevel + anyaPsyDefense;
			}
			if (slot5 == 'Guy' && !guyDead) {
				_root.attachMovie('guy', 'char5', 6);
				name5 = 'Guy';
				char5Movement = guyMovement;
				char5Resists = guyResists;
				char5Dead = false;
				MaxHP5 = guyHP;
				MaxPsP5 = guyPsP;
				MaxSteps5 = guySpeed;
				char5AttackType1 = guyAttackType1;
				char5AttackType2 = guyAttackType2;
				char5AttackType3 = guyAttackType3;
				char5AttackType4 = guyAttackType4;
				char5Strength = 1;
				char5PsyPower = guyPsyPower;
				char5PsyDefense = guyPsyDefense;
				char5MBlevel = guyMBLevel;
				char5MSlevel = guyMSLevel;
				char5PBlevel = guyPBLevel;
				char5FBmax = guyFBLevel + guyPsyDefense;
			}
			if (slot5 == 'Dorgon' && !dorgonDead) {
				_root.attachMovie('XXX', 'char5', 6);
				name5 = 'Dorgon';
				char5Movement = dorgonMovement;
				char5Resists = guyResists;
				char5Dead = false;
				MaxHP5 = dorgonHP;
				MaxPsP5 = dorgonPsP;
				MaxSteps5 = dorgonSpeed;
				char5AttackType1 = dorgonAttackType1;
				char5AttackType2 = dorgonAttackType2;
				char5AttackType3 = dorgonAttackType3;
				char5AttackType4 = dorgonAttackType4;
				char5Strength = dorgonStrength;
				char5PsyPower = dorgonPsyPower;
				char5PsyDefense = dorgonPsyDefense;
				char5MBlevel = dorgonMBLevel;
				char5MSlevel = dorgonMSLevel;
				char5PBlevel = dorgonPBLevel;
				char5FBmax = dorgonFBLevel + dorgonPsyDefense;
			}
			if (slot5 == 'Gamblin\' Jack' && !jackDead) {
				_root.attachMovie('guardWhiteCape', 'char5', 6);
				name5 = 'Gamblinâ€™ Jack';
				char5Movement = jackMovement;
				char5Resists = jackResists;
				char5Dead = false;
				MaxHP5 = jackHP;
				MaxPsP5 = jackPsP;
				MaxSteps5 = jackSpeed;
				char5AttackType1 = jackAttackType1;
				char5AttackType2 = jackAttackType2;
				char5AttackType3 = jackAttackType3;
				char5AttackType4 = jackAttackType4;
				char5Strength = jackStrength;
				char5PsyPower = jackPsyPower;
				char5PsyDefense = jackPsyDefense;
				char5MBlevel = jackMBLevel;
				char5MSlevel = jackMSLevel;
				char5PBlevel = jackPBLevel;
				char5FBmax = jackFBLevel + jackPsyDefense;
			}
			if (slot5 == 'Luca' && !lucaDead) {
				_root.attachMovie('XXX', 'char5', 6);
				name5 = 'Luca';
				char5Movement = lucaMovement;
				char5Resists = lucaResists;
				char5Dead = false;
				MaxHP5 = lucaHP;
				MaxPsP5 = lucaPsP;
				MaxSteps5 = lucaSpeed;
				char5AttackType1 = lucaAttackType1;
				char5AttackType2 = lucaAttackType2;
				char5AttackType3 = lucaAttackType3;
				char5AttackType4 = lucaAttackType4;
				char5Strength = lucaStrength;
				char5PsyPower = lucaPsyPower;
				char5PsyDefense = lucaPsyDefense;
				char5MBlevel = lucaMBLevel;
				char5MSlevel = lucaMSLevel;
				char5PBlevel = lucaPBLevel;
				char5FBmax = lucaFBLevel + lucaPsyDefense;
			}
			if (slot5 == 'Magellan' && !magellanDead) {
				_root.attachMovie('XXX', 'char5', 6);
				name5 = 'Magellan';
				char5Movement = magellanMovement;
				char5Resists = magellanResists;
				char5Dead = false;
				MaxHP5 = magellanHP;
				MaxPsP5 = magellanPsP;
				MaxSteps5 = magellanSpeed;
				char5AttackType1 = magellanAttackType1;
				char5AttackType2 = magellanAttackType2;
				char5AttackType3 = magellanAttackType3;
				char5AttackType4 = magellanAttackType4;
				char5Strength = magellanStrength;
				char5PsyPower = magellanPsyPower;
				char5PsyDefense = magellanPsyDefense;
				char5MBlevel = magellanMBLevel;
				char5MSlevel = magellanMSLevel;
				char5PBlevel = magellanPBLevel;
				char5FBmax = magellanFBLevel + magellanPsyDefense;
			}
			if (slot5 == 'Xerxes' && !xerxesDead) {
				_root.attachMovie('XXX', 'char5', 6);
				name5 = 'Xerxes';
				char5Movement = xerxesMovement;
				char5Resists = xerxesResists;
				char5Dead = false;
				MaxHP5 = xerxesHP;
				MaxPsP5 = xerxesPsP;
				MaxSteps5 = xerxesSpeed;
				char5AttackType1 = xerxesAttackType1;
				char5AttackType2 = xerxesAttackType2;
				char5AttackType3 = xerxesAttackType3;
				char5AttackType4 = xerxesAttackType4;
				char5Strength = xerxesStrength;
				char5PsyPower = xerxesPsyPower;
				char5PsyDefense = xerxesPsyDefense;
				char5MBlevel = xerxesMBLevel;
				char5MSlevel = xerxesMSLevel;
				char5PBlevel = xerxesPBLevel;
				char5FBmax = xerxesFBLevel + xerxesPsyDefense;
			}
			if (slot6 == 'Darkling' && !darklingDead) {
				_root.attachMovie('shadowlingRedSmallGood', 'char6', 7);
				name6 = 'Darkling';
				char6Movement = darklingMovement;
				char6Resists = darklingResists;
				char6Dead = false;
				MaxHP6 = darklingHP;
				MaxPsP6 = darklingPsP;
				MaxSteps6 = darklingSpeed;
				char6AttackType1 = darklingAttackType1;
				char6AttackType2 = darklingAttackType2;
				char6AttackType3 = darklingAttackType3;
				char6AttackType4 = darklingAttackType4;
				char6Strength = 1;
				char6PsyPower = darklingPsyPower;
				char6PsyDefense = darklingPsyDefense;
				char6MBlevel = darklingMBLevel;
				char6MSlevel = darklingMSLevel;
				char6PBlevel = darklingPBLevel;
				char6FBmax = darklingFBLevel + darklingPsyDefense;
			}
			if (slot6 == 'Shadowboxer' && !shadowboxerDead) {
				_root.attachMovie('shadowlingRedGood', 'char6', 7);
				name6 = 'Shadowboxer';
				char6Movement = shadowboxerMovement;
				char6Resists = shadowboxerResists;
				char6Dead = false;
				MaxHP6 = shadowboxerHP;
				MaxPsP6 = shadowboxerPsP;
				MaxSteps6 = shadowboxerSpeed;
				char6AttackType1 = shadowboxerAttackType1;
				char6AttackType2 = shadowboxerAttackType2;
				char6AttackType3 = shadowboxerAttackType3;
				char6AttackType4 = shadowboxerAttackType4;
				char6Strength = 1;
				char6PsyPower = shadowboxerPsyPower;
				char6PsyDefense = shadowboxerPsyDefense;
				char6MBlevel = shadowboxerMBLevel;
				char6MSlevel = shadowboxerMSLevel;
				char6PBlevel = shadowboxerPBLevel;
				char6FBlevel = shadowboxerFBLevel;
				char6FBmax = shadowboxerFBLevel + shadowboxerPsyDefense;
			}
			if (slot6 == 'Festus' && !festusDead) {
				_root.attachMovie('shadowlingBlueGood', 'char6', 7);
				name6 = 'Festus';
				char6Movement = festusMovement;
				char6Resists = festusResists;
				char6Dead = false;
				MaxHP6 = festusHP;
				MaxPsP6 = festusPsP;
				MaxSteps6 = festusSpeed;
				char6AttackType1 = festusAttackType1;
				char6AttackType2 = festusAttackType2;
				char6AttackType3 = festusAttackType3;
				char6AttackType4 = festusAttackType4;
				char6Strength = 1;
				char6PsyPower = festusPsyPower;
				char6PsyDefense = festusPsyDefense;
				char6MBlevel = festusMBLevel;
				char6MSlevel = festusMSLevel;
				char6PBlevel = festusPBLevel;
				char6FBmax = festusFBLevel + festusPsyDefense;
			}
			if (slot6 == 'Niven' && !nivenDead) {
				_root.attachMovie('shadowlingKniferGood', 'char6', 7);
				name6 = 'Niven';
				char6Movement = nivenMovement;
				char6Resists = nivenResists;
				char6Dead = false;
				MaxHP6 = nivenHP;
				MaxPsP6 = nivenPsP;
				MaxSteps6 = nivenSpeed;
				char6AttackType1 = nivenAttackType1;
				char6AttackType2 = nivenAttackType2;
				char6AttackType3 = nivenAttackType3;
				char6AttackType4 = nivenAttackType4;
				char6Strength = nivenStrength;
				char6PsyPower = nivenPsyPower;
				char6PsyDefense = nivenPsyDefense;
				char6MBlevel = nivenMBLevel;
				char6MSlevel = nivenMSLevel;
				char6PBlevel = nivenPBLevel;
				char6FBmax = nivenFBLevel + nivenPsyDefense;
			}
			if (slot6 == 'Flint' && !flintDead) {
				_root.attachMovie('stoneGolemGood', 'char6', 7);
				name6 = 'Flint';
				char6Movement = flintMovement;
				char6Resists = flintResists;
				char6Dead = false;
				MaxHP6 = flintHP;
				MaxPsP6 = flintPsP;
				MaxSteps6 = flintSpeed;
				char6AttackType1 = flintAttackType1;
				char6AttackType2 = flintAttackType2;
				char6AttackType3 = flintAttackType3;
				char6AttackType4 = flintAttackType4;
				char6Strength = flintStrength;
				char6PsyPower = flintPsyPower;
				char6PsyDefense = flintPsyDefense;
				char6MBlevel = flintMBLevel;
				char6MSlevel = flintMSLevel;
				char6PBlevel = flintPBLevel;
				char6FBmax = flintFBLevel + flintPsyDefense;
			}
			if (slot6 == 'Helena' && !helenaDead) {
				_root.attachMovie('guardRedFem', 'char6', 7);
				name6 = 'Helena';
				char6Movement = helenaMovement;
				char6Resists = helenaResists;
				char6Dead = false;
				MaxHP6 = helenaHP;
				MaxPsP6 = helenaPsP;
				MaxSteps6 = helenaSpeed;
				char6AttackType1 = helenaAttackType1;
				char6AttackType2 = helenaAttackType2;
				char6AttackType3 = helenaAttackType3;
				char6AttackType4 = helenaAttackType4;
				char6Strength = helenaStrength;
				char6PsyPower = helenaPsyPower;
				char6PsyDefense = helenaPsyDefense;
				char6MBlevel = helenaMBLevel;
				char6MSlevel = helenaMSLevel;
				char6PBlevel = helenaPBLevel;
				char6FBmax = helenaFBLevel + helenaPsyDefense;
			}
			if (slot6 == 'Grotius' && !grotiusDead) {
				_root.attachMovie('spriggatWhiteGood', 'char6', 7);
				name6 = 'Grotius';
				char6Movement = grotiusMovement;
				char6Resists = grotiusResists;
				char6Dead = false;
				MaxHP6 = grotiusHP;
				MaxPsP6 = grotiusPsP;
				MaxSteps6 = grotiusSpeed;
				char6AttackType1 = grotiusAttackType1;
				char6AttackType2 = grotiusAttackType2;
				char6AttackType3 = grotiusAttackType3;
				char6AttackType4 = grotiusAttackType4;
				char6Strength = grotiusStrength;
				char6PsyPower = grotiusPsyPower;
				char6PsyDefense = grotiusPsyDefense;
				char6MBlevel = grotiusMBLevel;
				char6MSlevel = grotiusMSLevel;
				char6PBlevel = grotiusPBLevel;
				char6FBmax = grotiusFBLevel + grotiusPsyDefense;
			}
			if (slot6 == 'Anya' && !anyaDead) {
				_root.attachMovie('anya', 'char6', 7);
				name6 = 'Anya';
				char6Movement = anyaMovement;
				char6Resists = anyaResists;
				char6Dead = false;
				MaxHP6 = anyaHP;
				MaxPsP6 = anyaPsP;
				MaxSteps6 = anyaSpeed;
				char6AttackType1 = anyaAttackType1;
				char6AttackType2 = anyaAttackType2;
				char6AttackType3 = anyaAttackType3;
				char6AttackType4 = anyaAttackType4;
				char6Strength = 1;
				char6PsyPower = anyaPsyPower;
				char6PsyDefense = anyaPsyDefense;
				char6MBlevel = anyaMBLevel;
				char6MSlevel = anyaMSLevel;
				char6PBlevel = anyaPBLevel;
				char6FBmax = anyaFBLevel + anyaPsyDefense;
			}
			if (slot6 == 'Guy' && !guyDead) {
				_root.attachMovie('guy', 'char6', 7);
				name6 = 'Guy';
				char6Movement = guyMovement;
				char6Resists = guyResists;
				char6Dead = false;
				MaxHP6 = guyHP;
				MaxPsP6 = guyPsP;
				MaxSteps6 = guySpeed;
				char6AttackType1 = guyAttackType1;
				char6AttackType2 = guyAttackType2;
				char6AttackType3 = guyAttackType3;
				char6AttackType4 = guyAttackType4;
				char6Strength = 1;
				char6PsyPower = guyPsyPower;
				char6PsyDefense = guyPsyDefense;
				char6MBlevel = guyMBLevel;
				char6MSlevel = guyMSLevel;
				char6PBlevel = guyPBLevel;
				char6FBmax = guyFBLevel + guyPsyDefense;
			}
			if (slot6 == 'Dorgon' && !dorgonDead) {
				_root.attachMovie('XXX', 'char6', 7);
				name6 = 'Dorgon';
				char6Movement = dorgonMovement;
				char6Resists = dorgonResists;
				char6Dead = false;
				MaxHP6 = dorgonHP;
				MaxPsP6 = dorgonPsP;
				MaxSteps6 = dorgonSpeed;
				char6AttackType1 = dorgonAttackType1;
				char6AttackType2 = dorgonAttackType2;
				char6AttackType3 = dorgonAttackType3;
				char6AttackType4 = dorgonAttackType4;
				char6Strength = dorgonStrength;
				char6PsyPower = dorgonPsyPower;
				char6PsyDefense = dorgonPsyDefense;
				char6MBlevel = dorgonMBLevel;
				char6MSlevel = dorgonMSLevel;
				char6PBlevel = dorgonPBLevel;
				char6FBmax = dorgonFBLevel + dorgonPsyDefense;
			}
			if (slot6 == 'Gamblin\' Jack' && !jackDead) {
				_root.attachMovie('guardWhiteCape', 'char6', 7);
				name6 = 'Gamblinâ€™ Jack';
				char6Movement = jackMovement;
				char6Resists = jackResists;
				char6Dead = false;
				MaxHP6 = jackHP;
				MaxPsP6 = jackPsP;
				MaxSteps6 = jackSpeed;
				char6AttackType1 = jackAttackType1;
				char6AttackType2 = jackAttackType2;
				char6AttackType3 = jackAttackType3;
				char6AttackType4 = jackAttackType4;
				char6Strength = jackStrength;
				char6PsyPower = jackPsyPower;
				char6PsyDefense = jackPsyDefense;
				char6MBlevel = jackMBLevel;
				char6MSlevel = jackMSLevel;
				char6PBlevel = jackPBLevel;
				char6FBmax = jackFBLevel + jackPsyDefense;
			}
			if (slot6 == 'Luca' && !lucaDead) {
				_root.attachMovie('XXX', 'char6', 7);
				name6 = 'Luca';
				char6Movement = lucaMovement;
				char6Resists = lucaResists;
				char6Dead = false;
				MaxHP6 = lucaHP;
				MaxPsP6 = lucaPsP;
				MaxSteps6 = lucaSpeed;
				char6AttackType1 = lucaAttackType1;
				char6AttackType2 = lucaAttackType2;
				char6AttackType3 = lucaAttackType3;
				char6AttackType4 = lucaAttackType4;
				char6Strength = lucaStrength;
				char6PsyPower = lucaPsyPower;
				char6PsyDefense = lucaPsyDefense;
				char6MBlevel = lucaMBLevel;
				char6MSlevel = lucaMSLevel;
				char6PBlevel = lucaPBLevel;
				char6FBmax = lucaFBLevel + lucaPsyDefense;
			}
			if (slot6 == 'Magellan' && !magellanDead) {
				_root.attachMovie('XXX', 'char6', 7);
				name6 = 'Magellan';
				char6Movement = magellanMovement;
				char6Resists = magellanResists;
				char6Dead = false;
				MaxHP6 = magellanHP;
				MaxPsP6 = magellanPsP;
				MaxSteps6 = magellanSpeed;
				char6AttackType1 = magellanAttackType1;
				char6AttackType2 = magellanAttackType2;
				char6AttackType3 = magellanAttackType3;
				char6AttackType4 = magellanAttackType4;
				char6Strength = magellanStrength;
				char6PsyPower = magellanPsyPower;
				char6PsyDefense = magellanPsyDefense;
				char6MBlevel = magellanMBLevel;
				char6MSlevel = magellanMSLevel;
				char6PBlevel = magellanPBLevel;
				char6FBmax = magellanFBLevel + magellanPsyDefense;
			}
			if (slot6 == 'Xerxes' && !xerxesDead) {
				_root.attachMovie('XXX', 'char6', 7);
				name6 = 'Xerxes';
				char6Movement = xerxesMovement;
				char6Resists = xerxesResists;
				char6Dead = false;
				MaxHP6 = xerxesHP;
				MaxPsP6 = xerxesPsP;
				MaxSteps6 = xerxesSpeed;
				char6AttackType1 = xerxesAttackType1;
				char6AttackType2 = xerxesAttackType2;
				char6AttackType3 = xerxesAttackType3;
				char6AttackType4 = xerxesAttackType4;
				char6Strength = xerxesStrength;
				char6PsyPower = xerxesPsyPower;
				char6PsyDefense = xerxesPsyDefense;
				char6MBlevel = xerxesMBLevel;
				char6MSlevel = xerxesMSLevel;
				char6PBlevel = xerxesPBLevel;
				char6FBmax = xerxesFBLevel + xerxesPsyDefense;
			}
			if (slot7 == 'Darkling' && !darklingDead) {
				_root.attachMovie('shadowlingRedSmallGood', 'char7', 8);
				name7 = 'Darkling';
				char7Movement = darklingMovement;
				char7Resists = darklingResists;
				char7Dead = false;
				MaxHP7 = darklingHP;
				MaxPsP7 = darklingPsP;
				MaxSteps7 = darklingSpeed;
				char7AttackType1 = darklingAttackType1;
				char7AttackType2 = darklingAttackType2;
				char7AttackType3 = darklingAttackType3;
				char7AttackType4 = darklingAttackType4;
				char7Strength = 1;
				char7PsyPower = darklingPsyPower;
				char7PsyDefense = darklingPsyDefense;
				char7MBlevel = darklingMBLevel;
				char7MSlevel = darklingMSLevel;
				char7PBlevel = darklingPBLevel;
				char7FBmax = darklingFBLevel + darklingPsyDefense;
			}
			if (slot7 == 'Shadowboxer' && !shadowboxerDead) {
				_root.attachMovie('shadowlingRedGood', 'char7', 8);
				name7 = 'Shadowboxer';
				char7Movement = shadowboxerMovement;
				char7Resists = shadowboxerResists;
				char7Dead = false;
				MaxHP7 = shadowboxerHP;
				MaxPsP7 = shadowboxerPsP;
				MaxSteps7 = shadowboxerSpeed;
				char7AttackType1 = shadowboxerAttackType1;
				char7AttackType2 = shadowboxerAttackType2;
				char7AttackType3 = shadowboxerAttackType3;
				char7AttackType4 = shadowboxerAttackType4;
				char7Strength = 1;
				char7PsyPower = shadowboxerPsyPower;
				char7PsyDefense = shadowboxerPsyDefense;
				char7MBlevel = shadowboxerMBLevel;
				char7MSlevel = shadowboxerMSLevel;
				char7PBlevel = shadowboxerPBLevel;
				char7FBlevel = shadowboxerFBLevel;
				char7FBmax = shadowboxerFBLevel + shadowboxerPsyDefense;
			}
			if (slot7 == 'Festus' && !festusDead) {
				_root.attachMovie('shadowlingBlueGood', 'char7', 8);
				name7 = 'Festus';
				char7Movement = festusMovement;
				char7Resists = festusResists;
				char7Dead = false;
				MaxHP7 = festusHP;
				MaxPsP7 = festusPsP;
				MaxSteps7 = festusSpeed;
				char7AttackType1 = festusAttackType1;
				char7AttackType2 = festusAttackType2;
				char7AttackType3 = festusAttackType3;
				char7AttackType4 = festusAttackType4;
				char7Strength = 1;
				char7PsyPower = festusPsyPower;
				char7PsyDefense = festusPsyDefense;
				char7MBlevel = festusMBLevel;
				char7MSlevel = festusMSLevel;
				char7PBlevel = festusPBLevel;
				char7FBmax = festusFBLevel + festusPsyDefense;
			}
			if (slot7 == 'Niven' && !nivenDead) {
				_root.attachMovie('shadowlingKniferGood', 'char7', 8);
				name7 = 'Niven';
				char7Movement = nivenMovement;
				char7Resists = nivenResists;
				char7Dead = false;
				MaxHP7 = nivenHP;
				MaxPsP7 = nivenPsP;
				MaxSteps7 = nivenSpeed;
				char7AttackType1 = nivenAttackType1;
				char7AttackType2 = nivenAttackType2;
				char7AttackType3 = nivenAttackType3;
				char7AttackType4 = nivenAttackType4;
				char7Strength = nivenStrength;
				char7PsyPower = nivenPsyPower;
				char7PsyDefense = nivenPsyDefense;
				char7MBlevel = nivenMBLevel;
				char7MSlevel = nivenMSLevel;
				char7PBlevel = nivenPBLevel;
				char7FBmax = nivenFBLevel + nivenPsyDefense;
			}
			if (slot7 == 'Flint' && !flintDead) {
				_root.attachMovie('stoneGolemGood', 'char7', 8);
				name7 = 'Flint';
				char7Movement = flintMovement;
				char7Resists = flintResists;
				char7Dead = false;
				MaxHP7 = flintHP;
				MaxPsP7 = flintPsP;
				MaxSteps7 = flintSpeed;
				char7AttackType1 = flintAttackType1;
				char7AttackType2 = flintAttackType2;
				char7AttackType3 = flintAttackType3;
				char7AttackType4 = flintAttackType4;
				char7Strength = flintStrength;
				char7PsyPower = flintPsyPower;
				char7PsyDefense = flintPsyDefense;
				char7MBlevel = flintMBLevel;
				char7MSlevel = flintMSLevel;
				char7PBlevel = flintPBLevel;
				char7FBmax = flintFBLevel + flintPsyDefense;
			}
			if (slot7 == 'Helena' && !helenaDead) {
				_root.attachMovie('guardRedFem', 'char7', 8);
				name7 = 'Helena';
				char7Movement = helenaMovement;
				char7Resists = helenaResists;
				char7Dead = false;
				MaxHP7 = helenaHP;
				MaxPsP7 = helenaPsP;
				MaxSteps7 = helenaSpeed;
				char7AttackType1 = helenaAttackType1;
				char7AttackType2 = helenaAttackType2;
				char7AttackType3 = helenaAttackType3;
				char7AttackType4 = helenaAttackType4;
				char7Strength = helenaStrength;
				char7PsyPower = helenaPsyPower;
				char7PsyDefense = helenaPsyDefense;
				char7MBlevel = helenaMBLevel;
				char7MSlevel = helenaMSLevel;
				char7PBlevel = helenaPBLevel;
				char7FBmax = helenaFBLevel + helenaPsyDefense;
			}
			if (slot7 == 'Grotius' && !grotiusDead) {
				_root.attachMovie('spriggatWhiteGood', 'char7', 8);
				name7 = 'Grotius';
				char7Movement = grotiusMovement;
				char7Resists = grotiusResists;
				char7Dead = false;
				MaxHP7 = grotiusHP;
				MaxPsP7 = grotiusPsP;
				MaxSteps7 = grotiusSpeed;
				char7AttackType1 = grotiusAttackType1;
				char7AttackType2 = grotiusAttackType2;
				char7AttackType3 = grotiusAttackType3;
				char7AttackType4 = grotiusAttackType4;
				char7Strength = grotiusStrength;
				char7PsyPower = grotiusPsyPower;
				char7PsyDefense = grotiusPsyDefense;
				char7MBlevel = grotiusMBLevel;
				char7MSlevel = grotiusMSLevel;
				char7PBlevel = grotiusPBLevel;
				char7FBmax = grotiusFBLevel + grotiusPsyDefense;
			}
			if (slot7 == 'Anya' && !anyaDead) {
				_root.attachMovie('anya', 'char7', 8);
				name7 = 'Anya';
				char7Movement = anyaMovement;
				char7Resists = anyaResists;
				char7Dead = false;
				MaxHP7 = anyaHP;
				MaxPsP7 = anyaPsP;
				MaxSteps7 = anyaSpeed;
				char7AttackType1 = anyaAttackType1;
				char7AttackType2 = anyaAttackType2;
				char7AttackType3 = anyaAttackType3;
				char7AttackType4 = anyaAttackType4;
				char7Strength = 1;
				char7PsyPower = anyaPsyPower;
				char7PsyDefense = anyaPsyDefense;
				char7MBlevel = anyaMBLevel;
				char7MSlevel = anyaMSLevel;
				char7PBlevel = anyaPBLevel;
				char7FBmax = anyaFBLevel + anyaPsyDefense;
			}
			if (slot7 == 'Guy' && !guyDead) {
				_root.attachMovie('guy', 'char7', 8);
				name7 = 'Guy';
				char7Movement = guyMovement;
				char7Resists = guyResists;
				char7Dead = false;
				MaxHP7 = guyHP;
				MaxPsP7 = guyPsP;
				MaxSteps7 = guySpeed;
				char7AttackType1 = guyAttackType1;
				char7AttackType2 = guyAttackType2;
				char7AttackType3 = guyAttackType3;
				char7AttackType4 = guyAttackType4;
				char7Strength = 1;
				char7PsyPower = guyPsyPower;
				char7PsyDefense = guyPsyDefense;
				char7MBlevel = guyMBLevel;
				char7MSlevel = guyMSLevel;
				char7PBlevel = guyPBLevel;
				char7FBmax = guyFBLevel + guyPsyDefense;
			}
			if (slot7 == 'Dorgon' && !dorgonDead) {
				_root.attachMovie('XXX', 'char7', 8);
				name7 = 'Dorgon';
				char7Movement = dorgonMovement;
				char7Resists = dorgonResists;
				char7Dead = false;
				MaxHP7 = dorgonHP;
				MaxPsP7 = dorgonPsP;
				MaxSteps7 = dorgonSpeed;
				char7AttackType1 = dorgonAttackType1;
				char7AttackType2 = dorgonAttackType2;
				char7AttackType3 = dorgonAttackType3;
				char7AttackType4 = dorgonAttackType4;
				char7Strength = dorgonStrength;
				char7PsyPower = dorgonPsyPower;
				char7PsyDefense = dorgonPsyDefense;
				char7MBlevel = dorgonMBLevel;
				char7MSlevel = dorgonMSLevel;
				char7PBlevel = dorgonPBLevel;
				char7FBmax = dorgonFBLevel + dorgonPsyDefense;
			}
			if (slot7 == 'Gamblin\' Jack' && !jackDead) {
				_root.attachMovie('guardWhiteCape', 'char7', 8);
				name7 = 'Gamblinâ€™ Jack';
				char7Movement = jackMovement;
				char7Resists = jackResists;
				char7Dead = false;
				MaxHP7 = jackHP;
				MaxPsP7 = jackPsP;
				MaxSteps7 = jackSpeed;
				char7AttackType1 = jackAttackType1;
				char7AttackType2 = jackAttackType2;
				char7AttackType3 = jackAttackType3;
				char7AttackType4 = jackAttackType4;
				char7Strength = jackStrength;
				char7PsyPower = jackPsyPower;
				char7PsyDefense = jackPsyDefense;
				char7MBlevel = jackMBLevel;
				char7MSlevel = jackMSLevel;
				char7PBlevel = jackPBLevel;
				char7FBmax = jackFBLevel + jackPsyDefense;
			}
			if (slot7 == 'Luca' && !lucaDead) {
				_root.attachMovie('XXX', 'char7', 8);
				name7 = 'Luca';
				char7Movement = lucaMovement;
				char7Resists = lucaResists;
				char7Dead = false;
				MaxHP7 = lucaHP;
				MaxPsP7 = lucaPsP;
				MaxSteps7 = lucaSpeed;
				char7AttackType1 = lucaAttackType1;
				char7AttackType2 = lucaAttackType2;
				char7AttackType3 = lucaAttackType3;
				char7AttackType4 = lucaAttackType4;
				char7Strength = lucaStrength;
				char7PsyPower = lucaPsyPower;
				char7PsyDefense = lucaPsyDefense;
				char7MBlevel = lucaMBLevel;
				char7MSlevel = lucaMSLevel;
				char7PBlevel = lucaPBLevel;
				char7FBmax = lucaFBLevel + lucaPsyDefense;
			}
			if (slot7 == 'Magellan' && !magellanDead) {
				_root.attachMovie('XXX', 'char7', 8);
				name7 = 'Magellan';
				char7Movement = magellanMovement;
				char7Resists = magellanResists;
				char7Dead = false;
				MaxHP7 = magellanHP;
				MaxPsP7 = magellanPsP;
				MaxSteps7 = magellanSpeed;
				char7AttackType1 = magellanAttackType1;
				char7AttackType2 = magellanAttackType2;
				char7AttackType3 = magellanAttackType3;
				char7AttackType4 = magellanAttackType4;
				char7Strength = magellanStrength;
				char7PsyPower = magellanPsyPower;
				char7PsyDefense = magellanPsyDefense;
				char7MBlevel = magellanMBLevel;
				char7MSlevel = magellanMSLevel;
				char7PBlevel = magellanPBLevel;
				char7FBmax = magellanFBLevel + magellanPsyDefense;
			}
			if (slot7 == 'Xerxes' && !xerxesDead) {
				_root.attachMovie('XXX', 'char7', 8);
				name7 = 'Xerxes';
				char7Movement = xerxesMovement;
				char7Resists = xerxesResists;
				char7Dead = false;
				MaxHP7 = xerxesHP;
				MaxPsP7 = xerxesPsP;
				MaxSteps7 = xerxesSpeed;
				char7AttackType1 = xerxesAttackType1;
				char7AttackType2 = xerxesAttackType2;
				char7AttackType3 = xerxesAttackType3;
				char7AttackType4 = xerxesAttackType4;
				char7Strength = xerxesStrength;
				char7PsyPower = xerxesPsyPower;
				char7PsyDefense = xerxesPsyDefense;
				char7MBlevel = xerxesMBLevel;
				char7MSlevel = xerxesMSLevel;
				char7PBlevel = xerxesPBLevel;
				char7FBmax = xerxesFBLevel + xerxesPsyDefense;
			}
			if (slot8 == 'Darkling' && !darklingDead) {
				_root.attachMovie('shadowlingRedSmallGood', 'char8', 9);
				name8 = 'Darkling';
				char8Movement = darklingMovement;
				char8Resists = darklingResists;
				char8Dead = false;
				MaxHP8 = darklingHP;
				MaxPsP8 = darklingPsP;
				MaxSteps8 = darklingSpeed;
				char8AttackType1 = darklingAttackType1;
				char8AttackType2 = darklingAttackType2;
				char8AttackType3 = darklingAttackType3;
				char8AttackType4 = darklingAttackType4;
				char8Strength = 1;
				char8PsyPower = darklingPsyPower;
				char8PsyDefense = darklingPsyDefense;
				char8MBlevel = darklingMBLevel;
				char8MSlevel = darklingMSLevel;
				char8PBlevel = darklingPBLevel;
				char8FBmax = darklingFBLevel + darklingPsyDefense;
			}
			if (slot8 == 'Shadowboxer' && !shadowboxerDead) {
				_root.attachMovie('shadowlingRedGood', 'char8', 9);
				name8 = 'Shadowboxer';
				char8Movement = shadowboxerMovement;
				char8Resists = shadowboxerResists;
				char8Dead = false;
				MaxHP8 = shadowboxerHP;
				MaxPsP8 = shadowboxerPsP;
				MaxSteps8 = shadowboxerSpeed;
				char8AttackType1 = shadowboxerAttackType1;
				char8AttackType2 = shadowboxerAttackType2;
				char8AttackType3 = shadowboxerAttackType3;
				char8AttackType4 = shadowboxerAttackType4;
				char8Strength = 1;
				char8PsyPower = shadowboxerPsyPower;
				char8PsyDefense = shadowboxerPsyDefense;
				char8MBlevel = shadowboxerMBLevel;
				char8MSlevel = shadowboxerMSLevel;
				char8PBlevel = shadowboxerPBLevel;
				char8FBlevel = shadowboxerFBLevel;
				char8FBmax = shadowboxerFBLevel + shadowboxerPsyDefense;
			}
			if (slot8 == 'Festus' && !festusDead) {
				_root.attachMovie('shadowlingBlueGood', 'char8', 9);
				name8 = 'Festus';
				char8Movement = festusMovement;
				char8Resists = festusResists;
				char8Dead = false;
				MaxHP8 = festusHP;
				MaxPsP8 = festusPsP;
				MaxSteps8 = festusSpeed;
				char8AttackType1 = festusAttackType1;
				char8AttackType2 = festusAttackType2;
				char8AttackType3 = festusAttackType3;
				char8AttackType4 = festusAttackType4;
				char8Strength = 1;
				char8PsyPower = festusPsyPower;
				char8PsyDefense = festusPsyDefense;
				char8MBlevel = festusMBLevel;
				char8MSlevel = festusMSLevel;
				char8PBlevel = festusPBLevel;
				char8FBmax = festusFBLevel + festusPsyDefense;
			}
			if (slot8 == 'Niven' && !nivenDead) {
				_root.attachMovie('shadowlingKniferGood', 'char8', 9);
				name8 = 'Niven';
				char8Movement = nivenMovement;
				char8Resists = nivenResists;
				char8Dead = false;
				MaxHP8 = nivenHP;
				MaxPsP8 = nivenPsP;
				MaxSteps8 = nivenSpeed;
				char8AttackType1 = nivenAttackType1;
				char8AttackType2 = nivenAttackType2;
				char8AttackType3 = nivenAttackType3;
				char8AttackType4 = nivenAttackType4;
				char8Strength = nivenStrength;
				char8PsyPower = nivenPsyPower;
				char8PsyDefense = nivenPsyDefense;
				char8MBlevel = nivenMBLevel;
				char8MSlevel = nivenMSLevel;
				char8PBlevel = nivenPBLevel;
				char8FBmax = nivenFBLevel + nivenPsyDefense;
			}
			if (slot8 == 'Flint' && !flintDead) {
				_root.attachMovie('stoneGolemGood', 'char8', 9);
				name8 = 'Flint';
				char8Movement = flintMovement;
				char8Resists = flintResists;
				char8Dead = false;
				MaxHP8 = flintHP;
				MaxPsP8 = flintPsP;
				MaxSteps8 = flintSpeed;
				char8AttackType1 = flintAttackType1;
				char8AttackType2 = flintAttackType2;
				char8AttackType3 = flintAttackType3;
				char8AttackType4 = flintAttackType4;
				char8Strength = flintStrength;
				char8PsyPower = flintPsyPower;
				char8PsyDefense = flintPsyDefense;
				char8MBlevel = flintMBLevel;
				char8MSlevel = flintMSLevel;
				char8PBlevel = flintPBLevel;
				char8FBmax = flintFBLevel + flintPsyDefense;
			}
			if (slot8 == 'Helena' && !helenaDead) {
				_root.attachMovie('guardRedFem', 'char8', 9);
				name8 = 'Helena';
				char8Movement = helenaMovement;
				char8Resists = helenaResists;
				char8Dead = false;
				MaxHP8 = helenaHP;
				MaxPsP8 = helenaPsP;
				MaxSteps8 = helenaSpeed;
				char8AttackType1 = helenaAttackType1;
				char8AttackType2 = helenaAttackType2;
				char8AttackType3 = helenaAttackType3;
				char8AttackType4 = helenaAttackType4;
				char8Strength = helenaStrength;
				char8PsyPower = helenaPsyPower;
				char8PsyDefense = helenaPsyDefense;
				char8MBlevel = helenaMBLevel;
				char8MSlevel = helenaMSLevel;
				char8PBlevel = helenaPBLevel;
				char8FBmax = helenaFBLevel + helenaPsyDefense;
			}
			if (slot8 == 'Grotius' && !grotiusDead) {
				_root.attachMovie('spriggatWhiteGood', 'char8', 9);
				name8 = 'Grotius';
				char8Movement = grotiusMovement;
				char8Resists = grotiusResists;
				char8Dead = false;
				MaxHP8 = grotiusHP;
				MaxPsP8 = grotiusPsP;
				MaxSteps8 = grotiusSpeed;
				char8AttackType1 = grotiusAttackType1;
				char8AttackType2 = grotiusAttackType2;
				char8AttackType3 = grotiusAttackType3;
				char8AttackType4 = grotiusAttackType4;
				char8Strength = grotiusStrength;
				char8PsyPower = grotiusPsyPower;
				char8PsyDefense = grotiusPsyDefense;
				char8MBlevel = grotiusMBLevel;
				char8MSlevel = grotiusMSLevel;
				char8PBlevel = grotiusPBLevel;
				char8FBmax = grotiusFBLevel + grotiusPsyDefense;
			}
			if (slot8 == 'Anya' && !anyaDead) {
				_root.attachMovie('anya', 'char8', 9);
				name8 = 'Anya';
				char8Movement = anyaMovement;
				char8Resists = anyaResists;
				char8Dead = anyaDead;
				MaxHP8 = anyaHP;
				MaxPsP8 = anyaPsP;
				MaxSteps8 = anyaSpeed;
				char8AttackType1 = anyaAttackType1;
				char8AttackType2 = anyaAttackType2;
				char8AttackType3 = anyaAttackType3;
				char8AttackType4 = anyaAttackType4;
				char8Strength = 1;
				char8PsyPower = anyaPsyPower;
				char8PsyDefense = anyaPsyDefense;
				char8MBlevel = anyaMBLevel;
				char8MSlevel = anyaMSLevel;
				char8PBlevel = anyaPBLevel;
				char8FBmax = anyaFBLevel + anyaPsyDefense;
			}
			if (slot8 == 'Guy' && !guyDead) {
				_root.attachMovie('guy', 'char8', 9);
				name8 = 'Guy';
				char8Movement = guyMovement;
				char8Resists = guyResists;
				char8Dead = guyDead;
				MaxHP8 = guyHP;
				MaxPsP8 = guyPsP;
				MaxSteps8 = guySpeed;
				char8AttackType1 = guyAttackType1;
				char8AttackType2 = guyAttackType2;
				char8AttackType3 = guyAttackType3;
				char8AttackType4 = guyAttackType4;
				char8Strength = 1;
				char8PsyPower = guyPsyPower;
				char8PsyDefense = guyPsyDefense;
				char8MBlevel = guyMBLevel;
				char8MSlevel = guyMSLevel;
				char8PBlevel = guyPBLevel;
				char8FBmax = guyFBLevel + guyPsyDefense;
			}
			if (slot8 == 'Dorgon' && !dorgonDead) {
				_root.attachMovie('XXX', 'char8', 9);
				name8 = 'Dorgon';
				char8Movement = dorgonMovement;
				char8Resists = dorgonResists;
				char8Dead = dorgonDead;
				MaxHP8 = dorgonHP;
				MaxPsP8 = dorgonPsP;
				MaxSteps8 = dorgonSpeed;
				char8AttackType1 = dorgonAttackType1;
				char8AttackType2 = dorgonAttackType2;
				char8AttackType3 = dorgonAttackType3;
				char8AttackType4 = dorgonAttackType4;
				char8Strength = dorgonStrength;
				char8PsyPower = dorgonPsyPower;
				char8PsyDefense = dorgonPsyDefense;
				char8MBlevel = dorgonMBLevel;
				char8MSlevel = dorgonMSLevel;
				char8PBlevel = dorgonPBLevel;
				char8FBmax = dorgonFBLevel + dorgonPsyDefense;
			}
			if (slot8 == 'Gamblin\' Jack' && !jackDead) {
				_root.attachMovie('guardWhiteCape', 'char8', 9);
				name8 = 'Gamblinâ€™ Jack';
				char8Movement = jackMovement;
				char8Resists = jackResists;
				char8Dead = jackDead;
				MaxHP8 = jackHP;
				MaxPsP8 = jackPsP;
				MaxSteps8 = jackSpeed;
				char8AttackType1 = jackAttackType1;
				char8AttackType2 = jackAttackType2;
				char8AttackType3 = jackAttackType3;
				char8AttackType4 = jackAttackType4;
				char8Strength = jackStrength;
				char8PsyPower = jackPsyPower;
				char8PsyDefense = jackPsyDefense;
				char8MBlevel = jackMBLevel;
				char8MSlevel = jackMSLevel;
				char8PBlevel = jackPBLevel;
				char8FBmax = jackFBLevel + jackPsyDefense;
			}
			if (slot8 == 'Luca' && !lucaDead) {
				_root.attachMovie('XXX', 'char8', 9);
				name8 = 'Luca';
				char8Movement = lucaMovement;
				char8Resists = lucaResists;
				char8Dead = lucaDead;
				MaxHP8 = lucaHP;
				MaxPsP8 = lucaPsP;
				MaxSteps8 = lucaSpeed;
				char8AttackType1 = lucaAttackType1;
				char8AttackType2 = lucaAttackType2;
				char8AttackType3 = lucaAttackType3;
				char8AttackType4 = lucaAttackType4;
				char8Strength = lucaStrength;
				char8PsyPower = lucaPsyPower;
				char8PsyDefense = lucaPsyDefense;
				char8MBlevel = lucaMBLevel;
				char8MSlevel = lucaMSLevel;
				char8PBlevel = lucaPBLevel;
				char8FBmax = lucaFBLevel + lucaPsyDefense;
			}
			if (slot8 == 'Magellan' && !magellanDead) {
				_root.attachMovie('XXX', 'char8', 9);
				name8 = 'Magellan';
				char8Movement = magellanMovement;
				char8Resists = magellanResists;
				char8Dead = magellanDead;
				MaxHP8 = magellanHP;
				MaxPsP8 = magellanPsP;
				MaxSteps8 = magellanSpeed;
				char8AttackType1 = magellanAttackType1;
				char8AttackType2 = magellanAttackType2;
				char8AttackType3 = magellanAttackType3;
				char8AttackType4 = magellanAttackType4;
				char8Strength = magellanStrength;
				char8PsyPower = magellanPsyPower;
				char8PsyDefense = magellanPsyDefense;
				char8MBlevel = magellanMBLevel;
				char8MSlevel = magellanMSLevel;
				char8PBlevel = magellanPBLevel;
				char8FBmax = magellanFBLevel + magellanPsyDefense;
			}
			if (slot8 == 'Xerxes' && !xerxesDead) {
				_root.attachMovie('XXX', 'char8', 9);
				name8 = 'Xerxes';
				char8Movement = xerxesMovement;
				char8Resists = xerxesResists;
				char8Dead = xerxesDead;
				MaxHP8 = xerxesHP;
				MaxPsP8 = xerxesPsP;
				MaxSteps8 = xerxesSpeed;
				char8AttackType1 = xerxesAttackType1;
				char8AttackType2 = xerxesAttackType2;
				char8AttackType3 = xerxesAttackType3;
				char8AttackType4 = xerxesAttackType4;
				char8Strength = xerxesStrength;
				char8PsyPower = xerxesPsyPower;
				char8PsyDefense = xerxesPsyDefense;
				char8MBlevel = xerxesMBLevel;
				char8MSlevel = xerxesMSLevel;
				char8PBlevel = xerxesPBLevel;
				char8FBmax = xerxesFBLevel + xerxesPsyDefense;
			}
			if (formation == 1) {
				char1._x = 25;
				char1._y = 25;
				char2._x = 75;
				char2._y = 25;
				char3._x = 125;
				char3._y = 25;
				char4._x = 175;
				char4._y = 25;
				char5._x = 225;
				char5._y = 25;
				char6._x = 275;
				char6._y = 25;
				char7._x = 325;
				char7._y = 25;
				char8._x = 375;
				char8._y = 25;
			}
			if (formation == 2) {
				char1._x = 175;
				char1._y = 75;
				char2._x = 125;
				char2._y = 75;
				char3._x = 75;
				char3._y = 75;
				char4._x = 25;
				char4._y = 75;
				char5._x = 175;
				char5._y = 25;
				char6._x = 125;
				char6._y = 25;
				char7._x = 75;
				char7._y = 25;
				char8._x = 25;
				char8._y = 25;
			}
			if (whichBattle == 'mission03C') {
				char1._x = 375;
				char1._y = 125;
				char2._x = 325;
				char2._y = 125;
				char3._x = 275;
				char3._y = 125;
				char4._x = 225;
				char4._y = 125;
				char5._x = 375;
				char5._y = 75;
				char6._x = 325;
				char6._y = 75;
				char7._x = 275;
				char7._y = 75;
				char8._x = 225;
				char8._y = 75;
			}
			if (whichBattle == 'mission04C' || whichBattle == 'mission06C' || whichBattle == 'mission06D' || whichBattle == 'mission06E') {
				char1._x = 525;
				char1._y = 375;
				char1._rotation -= 180;
				char2._x = 475;
				char2._y = 375;
				char2._rotation -= 180;
				char3._x = 425;
				char3._y = 375;
				char3._rotation -= 180;
				char4._x = 375;
				char4._y = 375;
				char4._rotation -= 180;
				char5._x = 325;
				char5._y = 375;
				char5._rotation -= 180;
				char6._x = 275;
				char6._y = 375;
				char6._rotation -= 180;
				char7._x = 225;
				char7._y = 375;
				char7._rotation -= 180;
				char8._x = 175;
				char8._y = 375;
				char8._rotation -= 180;
			}
			if (whichBattle == 'mission05G' || whichBattle == 'mission06A') {
				char1._x = 175;
				char1._y = 325;
				char1._rotation -= 180;
				char2._x = 225;
				char2._y = 325;
				char2._rotation -= 180;
				char3._x = 275;
				char3._y = 325;
				char3._rotation -= 180;
				char4._x = 325;
				char4._y = 325;
				char4._rotation -= 180;
				char5._x = 375;
				char5._y = 325;
				char5._rotation -= 180;
				char6._x = 225;
				char6._y = 375;
				char6._rotation -= 180;
				char7._x = 275;
				char7._y = 375;
				char7._rotation -= 180;
				char8._x = 325;
				char8._y = 375;
				char8._rotation -= 180;
			}
			if (whichBattle == 'mission06B') {
				char1._x = 225;
				char1._y = 125;
				char1._rotation += 90;
				char2._x = 225;
				char2._y = 175;
				char2._rotation += 90;
				char3._x = 225;
				char3._y = 225;
				char3._rotation += 90;
				char4._x = 225;
				char4._y = 275;
				char4._rotation += 90;
				char5._x = 275;
				char5._y = 125;
				char5._rotation += 90;
				char6._x = 275;
				char6._y = 175;
				char6._rotation += 90;
				char7._x = 275;
				char7._y = 225;
				char7._rotation += 90;
				char8._x = 275;
				char8._y = 275;
				char8._rotation += 90;
			}
			if (whichBattle == 'mission07A') {
				char1._x = 125;
				char1._y = 125;
				char1._rotation -= 90;
				char2._x = 125;
				char2._y = 175;
				char2._rotation -= 90;
				char3._x = 125;
				char3._y = 225;
				char3._rotation -= 90;
				char4._x = 75;
				char4._y = 125;
				char4._rotation -= 90;
				char5._x = 75;
				char5._y = 175;
				char5._rotation -= 90;
				char6._x = 75;
				char6._y = 225;
				char6._rotation -= 90;
				char7._x = 25;
				char7._y = 125;
				char7._rotation -= 90;
				char8._x = 25;
				char8._y = 175;
				char8._rotation -= 90;
			}
			if (whichBattle == 'mission07B') {
				char1._x = 75;
				char1._y = 125;
				char1._rotation -= 90;
				char2._x = 75;
				char2._y = 175;
				char2._rotation -= 90;
				char3._x = 75;
				char3._y = 225;
				char3._rotation -= 90;
				char4._x = 75;
				char4._y = 275;
				char4._rotation -= 90;
				char5._x = 25;
				char5._y = 125;
				char5._rotation -= 90;
				char6._x = 25;
				char6._y = 175;
				char6._rotation -= 90;
				char7._x = 25;
				char7._y = 225;
				char7._rotation -= 90;
				char8._x = 25;
				char8._y = 275;
				char8._rotation -= 90;
			}
			if (whichBattle == 'mission08A' || whichBattle == 'mission08B') {
				char1._x = 225;
				char1._y = 325;
				char1._rotation -= 180;
				char2._x = 275;
				char2._y = 325;
				char2._rotation -= 180;
				char3._x = 325;
				char3._y = 325;
				char3._rotation -= 180;
				char4._x = 175;
				char4._y = 375;
				char4._rotation -= 180;
				char5._x = 225;
				char5._y = 375;
				char5._rotation -= 180;
				char6._x = 275;
				char6._y = 375;
				char6._rotation -= 180;
				char7._x = 325;
				char7._y = 375;
				char7._rotation -= 180;
				char8._x = 375;
				char8._y = 375;
				char8._rotation -= 180;
			}
			if (whichBattle == 'mission08C' || whichBattle == 'mission08D') {
				char1._x = 175;
				char1._y = 325;
				char1._rotation -= 180;
				char2._x = 225;
				char2._y = 325;
				char2._rotation -= 180;
				char3._x = 275;
				char3._y = 325;
				char3._rotation -= 180;
				char4._x = 325;
				char4._y = 325;
				char4._rotation -= 180;
				char5._x = 375;
				char5._y = 325;
				char5._rotation -= 180;
				char6._x = 225;
				char6._y = 375;
				char6._rotation -= 180;
				char7._x = 275;
				char7._y = 375;
				char7._rotation -= 180;
				char8._x = 325;
				char8._y = 375;
				char8._rotation -= 180;
			}
		}
		function senseGoodChars() {
			hitCharLeft = false;
			hitCharRight = false;
			hitCharUp = false;
			hitCharDown = false;
			hitCharLeft2 = false;
			hitCharRight2 = false;
			hitCharUp2 = false;
			hitCharDown2 = false;
			hitCharUpLeft = false;
			hitCharDownRight = false;
			hitCharUpRight = false;
			hitCharDownLeft = false;
			hitCharUp2Left = false;
			hitCharDown2Right = false;
			hitCharUp2Right = false;
			hitCharDown2Left = false;
			hitCharUpLeft2 = false;
			hitCharDownRight2 = false;
			hitCharUpRight2 = false;
			hitCharDownLeft2 = false;
			hitCharUp3Left = false;
			hitCharDown3Right = false;
			hitCharUp3Right = false;
			hitCharDown3Left = false;
			hitCharUpLeft3 = false;
			hitCharDownRight3 = false;
			hitCharUpRight3 = false;
			hitCharDownLeft3 = false;
			hitCharUp4Left = false;
			hitCharDown4Right = false;
			hitCharUp4Right = false;
			hitCharDown4Left = false;
			hitCharUpLeft4 = false;
			hitCharDownRight4 = false;
			hitCharUpRight4 = false;
			hitCharDownLeft4 = false;
			hitCharLeft3 = false;
			hitCharRight3 = false;
			hitCharUp3 = false;
			hitCharDown3 = false;
			hitCharLeft4 = false;
			hitCharRight4 = false;
			hitCharUp4 = false;
			hitCharDown4 = false;
			if (moveTurn == 16) {
				senseGoodChars16();
			}
			if (moveTurn == 17) {
				senseGoodChars17();
			}
			if (moveTurn == 18) {
				senseGoodChars18();
			}
			if (moveTurn == 19) {
				senseGoodChars19();
			}
			if (moveTurn == 20) {
				senseGoodChars20();
			}
			if (moveTurn == 21) {
				senseGoodChars21();
			}
			if (moveTurn == 22) {
				senseGoodChars22();
			}
			if (moveTurn == 23) {
				senseGoodChars23();
			}
			if (moveTurn == 24) {
				senseGoodChars24();
			}
			if (moveTurn == 25) {
				senseGoodChars25();
			}
		}
		function senseBadChars() {
			hitBadLeft = false;
			hitBadRight = false;
			hitBadUp = false;
			hitBadDown = false;
			hitBadLeft2 = false;
			hitBadRight2 = false;
			hitBadUp2 = false;
			hitBadDown2 = false;
			hitBadLeft3 = false;
			hitBadRight3 = false;
			hitBadUp3 = false;
			hitBadDown3 = false;
			hitBadLeft4 = false;
			hitBadRight4 = false;
			hitBadUp4 = false;
			hitBadDown4 = false;
			hitBadLeft5 = false;
			hitBadRight5 = false;
			hitBadUp5 = false;
			hitBadDown5 = false;
			hitBadUpLeft = false;
			hitBadDownRight = false;
			hitBadUpRight = false;
			hitBadDownLeft = false;
			hitBadUp2Left = false;
			hitBadDown2Right = false;
			hitBadUp2Right = false;
			hitBadDown2Left = false;
			hitBadUpLeft2 = false;
			hitBadDownRight2 = false;
			hitBadUpRight2 = false;
			hitBadDownLeft2 = false;
			hitBadUp3Left = false;
			hitBadDown3Right = false;
			hitBadUp3Right = false;
			hitBadDown3Left = false;
			hitBadUpLeft3 = false;
			hitBadDownRight3 = false;
			hitBadUpRight3 = false;
			hitBadDownLeft3 = false;
			hitBadUp4Left = false;
			hitBadDown4Right = false;
			hitBadUp4Right = false;
			hitBadDown4Left = false;
			hitBadUpLeft4 = false;
			hitBadDownRight4 = false;
			hitBadUpRight4 = false;
			hitBadDownLeft4 = false;
			if (moveTurn == 16) {
				senseBadChars16();
			}
			if (moveTurn == 17) {
				senseBadChars17();
			}
			if (moveTurn == 18) {
				senseBadChars18();
			}
			if (moveTurn == 19) {
				senseBadChars19();
			}
			if (moveTurn == 20) {
				if (char20AttackType1 !== 'megashield') {
					senseBadChars20();
				} else {
					senseBadCharsB20();
				}
			}
			if (moveTurn == 21) {
				senseBadChars21();
			}
			if (moveTurn == 22) {
				senseBadChars22();
			}
			if (moveTurn == 23) {
				senseBadChars23();
			}
			if (moveTurn == 24) {
				senseBadChars24();
			}
			if (moveTurn == 25) {
				senseBadChars25();
			}
		}
		function senseGoodChars16() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 100, char16._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 100, char16._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 150, char16._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 150, char16._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 200, char16._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 200, char16._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 250, char16._y, true)) {
					hitCharLeft5 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 250, char16._y, true)) {
					hitCharRight5 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y - 250, true)) {
					hitCharUp5 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y + 250, true)) {
					hitCharDown5 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 100, char16._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 100, char16._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 100, char16._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 100, char16._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 150, true)) {
					hitCharUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 150, true)) {
					hitCharDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 150, true)) {
					hitCharUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 150, true)) {
					hitCharDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 150, char16._y - 50, true)) {
					hitCharUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 150, char16._y + 50, true)) {
					hitCharDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 150, char16._y - 50, true)) {
					hitCharUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 150, char16._y + 50, true)) {
					hitCharDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 200, true)) {
					hitCharUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 200, true)) {
					hitCharDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 200, true)) {
					hitCharUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 200, true)) {
					hitCharDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 200, char16._y - 50, true)) {
					hitCharUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 200, char16._y + 50, true)) {
					hitCharDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 200, char16._y - 50, true)) {
					hitCharUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 200, char16._y + 50, true)) {
					hitCharDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseBadChars16() {
			var v2 = 17;
			while (v2 < 26) {
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y, true)) {
					hitBadLeft = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y, true)) {
					hitBadRight = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y - 50, true)) {
					hitBadUp = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y + 50, true)) {
					hitBadDown = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 100, char16._y, true)) {
					hitBadLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 100, char16._y, true)) {
					hitBadRight2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y - 100, true)) {
					hitBadUp2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x, char16._y + 100, true)) {
					hitBadDown2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 50, true)) {
					hitBadUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 50, true)) {
					hitBadDownRight = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 50, true)) {
					hitBadUpRight = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 50, true)) {
					hitBadDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 100, true)) {
					hitBadUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 100, true)) {
					hitBadDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 100, true)) {
					hitBadUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 100, true)) {
					hitBadDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 100, char16._y - 50, true)) {
					hitBadUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 100, char16._y + 50, true)) {
					hitBadDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 100, char16._y - 50, true)) {
					hitBadUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 100, char16._y + 50, true)) {
					hitBadDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 150, true)) {
					hitBadUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 150, true)) {
					hitBadDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 150, true)) {
					hitBadUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 150, true)) {
					hitBadDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 150, char16._y - 50, true)) {
					hitBadUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 150, char16._y + 50, true)) {
					hitBadDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 150, char16._y - 50, true)) {
					hitBadUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 150, char16._y + 50, true)) {
					hitBadDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y - 200, true)) {
					hitBadUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y + 200, true)) {
					hitBadDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 50, char16._y - 200, true)) {
					hitBadUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 50, char16._y + 200, true)) {
					hitBadDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 200, char16._y - 50, true)) {
					hitBadUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 200, char16._y + 50, true)) {
					hitBadDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x + 200, char16._y - 50, true)) {
					hitBadUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char16._x - 200, char16._y + 50, true)) {
					hitBadDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseGoodChars17() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 100, char17._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 100, char17._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 150, char17._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 150, char17._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 200, char17._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 200, char17._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 250, char17._y, true)) {
					hitCharLeft5 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 250, char17._y, true)) {
					hitCharRight5 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y - 250, true)) {
					hitCharUp5 = true;
				}
				if (_root['char' + v2].hitTest(char17._x, char17._y + 250, true)) {
					hitCharDown5 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 100, char17._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 100, char17._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 100, char17._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 100, char17._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y - 150, true)) {
					hitCharUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y + 150, true)) {
					hitCharDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y - 150, true)) {
					hitCharUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y + 150, true)) {
					hitCharDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 150, char17._y - 50, true)) {
					hitCharUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 150, char17._y + 50, true)) {
					hitCharDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 150, char17._y - 50, true)) {
					hitCharUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 150, char17._y + 50, true)) {
					hitCharDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y - 200, true)) {
					hitCharUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y + 200, true)) {
					hitCharDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 50, char17._y - 200, true)) {
					hitCharUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 50, char17._y + 200, true)) {
					hitCharDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 200, char17._y - 50, true)) {
					hitCharUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 200, char17._y + 50, true)) {
					hitCharDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char17._x + 200, char17._y - 50, true)) {
					hitCharUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char17._x - 200, char17._y + 50, true)) {
					hitCharDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseBadChars17() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 17) {
					if (_root['char' + v2].hitTest(char17._x - 50, char17._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 50, char17._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char17._x, char17._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char17._x, char17._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char17._x - 100, char17._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 100, char17._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char17._x, char17._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char17._x, char17._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char17._x - 50, char17._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 50, char17._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 50, char17._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char17._x - 50, char17._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char17._x - 50, char17._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 50, char17._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 50, char17._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char17._x - 50, char17._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char17._x - 100, char17._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 100, char17._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char17._x + 100, char17._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char17._x - 100, char17._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars18() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 100, char18._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 100, char18._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 150, char18._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 150, char18._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 150, char18._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 150, char18._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 200, char18._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 200, char18._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 250, char18._y, true)) {
					hitCharLeft5 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 250, char18._y, true)) {
					hitCharRight5 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y - 250, true)) {
					hitCharUp5 = true;
				}
				if (_root['char' + v2].hitTest(char18._x, char18._y + 250, true)) {
					hitCharDown5 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 100, char18._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 100, char18._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 100, char18._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 100, char18._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y - 150, true)) {
					hitCharUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y + 150, true)) {
					hitCharDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y - 150, true)) {
					hitCharUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y + 150, true)) {
					hitCharDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 150, char18._y - 50, true)) {
					hitCharUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 150, char18._y + 50, true)) {
					hitCharDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 150, char18._y - 50, true)) {
					hitCharUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 150, char18._y + 50, true)) {
					hitCharDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y - 200, true)) {
					hitCharUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y + 200, true)) {
					hitCharDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 50, char18._y - 200, true)) {
					hitCharUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 50, char18._y + 200, true)) {
					hitCharDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 200, char18._y - 50, true)) {
					hitCharUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 200, char18._y + 50, true)) {
					hitCharDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char18._x + 200, char18._y - 50, true)) {
					hitCharUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char18._x - 200, char18._y + 50, true)) {
					hitCharDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseBadChars18() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 18) {
					if (_root['char' + v2].hitTest(char18._x - 50, char18._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 50, char18._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char18._x, char18._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char18._x, char18._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char18._x - 100, char18._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 100, char18._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char18._x, char18._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char18._x, char18._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char18._x - 50, char18._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 50, char18._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 50, char18._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char18._x - 50, char18._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char18._x - 50, char18._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 50, char18._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 50, char18._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char18._x - 50, char18._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char18._x - 100, char18._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 100, char18._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char18._x + 100, char18._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char18._x - 100, char18._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars19() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 100, char19._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 100, char19._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 150, char19._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 150, char19._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 150, char19._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 150, char19._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 200, char19._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 200, char19._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 250, char19._y, true)) {
					hitCharLeft5 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 250, char19._y, true)) {
					hitCharRight5 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y - 250, true)) {
					hitCharUp5 = true;
				}
				if (_root['char' + v2].hitTest(char19._x, char19._y + 250, true)) {
					hitCharDown5 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 100, char19._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 100, char19._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 100, char19._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 100, char19._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y - 150, true)) {
					hitCharUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y + 150, true)) {
					hitCharDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y - 150, true)) {
					hitCharUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y + 150, true)) {
					hitCharDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 150, char19._y - 50, true)) {
					hitCharUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 150, char19._y + 50, true)) {
					hitCharDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 150, char19._y - 50, true)) {
					hitCharUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 150, char19._y + 50, true)) {
					hitCharDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y - 200, true)) {
					hitCharUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y + 200, true)) {
					hitCharDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 50, char19._y - 200, true)) {
					hitCharUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 50, char19._y + 200, true)) {
					hitCharDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 200, char19._y - 50, true)) {
					hitCharUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 200, char19._y + 50, true)) {
					hitCharDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char19._x + 200, char19._y - 50, true)) {
					hitCharUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char19._x - 200, char19._y + 50, true)) {
					hitCharDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseBadChars19() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 19) {
					if (_root['char' + v2].hitTest(char19._x - 50, char19._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 50, char19._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char19._x, char19._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char19._x, char19._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char19._x - 100, char19._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 100, char19._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char19._x, char19._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char19._x, char19._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char19._x - 50, char19._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 50, char19._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 50, char19._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char19._x - 50, char19._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char19._x - 50, char19._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 50, char19._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 50, char19._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char19._x - 50, char19._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char19._x - 100, char19._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 100, char19._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char19._x + 100, char19._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char19._x - 100, char19._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars20() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 100, char20._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 100, char20._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 150, char20._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 150, char20._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 150, char20._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 150, char20._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 200, char20._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 200, char20._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 250, char20._y, true)) {
					hitCharLeft5 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 250, char20._y, true)) {
					hitCharRight5 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y - 250, true)) {
					hitCharUp5 = true;
				}
				if (_root['char' + v2].hitTest(char20._x, char20._y + 250, true)) {
					hitCharDown5 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 100, char20._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 100, char20._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 100, char20._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 100, char20._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 150, true)) {
					hitCharUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 150, true)) {
					hitCharDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 150, true)) {
					hitCharUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 150, true)) {
					hitCharDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 150, char20._y - 50, true)) {
					hitCharUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 150, char20._y + 50, true)) {
					hitCharDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 150, char20._y - 50, true)) {
					hitCharUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 150, char20._y + 50, true)) {
					hitCharDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 200, true)) {
					hitCharUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 200, true)) {
					hitCharDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 200, true)) {
					hitCharUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 200, true)) {
					hitCharDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 200, char20._y - 50, true)) {
					hitCharUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 200, char20._y + 50, true)) {
					hitCharDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char20._x + 200, char20._y - 50, true)) {
					hitCharUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char20._x - 200, char20._y + 50, true)) {
					hitCharDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseBadChars20() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 20) {
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 100, char20._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 100, char20._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 100, char20._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 100, char20._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 100, char20._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 100, char20._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseBadCharsB20() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 !== 20) {
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 100, char20._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 100, char20._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x, char20._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 50, char20._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 50, char20._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 100, char20._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 100, char20._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x + 100, char20._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char20._x - 100, char20._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars21() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 100, char21._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 100, char21._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 150, char21._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 150, char21._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 150, char21._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 150, char21._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 200, char21._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 200, char21._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 250, char21._y, true)) {
					hitCharLeft5 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 250, char21._y, true)) {
					hitCharRight5 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y - 250, true)) {
					hitCharUp5 = true;
				}
				if (_root['char' + v2].hitTest(char21._x, char21._y + 250, true)) {
					hitCharDown5 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 100, char21._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 100, char21._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 100, char21._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 100, char21._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y - 150, true)) {
					hitCharUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y + 150, true)) {
					hitCharDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y - 150, true)) {
					hitCharUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y + 150, true)) {
					hitCharDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 150, char21._y - 50, true)) {
					hitCharUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 150, char21._y + 50, true)) {
					hitCharDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 150, char21._y - 50, true)) {
					hitCharUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 150, char21._y + 50, true)) {
					hitCharDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y - 200, true)) {
					hitCharUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y + 200, true)) {
					hitCharDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 50, char21._y - 200, true)) {
					hitCharUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 50, char21._y + 200, true)) {
					hitCharDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 200, char21._y - 50, true)) {
					hitCharUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 200, char21._y + 50, true)) {
					hitCharDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char21._x + 200, char21._y - 50, true)) {
					hitCharUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char21._x - 200, char21._y + 50, true)) {
					hitCharDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseBadChars21() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 21) {
					if (_root['char' + v2].hitTest(char21._x - 50, char21._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 50, char21._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char21._x, char21._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char21._x, char21._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char21._x - 100, char21._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 100, char21._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char21._x, char21._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char21._x, char21._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char21._x - 50, char21._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 50, char21._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 50, char21._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char21._x - 50, char21._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char21._x - 50, char21._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 50, char21._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 50, char21._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char21._x - 50, char21._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char21._x - 100, char21._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 100, char21._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char21._x + 100, char21._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char21._x - 100, char21._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars22() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 100, char22._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 100, char22._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 150, char22._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 150, char22._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 150, char22._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 150, char22._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 200, char22._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 200, char22._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 250, char22._y, true)) {
					hitCharLeft5 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 250, char22._y, true)) {
					hitCharRight5 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y - 250, true)) {
					hitCharUp5 = true;
				}
				if (_root['char' + v2].hitTest(char22._x, char22._y + 250, true)) {
					hitCharDown5 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 100, char22._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 100, char22._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 100, char22._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 100, char22._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y - 150, true)) {
					hitCharUp3Left = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y + 150, true)) {
					hitCharDown3Right = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y - 150, true)) {
					hitCharUp3Right = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y + 150, true)) {
					hitCharDown3Left = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 150, char22._y - 50, true)) {
					hitCharUpLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 150, char22._y + 50, true)) {
					hitCharDownRight3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 150, char22._y - 50, true)) {
					hitCharUpRight3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 150, char22._y + 50, true)) {
					hitCharDownLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y - 200, true)) {
					hitCharUp4Left = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y + 200, true)) {
					hitCharDown4Right = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 50, char22._y - 200, true)) {
					hitCharUp4Right = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 50, char22._y + 200, true)) {
					hitCharDown4Left = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 200, char22._y - 50, true)) {
					hitCharUpLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 200, char22._y + 50, true)) {
					hitCharDownRight4 = true;
				}
				if (_root['char' + v2].hitTest(char22._x + 200, char22._y - 50, true)) {
					hitCharUpRight4 = true;
				}
				if (_root['char' + v2].hitTest(char22._x - 200, char22._y + 50, true)) {
					hitCharDownLeft4 = true;
				}
				++v2;
			}
		}
		function senseBadChars22() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 22) {
					if (_root['char' + v2].hitTest(char22._x - 50, char22._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 50, char22._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char22._x, char22._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char22._x, char22._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char22._x - 100, char22._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 100, char22._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char22._x, char22._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char22._x, char22._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char22._x - 50, char22._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 50, char22._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 50, char22._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char22._x - 50, char22._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char22._x - 50, char22._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 50, char22._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 50, char22._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char22._x - 50, char22._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char22._x - 100, char22._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 100, char22._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char22._x + 100, char22._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char22._x - 100, char22._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars23() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char23._x - 50, char23._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 50, char23._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char23._x, char23._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char23._x, char23._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 100, char23._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 100, char23._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char23._x, char23._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char23._x, char23._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 150, char23._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 150, char23._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char23._x, char23._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char23._x, char23._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 50, char23._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 50, char23._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 50, char23._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 50, char23._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 50, char23._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 50, char23._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 50, char23._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 50, char23._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 100, char23._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 100, char23._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char23._x + 100, char23._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char23._x - 100, char23._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				++v2;
			}
		}
		function senseBadChars23() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 23) {
					if (_root['char' + v2].hitTest(char23._x - 50, char23._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 50, char23._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char23._x, char23._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char23._x, char23._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char23._x - 100, char23._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 100, char23._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char23._x, char23._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char23._x, char23._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char23._x - 50, char23._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 50, char23._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 50, char23._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char23._x - 50, char23._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char23._x - 50, char23._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 50, char23._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 50, char23._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char23._x - 50, char23._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char23._x - 100, char23._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 100, char23._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char23._x + 100, char23._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char23._x - 100, char23._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars24() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char24._x - 50, char24._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 50, char24._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char24._x, char24._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char24._x, char24._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 100, char24._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 100, char24._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char24._x, char24._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char24._x, char24._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 150, char24._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 150, char24._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char24._x, char24._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char24._x, char24._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 50, char24._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 50, char24._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 50, char24._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 50, char24._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 50, char24._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 50, char24._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 50, char24._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 50, char24._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 100, char24._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 100, char24._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char24._x + 100, char24._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char24._x - 100, char24._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				++v2;
			}
		}
		function senseBadChars24() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 24) {
					if (_root['char' + v2].hitTest(char24._x - 50, char24._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 50, char24._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char24._x, char24._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char24._x, char24._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char24._x - 100, char24._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 100, char24._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char24._x, char24._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char24._x, char24._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char24._x - 50, char24._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 50, char24._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 50, char24._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char24._x - 50, char24._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char24._x - 50, char24._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 50, char24._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 50, char24._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char24._x - 50, char24._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char24._x - 100, char24._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 100, char24._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char24._x + 100, char24._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char24._x - 100, char24._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function senseGoodChars25() {
			var v2 = 1;
			while (v2 < 16) {
				if (_root['char' + v2].hitTest(char25._x - 50, char25._y, true)) {
					hitCharLeft = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 50, char25._y, true)) {
					hitCharRight = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y - 50, true)) {
					hitCharUp = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y + 50, true)) {
					hitCharDown = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 100, char25._y, true)) {
					hitCharLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 100, char25._y, true)) {
					hitCharRight2 = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y - 100, true)) {
					hitCharUp2 = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y + 100, true)) {
					hitCharDown2 = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 150, char25._y, true)) {
					hitCharLeft3 = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 150, char25._y, true)) {
					hitCharRight3 = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y - 150, true)) {
					hitCharUp3 = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y + 150, true)) {
					hitCharDown3 = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 200, char25._y, true)) {
					hitCharLeft4 = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 200, char25._y, true)) {
					hitCharRight4 = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y - 200, true)) {
					hitCharUp4 = true;
				}
				if (_root['char' + v2].hitTest(char25._x, char25._y + 200, true)) {
					hitCharDown4 = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 50, char25._y - 50, true)) {
					hitCharUpLeft = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 50, char25._y + 50, true)) {
					hitCharDownRight = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 50, char25._y - 50, true)) {
					hitCharUpRight = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 50, char25._y + 50, true)) {
					hitCharDownLeft = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 50, char25._y - 100, true)) {
					hitCharUp2Left = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 50, char25._y + 100, true)) {
					hitCharDown2Right = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 50, char25._y - 100, true)) {
					hitCharUp2Right = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 50, char25._y + 100, true)) {
					hitCharDown2Left = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 100, char25._y - 50, true)) {
					hitCharUpLeft2 = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 100, char25._y + 50, true)) {
					hitCharDownRight2 = true;
				}
				if (_root['char' + v2].hitTest(char25._x + 100, char25._y - 50, true)) {
					hitCharUpRight2 = true;
				}
				if (_root['char' + v2].hitTest(char25._x - 100, char25._y + 50, true)) {
					hitCharDownLeft2 = true;
				}
				++v2;
			}
		}
		function senseBadChars25() {
			var v2 = 16;
			while (v2 < 26) {
				if (v2 !== 25) {
					if (_root['char' + v2].hitTest(char25._x - 50, char25._y, true)) {
						hitBadLeft = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 50, char25._y, true)) {
						hitBadRight = true;
					}
					if (_root['char' + v2].hitTest(char25._x, char25._y - 50, true)) {
						hitBadUp = true;
					}
					if (_root['char' + v2].hitTest(char25._x, char25._y + 50, true)) {
						hitBadDown = true;
					}
					if (_root['char' + v2].hitTest(char25._x - 100, char25._y, true)) {
						hitBadLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 100, char25._y, true)) {
						hitBadRight2 = true;
					}
					if (_root['char' + v2].hitTest(char25._x, char25._y - 100, true)) {
						hitBadUp2 = true;
					}
					if (_root['char' + v2].hitTest(char25._x, char25._y + 100, true)) {
						hitBadDown2 = true;
					}
					if (_root['char' + v2].hitTest(char25._x - 50, char25._y - 50, true)) {
						hitBadUpLeft = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 50, char25._y + 50, true)) {
						hitBadDownRight = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 50, char25._y - 50, true)) {
						hitBadUpRight = true;
					}
					if (_root['char' + v2].hitTest(char25._x - 50, char25._y + 50, true)) {
						hitBadDownLeft = true;
					}
					if (_root['char' + v2].hitTest(char25._x - 50, char25._y - 100, true)) {
						hitBadUp2Left = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 50, char25._y + 100, true)) {
						hitBadDown2Right = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 50, char25._y - 100, true)) {
						hitBadUp2Right = true;
					}
					if (_root['char' + v2].hitTest(char25._x - 50, char25._y + 100, true)) {
						hitBadDown2Left = true;
					}
					if (_root['char' + v2].hitTest(char25._x - 100, char25._y - 50, true)) {
						hitBadUpLeft2 = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 100, char25._y + 50, true)) {
						hitBadDownRight2 = true;
					}
					if (_root['char' + v2].hitTest(char25._x + 100, char25._y - 50, true)) {
						hitBadUpRight2 = true;
					}
					if (_root['char' + v2].hitTest(char25._x - 100, char25._y + 50, true)) {
						hitBadDownLeft2 = true;
					}
				}
				++v2;
			}
		}
		function loseBattle() {
			if (whichBattle == 'townfight01') {
				_root.gotoAndStop('lostTownFight01');
			}
			if (whichBattle == 'townfight02') {
				_root.gotoAndStop('lostTownFight02');
			}
			if (whichBattle == 'townfight03') {
				_root.gotoAndStop('lostTownFight03');
			}
			if (whichBattle == 'random01A') {
				_root.gotoAndStop('lostBattle01A');
			}
			if (whichBattle == 'random01B') {
				_root.gotoAndStop('lostBattle01B');
			}
			if (whichBattle == 'random01C') {
				_root.gotoAndStop('lostBattle01C');
			}
			if (whichBattle == 'random01D') {
				_root.gotoAndStop('lostBattle01D');
			}
			if (whichBattle == 'random01E') {
				_root.gotoAndStop('lostBattle01E');
			}
			if (whichBattle == 'random01F') {
				_root.gotoAndStop('lostBattle01F');
			}
			if (whichBattle == 'mission02A') {
				_root.gotoAndStop('lostBattle02A');
			}
			if (whichBattle == 'mission02B') {
				_root.gotoAndStop('lostBattle02B');
			}
			if (whichBattle == 'mission03A') {
				_root.gotoAndStop('lostBattle03A');
			}
			if (whichBattle == 'mission03B') {
				_root.gotoAndStop('lostBattle03B');
			}
			if (whichBattle == 'mission03C') {
				_root.gotoAndStop('lostBattle03C');
			}
			if (whichBattle == 'mission04A') {
				_root.gotoAndStop('lostBattle04A');
			}
			if (whichBattle == 'mission04B') {
				_root.gotoAndStop('lostBattle04B');
			}
			if (whichBattle == 'mission04C') {
				_root.gotoAndStop('lostBattle04C');
			}
			if (whichBattle == 'mission05A') {
				_root.gotoAndStop('lostBattle05A');
			}
			if (whichBattle == 'mission05B') {
				_root.gotoAndStop('lostBattle05B');
			}
			if (whichBattle == 'mission05C') {
				_root.gotoAndStop('lostBattle05C');
			}
			if (whichBattle == 'mission05D') {
				_root.gotoAndStop('lostBattle05D');
			}
			if (whichBattle == 'mission05E') {
				_root.gotoAndStop('lostBattle05E');
			}
			if (whichBattle == 'mission05F') {
				_root.gotoAndStop('lostBattle05F');
			}
			if (whichBattle == 'mission05G') {
				_root.gotoAndStop('lostBattle05G');
			}
			if (whichBattle == 'mission06A') {
				_root.gotoAndStop('lostBattle06A');
			}
			if (whichBattle == 'mission06B') {
				_root.gotoAndStop('lostBattle06B');
			}
			if (whichBattle == 'mission06C') {
				_root.gotoAndStop('lostBattle06C');
			}
			if (whichBattle == 'mission06D') {
				_root.gotoAndStop('lostBattle06D');
			}
			if (whichBattle == 'mission06E') {
				_root.gotoAndStop('lostBattle06E');
			}
			if (whichBattle == 'mission07A') {
				_root.gotoAndStop('lostBattle07A');
			}
			if (whichBattle == 'mission07B') {
				_root.gotoAndStop('lostBattle07B');
			}
			if (whichBattle == 'mission07C') {
				_root.gotoAndStop('lostBattle07C');
			}
			if (whichBattle == 'mission08A') {
				_root.gotoAndStop('lostBattle08A');
			}
			if (whichBattle == 'mission08B') {
				_root.gotoAndStop('lostBattle08B');
			}
			if (whichBattle == 'mission08C') {
				_root.gotoAndStop('lostBattle08C');
			}
			if (whichBattle == 'mission08D') {
				_root.gotoAndStop('lostBattle08D');
			}
			if (whichBattle == 'mission08E') {
				_root.gotoAndStop('lostBattle08E');
			}
		}
		function removeDead() {
			if (char1Dead == true) {
				_root.char1.removeMovieClip();
			}
			if (char2Dead == true) {
				_root.char2.removeMovieClip();
			}
			if (char3Dead == true) {
				_root.char3.removeMovieClip();
			}
			if (char4Dead == true) {
				lostBattle = true;
				_root.char4.removeMovieClip();
			}
			if (char5Dead == true) {
				_root.char5.removeMovieClip();
			}
			if (char6Dead == true) {
				_root.char6.removeMovieClip();
			}
			if (char7Dead == true) {
				_root.char7.removeMovieClip();
			}
			if (char8Dead == true) {
				_root.char8.removeMovieClip();
			}
			if (char9Dead == true) {
				_root.char9.removeMovieClip();
				if (whichBattle == 'mission06C' || whichBattle == 'mission06D' || whichBattle == 'mission06E') {
					lostBattle = true;
				}
			}
			if (char10Dead == true) {
				_root.char10.removeMovieClip();
			}
			if (char11Dead == true) {
				_root.char11.removeMovieClip();
			}
			if (char12Dead == true) {
				_root.char12.removeMovieClip();
			}
			if (char13Dead == true) {
				_root.char13.removeMovieClip();
			}
			if (char14Dead == true) {
				_root.char14.removeMovieClip();
			}
			if (char15Dead == true) {
				_root.char15.removeMovieClip();
			}
			if (char16Dead == true) {
				if (whichBattle !== 'mission06E') {
					char16._x -= 1000;
					char16.removeMovieClip();
				}
			}
			if (_root.char17Dead == true) {
				_root.char17._x -= 1000;
				_root.char17.removeMovieClip();
			}
			if (_root.char18Dead == true) {
				_root.char18._x -= 1000;
				_root.char18.removeMovieClip();
			}
			if (_root.char19Dead == true) {
				_root.char19._x -= 1000;
				_root.char19.removeMovieClip();
			}
			if (_root.char20Dead == true) {
				_root.char20._x -= 1000;
				_root.char20.removeMovieClip();
			}
			if (_root.char21Dead == true) {
				_root.char21._x -= 1000;
				_root.char21.removeMovieClip();
			}
			if (_root.char22Dead == true) {
				_root.char22._x -= 1000;
				_root.char22.removeMovieClip();
			}
			if (_root.char23Dead == true) {
				_root.char23._x -= 1000;
				_root.char23.removeMovieClip();
			}
			if (_root.char24Dead == true) {
				_root.char24._x -= 1000;
				_root.char24.removeMovieClip();
			}
			if (_root.char25Dead == true) {
				if (whichBattle !== 'mission08D') {
					_root.char25._x -= 1000;
					_root.char25.removeMovieClip();
				}
			}
			if (whichBattle == 'mission08D' && nelisDead == true) {
				_root.char25._x -= 1000;
				_root.char25.removeMovieClip();
			}
			if (lostBattle == true) {
				loseBattle();
			}
		}
		function changeturns() {
			if (nelisDead !== true) {
				removeDead();
			}
			if (char16Dead == true && char17Dead == true && char18Dead == true && char19Dead == true && char20Dead == true && char21Dead == true && char22Dead == true && char23Dead == true && char24Dead == true && char25Dead == true || whichBattle == 'mission03C' && char18Dead == true && char19Dead == true && char20Dead == true || whichBattle == 'mission04C' && char19Dead == true && char20Dead == true && char25Dead == true || whichBattle == 'mission06E' && char16Dead == true && char22Dead == true && char23Dead == true || whichBattle == 'mission08D' && nelisDead == true) {
				wonBattle = true;
				if (whichBattle == 'tutbattle') {
					gotoAndStop('wonTutBattle');
				}
				if (whichBattle == 'townfight01') {
					gotoAndStop('wonTownFight01');
				}
				if (whichBattle == 'townfight02') {
					gotoAndStop('wonTownFight02');
				}
				if (whichBattle == 'townfight03') {
					gotoAndStop('wonTownFight03');
				}
				if (whichBattle == 'random01A') {
					gotoAndStop('wonBattle01A');
				}
				if (whichBattle == 'random01B') {
					gotoAndStop('wonBattle01B');
				}
				if (whichBattle == 'random01C') {
					gotoAndStop('wonBattle01C');
				}
				if (whichBattle == 'random01D') {
					gotoAndStop('wonBattle01D');
				}
				if (whichBattle == 'random01E') {
					gotoAndStop('wonBattle01E');
				}
				if (whichBattle == 'random01F') {
					gotoAndStop('wonBattle01F');
				}
				if (whichBattle == 'mission02A') {
					gotoAndStop('wonBattle02A');
				}
				if (whichBattle == 'mission02B') {
					gotoAndStop('wonBattle02B');
				}
				if (whichBattle == 'mission03A') {
					gotoAndStop('wonBattle03A');
				}
				if (whichBattle == 'mission03B') {
					gotoAndStop('wonBattle03B');
				}
				if (whichBattle == 'mission03C') {
					gotoAndStop('wonBattle03C');
				}
				if (whichBattle == 'mission04A') {
					gotoAndStop('wonBattle04A');
				}
				if (whichBattle == 'mission04B') {
					gotoAndStop('wonBattle04B');
				}
				if (whichBattle == 'mission04C') {
					gotoAndStop('wonBattle04C');
				}
				if (whichBattle == 'mission05A') {
					gotoAndStop('wonBattle05A');
				}
				if (whichBattle == 'mission05B') {
					gotoAndStop('wonBattle05B');
				}
				if (whichBattle == 'mission05C') {
					gotoAndStop('wonBattle05C');
				}
				if (whichBattle == 'mission05D') {
					gotoAndStop('wonBattle05D');
				}
				if (whichBattle == 'mission05E') {
					gotoAndStop('wonBattle05E');
				}
				if (whichBattle == 'mission05F') {
					gotoAndStop('wonBattle05F');
				}
				if (whichBattle == 'mission05G') {
					gotoAndStop('wonBattle05G');
				}
				if (whichBattle == 'mission06A') {
					gotoAndStop('wonBattle06A');
				}
				if (whichBattle == 'mission06B') {
					gotoAndStop('wonBattle06B');
				}
				if (whichBattle == 'mission06C') {
					gotoAndStop('wonBattle06C');
				}
				if (whichBattle == 'mission06D') {
					gotoAndStop('wonBattle06D');
				}
				if (whichBattle == 'mission06E') {
					gotoAndStop('wonBattle06E');
				}
				if (whichBattle == 'mission07A') {
					gotoAndStop('wonBattle07A');
				}
				if (whichBattle == 'mission07B') {
					gotoAndStop('wonBattle07B');
				}
				if (whichBattle == 'mission07C') {
					gotoAndStop('wonBattle07C');
				}
				if (whichBattle == 'mission08A') {
					gotoAndStop('wonBattle08A');
				}
				if (whichBattle == 'mission08B') {
					gotoAndStop('wonBattle08B');
				}
				if (whichBattle == 'mission08C') {
					gotoAndStop('wonBattle08C');
				}
				if (whichBattle == 'mission08D') {
					gotoAndStop('wonBattle08D');
				}
			}
			if (lostBattle == false && wonBattle == false) {
				if (moveTurn < 25) {
					gainFocus();
					++moveTurn;
					++turnCounter;
					if (_root.moveTurn == 2) {
						currentX = char2._x;
						currentY = char2._y;
						initialX = char2._x;
						initialY = char2._y;
					}
					if (_root.moveTurn == 3) {
						currentX = char3._x;
						currentY = char3._y;
						initialX = char3._x;
						initialY = char3._y;
					}
					if (_root.moveTurn == 4) {
						currentX = char4._x;
						currentY = char4._y;
						initialX = char4._x;
						initialY = char4._y;
					}
					if (_root.moveTurn == 5) {
						currentX = char5._x;
						currentY = char5._y;
						initialX = char5._x;
						initialY = char5._y;
					}
					if (_root.moveTurn == 6) {
						currentX = char6._x;
						currentY = char6._y;
						initialX = char6._x;
						initialY = char6._y;
					}
					if (_root.moveTurn == 7) {
						currentX = char7._x;
						currentY = char7._y;
						initialX = char7._x;
						initialY = char7._y;
					}
					if (_root.moveTurn == 8) {
						currentX = char8._x;
						currentY = char8._y;
						initialX = char8._x;
						initialY = char8._y;
					}
					if (_root.moveTurn == 9) {
						currentX = char9._x;
						currentY = char9._y;
						initialX = char9._x;
						initialY = char9._y;
					}
					displaySelection();
					displayHP();
					displayPsP();
					displayName();
					displayAttackButtons();
				} else {
					if (_root.moveTurn >= 25) {
						moveTurn = 1;
						currentX = char1._x;
						currentY = char1._y;
						initialX = char1._x;
						initialY = char1._y;
						++turnCounter;
						shownHearts = false;
						displaySelection();
						displayHP();
						displayPsP();
						displayName();
						displayAttackButtons();
						if (whichBattle == 'mission08B') {
							displayInfoTastidian();
						}
						if (whichBattle == 'mission08C') {
							displayInfoNelis();
						}
						if (whichBattle !== 'mission06E' || !char16Dead) {
							char16.gotoAndStop(1);
						}
						char17.gotoAndStop(1);
						char18.gotoAndStop(1);
						char19.gotoAndStop(1);
						char20.gotoAndStop(1);
						char21.gotoAndStop(1);
						char22.gotoAndStop(1);
						char23.gotoAndStop(1);
						char24.gotoAndStop(1);
						char25.gotoAndStop(1);
					}
				}
			}
			velocityX = 0;
			velocityY = 0;
			steps = 0;
			displaySteps();
			pspSpent = 0;
			speedIncreased = 0;
			attacked = 0;
			shouldAttack = 0;
			moved = 0;
			moving = false;
			blocked = false;
		}
		function displayName() {
			if (_root.moveTurn == 1) {
				_root.charName = _root.name1;
			}
			if (_root.moveTurn == 2) {
				_root.charName = _root.name2;
			}
			if (_root.moveTurn == 3) {
				_root.charName = _root.name3;
			}
			if (_root.moveTurn == 4) {
				_root.charName = _root.name4;
			}
			if (_root.moveTurn == 5) {
				_root.charName = _root.name5;
			}
			if (_root.moveTurn == 6) {
				_root.charName = _root.name6;
			}
			if (_root.moveTurn == 7) {
				_root.charName = _root.name7;
			}
			if (_root.moveTurn == 8) {
				_root.charName = _root.name8;
			}
			if (_root.moveTurn == 9) {
				_root.charName = _root.name9;
			}
			if (_root.moveTurn == 10) {
				_root.charName = _root.name10;
			}
			if (_root.moveTurn == 11) {
				_root.charName = _root.name11;
			}
			if (_root.moveTurn == 12) {
				_root.charName = _root.name12;
			}
			if (_root.moveTurn == 13) {
				_root.charName = _root.name13;
			}
			if (_root.moveTurn == 14) {
				_root.charName = _root.name14;
			}
			if (_root.moveTurn == 15) {
				_root.charName = _root.name15;
			}
			if (_root.moveTurn == 16) {
				_root.charName = _root.name16;
			}
			if (_root.moveTurn == 17) {
				_root.charName = _root.name17;
			}
			if (_root.moveTurn == 18) {
				_root.charName = _root.name18;
			}
			if (_root.moveTurn == 19) {
				_root.charName = _root.name19;
			}
			if (_root.moveTurn == 20) {
				_root.charName = _root.name20;
			}
			if (_root.moveTurn == 21) {
				_root.charName = _root.name21;
			}
			if (_root.moveTurn == 22) {
				_root.charName = _root.name22;
			}
			if (_root.moveTurn == 23) {
				_root.charName = _root.name23;
			}
			if (_root.moveTurn == 24) {
				_root.charName = _root.name24;
			}
			if (_root.moveTurn == 25) {
				_root.charName = _root.name25;
			}
		}
		function displayAttackInfo() {
			if (_root.currAttackType1 == 'none') {
				_root.battleDisplay.attackButton1.gotoAndStop(1);
			}
			if (_root.currAttackType1 == 'mindblast') {
				_root.battleDisplay.attackButton1.gotoAndStop(2);
			}
			if (_root.currAttackType1 == 'pyroblast') {
				_root.battleDisplay.attackButton1.gotoAndStop(3);
			}
			if (_root.currAttackType1 == 'mindshield' || currAttackType1 == 'farshield') {
				_root.battleDisplay.attackButton1.gotoAndStop(4);
			}
			if (_root.currAttackType1 == 'feedback') {
				_root.battleDisplay.attackButton1.gotoAndStop(5);
			}
			if (_root.currAttackType1 == 'melee') {
				_root.battleDisplay.attackButton1.gotoAndStop(6);
			}
			if (_root.currAttackType1 == 'crossbow') {
				_root.battleDisplay.attackButton1.gotoAndStop(14);
			}
			if (_root.currAttackType1 == 'frostblast') {
				_root.battleDisplay.attackButton1.gotoAndStop(16);
			}
			if (_root.currAttackType1 == 'knife') {
				_root.battleDisplay.attackButton1.gotoAndStop(18);
			}
			if (_root.currAttackType1 == 'fling') {
				_root.battleDisplay.attackButton1.gotoAndStop(20);
			}
			if (_root.currAttackType1 == 'megashield') {
				_root.battleDisplay.attackButton1.gotoAndStop(22);
			}
			if (_root.currAttackType1 == 'pyrohail') {
				_root.battleDisplay.attackButton1.gotoAndStop(24);
			}
			if (_root.currAttackType1 == 'shadowblast') {
				_root.battleDisplay.attackButton1.gotoAndStop(26);
			}
			if (_root.currAttackType1 == 'shadowport1') {
				_root.battleDisplay.attackButton1.gotoAndStop(28);
			}
			if (_root.currAttackType1 == 'shadowport2') {
				_root.battleDisplay.attackButton1.gotoAndStop(30);
			}
			if (_root.currAttackType1 == 'laserblast') {
				_root.battleDisplay.attackButton1.gotoAndStop(32);
			}
			if (_root.currAttackType1 == 'firebreath') {
				_root.battleDisplay.attackButton1.gotoAndStop(34);
			}
			if (_root.currAttackType1 == 'whirlwind') {
				_root.battleDisplay.attackButton1.gotoAndStop(36);
			}
			if (_root.currAttackType1 == 'snakeeyes') {
				_root.battleDisplay.attackButton1.gotoAndStop(38);
			}
			if (_root.currAttackType1 == 'darkvortex') {
				_root.battleDisplay.attackButton1.gotoAndStop(40);
			}
			if (_root.currAttackType1 == 'trickshot') {
				_root.battleDisplay.attackButton1.gotoAndStop(42);
			}
			if (_root.currAttackType1 == 'bigshield') {
				_root.battleDisplay.attackButton1.gotoAndStop(44);
			}
			if (_root.currAttackType1 == 'steamengine') {
				_root.battleDisplay.attackButton1.gotoAndStop(46);
			}
			if (_root.currAttackType1 == 'spinsaw') {
				_root.battleDisplay.attackButton1.gotoAndStop(48);
			}
			if (_root.currAttackType1 == 'frostblast2') {
				_root.battleDisplay.attackButton1.gotoAndStop(50);
			}
			if (_root.currAttackType1 == 'vengeance') {
				_root.battleDisplay.attackButton1.gotoAndStop(52);
			}
			if (_root.currAttackType1 == 'frostshield') {
				_root.battleDisplay.attackButton1.gotoAndStop(54);
			}
			if (_root.currAttackType1 == 'darkbreath') {
				_root.battleDisplay.attackButton1.gotoAndStop(56);
			}
			if (_root.currAttackType1 == 'lightblast') {
				_root.battleDisplay.attackButton1.gotoAndStop(58);
			}
			if (currAttackType1 == 'shockwave' || currAttackType1 == 'holyblast' || currAttackType1 == 'firegate') {
				battleDisplay.attackButton1.gotoAndStop(60);
			}
			if (_root.currAttackType2 == 'none') {
				_root.battleDisplay.attackButton2.gotoAndStop(1);
			}
			if (_root.currAttackType2 == 'mindblast') {
				_root.battleDisplay.attackButton2.gotoAndStop(2);
			}
			if (_root.currAttackType2 == 'pyroblast') {
				_root.battleDisplay.attackButton2.gotoAndStop(3);
			}
			if (_root.currAttackType2 == 'mindshield' || currAttackType2 == 'farshield') {
				_root.battleDisplay.attackButton2.gotoAndStop(4);
			}
			if (_root.currAttackType2 == 'feedback') {
				_root.battleDisplay.attackButton2.gotoAndStop(5);
			}
			if (_root.currAttackType2 == 'melee') {
				_root.battleDisplay.attackButton2.gotoAndStop(6);
			}
			if (_root.currAttackType2 == 'crossbow') {
				_root.battleDisplay.attackButton2.gotoAndStop(14);
			}
			if (_root.currAttackType2 == 'frostblast') {
				_root.battleDisplay.attackButton2.gotoAndStop(16);
			}
			if (_root.currAttackType2 == 'knife') {
				_root.battleDisplay.attackButton2.gotoAndStop(18);
			}
			if (_root.currAttackType2 == 'fling') {
				_root.battleDisplay.attackButton2.gotoAndStop(20);
			}
			if (_root.currAttackType2 == 'megashield') {
				_root.battleDisplay.attackButton2.gotoAndStop(22);
			}
			if (_root.currAttackType2 == 'pyrohail') {
				_root.battleDisplay.attackButton2.gotoAndStop(24);
			}
			if (_root.currAttackType2 == 'shadowblast') {
				_root.battleDisplay.attackButton2.gotoAndStop(26);
			}
			if (_root.currAttackType2 == 'shadowport1') {
				_root.battleDisplay.attackButton2.gotoAndStop(28);
			}
			if (_root.currAttackType2 == 'shadowport2') {
				_root.battleDisplay.attackButton2.gotoAndStop(30);
			}
			if (_root.currAttackType2 == 'laserblast') {
				_root.battleDisplay.attackButton2.gotoAndStop(32);
			}
			if (_root.currAttackType2 == 'firebreath') {
				_root.battleDisplay.attackButton2.gotoAndStop(34);
			}
			if (_root.currAttackType2 == 'whirlwind') {
				_root.battleDisplay.attackButton2.gotoAndStop(36);
			}
			if (_root.currAttackType2 == 'snakeeyes') {
				_root.battleDisplay.attackButton2.gotoAndStop(38);
			}
			if (_root.currAttackType2 == 'darkvortex') {
				_root.battleDisplay.attackButton2.gotoAndStop(40);
			}
			if (_root.currAttackType2 == 'trickshot') {
				_root.battleDisplay.attackButton2.gotoAndStop(42);
			}
			if (_root.currAttackType2 == 'bigshield') {
				_root.battleDisplay.attackButton2.gotoAndStop(44);
			}
			if (_root.currAttackType2 == 'steamengine') {
				_root.battleDisplay.attackButton2.gotoAndStop(46);
			}
			if (_root.currAttackType2 == 'spinsaw') {
				_root.battleDisplay.attackButton2.gotoAndStop(48);
			}
			if (_root.currAttackType2 == 'frostblast2') {
				_root.battleDisplay.attackButton2.gotoAndStop(50);
			}
			if (_root.currAttackType2 == 'vengeance') {
				_root.battleDisplay.attackButton2.gotoAndStop(52);
			}
			if (_root.currAttackType2 == 'frostshield') {
				_root.battleDisplay.attackButton2.gotoAndStop(54);
			}
			if (_root.currAttackType2 == 'darkbreath') {
				_root.battleDisplay.attackButton2.gotoAndStop(56);
			}
			if (_root.currAttackType2 == 'lightblast') {
				_root.battleDisplay.attackButton2.gotoAndStop(58);
			}
			if (currAttackType2 == 'shockwave' || currAttackType2 == 'holyblast' || currAttackType2 == 'firegate') {
				battleDisplay.attackButton2.gotoAndStop(60);
			}
			if (_root.currAttackType3 == 'none') {
				_root.battleDisplay.attackButton3.gotoAndStop(1);
			}
			if (_root.currAttackType3 == 'mindblast') {
				_root.battleDisplay.attackButton3.gotoAndStop(2);
			}
			if (_root.currAttackType3 == 'pyroblast') {
				_root.battleDisplay.attackButton3.gotoAndStop(3);
			}
			if (_root.currAttackType3 == 'mindshield' || currAttackType3 == 'farshield') {
				_root.battleDisplay.attackButton3.gotoAndStop(4);
			}
			if (_root.currAttackType3 == 'feedback') {
				_root.battleDisplay.attackButton3.gotoAndStop(5);
			}
			if (_root.currAttackType3 == 'melee') {
				_root.battleDisplay.attackButton3.gotoAndStop(6);
			}
			if (_root.currAttackType3 == 'crossbow') {
				_root.battleDisplay.attackButton3.gotoAndStop(14);
			}
			if (_root.currAttackType3 == 'frostblast') {
				_root.battleDisplay.attackButton3.gotoAndStop(16);
			}
			if (_root.currAttackType3 == 'knife') {
				_root.battleDisplay.attackButton3.gotoAndStop(18);
			}
			if (_root.currAttackType3 == 'fling') {
				_root.battleDisplay.attackButton3.gotoAndStop(20);
			}
			if (_root.currAttackType3 == 'megashield') {
				_root.battleDisplay.attackButton3.gotoAndStop(22);
			}
			if (_root.currAttackType3 == 'pyrohail') {
				_root.battleDisplay.attackButton3.gotoAndStop(24);
			}
			if (_root.currAttackType3 == 'shadowblast') {
				_root.battleDisplay.attackButton3.gotoAndStop(26);
			}
			if (_root.currAttackType3 == 'shadowport1') {
				_root.battleDisplay.attackButton3.gotoAndStop(28);
			}
			if (_root.currAttackType3 == 'shadowport2') {
				_root.battleDisplay.attackButton3.gotoAndStop(30);
			}
			if (_root.currAttackType3 == 'laserblast') {
				_root.battleDisplay.attackButton3.gotoAndStop(32);
			}
			if (_root.currAttackType3 == 'firebreath') {
				_root.battleDisplay.attackButton3.gotoAndStop(34);
			}
			if (_root.currAttackType3 == 'whirlwind') {
				_root.battleDisplay.attackButton3.gotoAndStop(36);
			}
			if (_root.currAttackType3 == 'snakeeyes') {
				_root.battleDisplay.attackButton3.gotoAndStop(38);
			}
			if (_root.currAttackType3 == 'darkvortex') {
				_root.battleDisplay.attackButton3.gotoAndStop(40);
			}
			if (_root.currAttackType3 == 'trickshot') {
				_root.battleDisplay.attackButton3.gotoAndStop(42);
			}
			if (_root.currAttackType3 == 'bigshield') {
				_root.battleDisplay.attackButton3.gotoAndStop(44);
			}
			if (_root.currAttackType3 == 'steamengine') {
				_root.battleDisplay.attackButton3.gotoAndStop(46);
			}
			if (_root.currAttackType3 == 'spinsaw') {
				_root.battleDisplay.attackButton3.gotoAndStop(48);
			}
			if (_root.currAttackType3 == 'frostblast2') {
				_root.battleDisplay.attackButton3.gotoAndStop(50);
			}
			if (_root.currAttackType3 == 'vengeance') {
				_root.battleDisplay.attackButton3.gotoAndStop(52);
			}
			if (_root.currAttackType3 == 'frostshield') {
				_root.battleDisplay.attackButton3.gotoAndStop(54);
			}
			if (_root.currAttackType3 == 'darkbreath') {
				_root.battleDisplay.attackButton3.gotoAndStop(56);
			}
			if (_root.currAttackType3 == 'lightblast') {
				_root.battleDisplay.attackButton3.gotoAndStop(58);
			}
			if (currAttackType3 == 'shockwave' || currAttackType3 == 'holyblast' || currAttackType3 == 'firegate') {
				battleDisplay.attackButton3.gotoAndStop(60);
			}
			if (_root.currAttackType4 == 'none') {
				_root.battleDisplay.attackButton4.gotoAndStop(1);
			}
			if (_root.currAttackType4 == 'mindblast') {
				_root.battleDisplay.attackButton4.gotoAndStop(2);
			}
			if (_root.currAttackType4 == 'pyroblast') {
				_root.battleDisplay.attackButton4.gotoAndStop(3);
			}
			if (_root.currAttackType4 == 'mindshield' || currAttackType4 == 'farshield') {
				_root.battleDisplay.attackButton4.gotoAndStop(4);
			}
			if (_root.currAttackType4 == 'feedback') {
				_root.battleDisplay.attackButton4.gotoAndStop(5);
			}
			if (_root.currAttackType4 == 'melee') {
				_root.battleDisplay.attackButton4.gotoAndStop(6);
			}
			if (_root.currAttackType4 == 'crossbow') {
				_root.battleDisplay.attackButton4.gotoAndStop(14);
			}
			if (_root.currAttackType4 == 'frostblast') {
				_root.battleDisplay.attackButton4.gotoAndStop(16);
			}
			if (_root.currAttackType4 == 'knife') {
				_root.battleDisplay.attackButton4.gotoAndStop(18);
			}
			if (_root.currAttackType4 == 'fling') {
				_root.battleDisplay.attackButton4.gotoAndStop(20);
			}
			if (_root.currAttackType4 == 'megashield') {
				_root.battleDisplay.attackButton4.gotoAndStop(22);
			}
			if (_root.currAttackType4 == 'pyrohail') {
				_root.battleDisplay.attackButton4.gotoAndStop(24);
			}
			if (_root.currAttackType4 == 'shadowblast') {
				_root.battleDisplay.attackButton4.gotoAndStop(26);
			}
			if (_root.currAttackType4 == 'shadowport1') {
				_root.battleDisplay.attackButton4.gotoAndStop(28);
			}
			if (_root.currAttackType4 == 'shadowport2') {
				_root.battleDisplay.attackButton4.gotoAndStop(30);
			}
			if (_root.currAttackType4 == 'laserblast') {
				_root.battleDisplay.attackButton4.gotoAndStop(32);
			}
			if (_root.currAttackType4 == 'firebreath') {
				_root.battleDisplay.attackButton4.gotoAndStop(34);
			}
			if (_root.currAttackType4 == 'whirlwind') {
				_root.battleDisplay.attackButton4.gotoAndStop(36);
			}
			if (_root.currAttackType4 == 'snakeeyes') {
				_root.battleDisplay.attackButton4.gotoAndStop(38);
			}
			if (_root.currAttackType4 == 'darkvortex') {
				_root.battleDisplay.attackButton4.gotoAndStop(40);
			}
			if (_root.currAttackType4 == 'trickshot') {
				_root.battleDisplay.attackButton4.gotoAndStop(42);
			}
			if (_root.currAttackType4 == 'bigshield') {
				_root.battleDisplay.attackButton4.gotoAndStop(44);
			}
			if (_root.currAttackType4 == 'steamengine') {
				_root.battleDisplay.attackButton4.gotoAndStop(46);
			}
			if (_root.currAttackType4 == 'spinsaw') {
				_root.battleDisplay.attackButton4.gotoAndStop(48);
			}
			if (_root.currAttackType4 == 'frostblast2') {
				_root.battleDisplay.attackButton4.gotoAndStop(50);
			}
			if (_root.currAttackType4 == 'vengeance') {
				_root.battleDisplay.attackButton4.gotoAndStop(52);
			}
			if (_root.currAttackType4 == 'frostshield') {
				_root.battleDisplay.attackButton4.gotoAndStop(54);
			}
			if (_root.currAttackType4 == 'darkbreath') {
				_root.battleDisplay.attackButton4.gotoAndStop(56);
			}
			if (_root.currAttackType4 == 'lightblast') {
				_root.battleDisplay.attackButton4.gotoAndStop(58);
			}
			if (currAttackType4 == 'shockwave' || currAttackType4 == 'holyblast' || currAttackType4 == 'firegate') {
				battleDisplay.attackButton4.gotoAndStop(60);
			}
		}
		function displayAttackButtons() {
			if (_root.moveTurn == 1) {
				_root.currAttackType1 = _root.char1AttackType1;
				_root.currAttackType2 = _root.char1AttackType2;
				_root.currAttackType3 = _root.char1AttackType3;
				_root.currAttackType4 = _root.char1AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 2) {
				_root.currAttackType1 = _root.char2AttackType1;
				_root.currAttackType2 = _root.char2AttackType2;
				_root.currAttackType3 = _root.char2AttackType3;
				_root.currAttackType4 = _root.char2AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 3) {
				_root.currAttackType1 = _root.char3AttackType1;
				_root.currAttackType2 = _root.char3AttackType2;
				_root.currAttackType3 = _root.char3AttackType3;
				_root.currAttackType4 = _root.char3AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 4) {
				_root.currAttackType1 = _root.char4AttackType1;
				_root.currAttackType2 = _root.char4AttackType2;
				_root.currAttackType3 = _root.char4AttackType3;
				_root.currAttackType4 = _root.char4AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 5) {
				_root.currAttackType1 = _root.char5AttackType1;
				_root.currAttackType2 = _root.char5AttackType2;
				_root.currAttackType3 = _root.char5AttackType3;
				_root.currAttackType4 = _root.char5AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 6) {
				_root.currAttackType1 = _root.char6AttackType1;
				_root.currAttackType2 = _root.char6AttackType2;
				_root.currAttackType3 = _root.char6AttackType3;
				_root.currAttackType4 = _root.char6AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 7) {
				_root.currAttackType1 = _root.char7AttackType1;
				_root.currAttackType2 = _root.char7AttackType2;
				_root.currAttackType3 = _root.char7AttackType3;
				_root.currAttackType4 = _root.char7AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 8) {
				_root.currAttackType1 = _root.char8AttackType1;
				_root.currAttackType2 = _root.char8AttackType2;
				_root.currAttackType3 = _root.char8AttackType3;
				_root.currAttackType4 = _root.char8AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 9) {
				_root.currAttackType1 = _root.char9AttackType1;
				_root.currAttackType2 = _root.char9AttackType2;
				_root.currAttackType3 = _root.char9AttackType3;
				_root.currAttackType4 = _root.char9AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 10) {
				_root.currAttackType1 = _root.char10AttackType1;
				_root.currAttackType2 = _root.char10AttackType2;
				_root.currAttackType3 = _root.char10AttackType3;
				_root.currAttackType4 = _root.char10AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 11) {
				_root.currAttackType1 = _root.char11AttackType1;
				_root.currAttackType2 = _root.char11AttackType2;
				_root.currAttackType3 = _root.char11AttackType3;
				_root.currAttackType4 = _root.char11AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 12) {
				_root.currAttackType1 = _root.char12AttackType1;
				_root.currAttackType2 = _root.char12AttackType2;
				_root.currAttackType3 = _root.char12AttackType3;
				_root.currAttackType4 = _root.char12AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 13) {
				_root.currAttackType1 = _root.char13AttackType1;
				_root.currAttackType2 = _root.char13AttackType2;
				_root.currAttackType3 = _root.char13AttackType3;
				_root.currAttackType4 = _root.char13AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 14) {
				_root.currAttackType1 = _root.char14AttackType1;
				_root.currAttackType2 = _root.char14AttackType2;
				_root.currAttackType3 = _root.char14AttackType3;
				_root.currAttackType4 = _root.char14AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 15) {
				_root.currAttackType1 = _root.char15AttackType1;
				_root.currAttackType2 = _root.char15AttackType2;
				_root.currAttackType3 = _root.char15AttackType3;
				_root.currAttackType4 = _root.char15AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 16) {
				_root.currAttackType1 = _root.char16AttackType1;
				_root.currAttackType2 = _root.char16AttackType2;
				_root.currAttackType3 = _root.char16AttackType3;
				_root.currAttackType4 = _root.char16AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 17) {
				_root.currAttackType1 = _root.char17AttackType1;
				_root.currAttackType2 = _root.char17AttackType2;
				_root.currAttackType3 = _root.char17AttackType3;
				_root.currAttackType4 = _root.char17AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 18) {
				_root.currAttackType1 = _root.char18AttackType1;
				_root.currAttackType2 = _root.char18AttackType2;
				_root.currAttackType3 = _root.char18AttackType3;
				_root.currAttackType4 = _root.char18AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 19) {
				_root.currAttackType1 = _root.char19AttackType1;
				_root.currAttackType2 = _root.char19AttackType2;
				_root.currAttackType3 = _root.char19AttackType3;
				_root.currAttackType4 = _root.char19AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 20) {
				_root.currAttackType1 = _root.char20AttackType1;
				_root.currAttackType2 = _root.char20AttackType2;
				_root.currAttackType3 = _root.char20AttackType3;
				_root.currAttackType4 = _root.char20AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 21) {
				_root.currAttackType1 = _root.char21AttackType1;
				_root.currAttackType2 = _root.char21AttackType2;
				_root.currAttackType3 = _root.char21AttackType3;
				_root.currAttackType4 = _root.char21AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 22) {
				_root.currAttackType1 = _root.char22AttackType1;
				_root.currAttackType2 = _root.char22AttackType2;
				_root.currAttackType3 = _root.char22AttackType3;
				_root.currAttackType4 = _root.char22AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 23) {
				_root.currAttackType1 = _root.char23AttackType1;
				_root.currAttackType2 = _root.char23AttackType2;
				_root.currAttackType3 = _root.char23AttackType3;
				_root.currAttackType4 = _root.char23AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 24) {
				_root.currAttackType1 = _root.char24AttackType1;
				_root.currAttackType2 = _root.char24AttackType2;
				_root.currAttackType3 = _root.char24AttackType3;
				_root.currAttackType4 = _root.char24AttackType4;
				displayAttackInfo();
			}
			if (_root.moveTurn == 25) {
				_root.currAttackType1 = _root.char25AttackType1;
				_root.currAttackType2 = _root.char25AttackType2;
				_root.currAttackType3 = _root.char25AttackType3;
				_root.currAttackType4 = _root.char25AttackType4;
				displayAttackInfo();
			}
		}
		function displayHP() {
			if (_root.moveTurn == 1) {
				if (char1Damage < 0) {
					char1Damage = 0;
				}
				_root.charHP = MaxHP1 - char1Damage;
				_root.charMaxHP = MaxHP1;
			}
			if (_root.moveTurn == 2) {
				if (char2Damage < 0) {
					char2Damage = 0;
				}
				_root.charHP = MaxHP2 - char2Damage;
				_root.charMaxHP = MaxHP2;
			}
			if (_root.moveTurn == 3) {
				if (char3Damage < 0) {
					char3Damage = 0;
				}
				_root.charHP = MaxHP3 - char3Damage;
				_root.charMaxHP = MaxHP3;
			}
			if (_root.moveTurn == 4) {
				if (char4Damage < 0) {
					char4Damage = 0;
				}
				_root.charHP = MaxHP4 - char4Damage;
				_root.charMaxHP = MaxHP4;
			}
			if (_root.moveTurn == 5) {
				if (char5Damage < 0) {
					char5Damage = 0;
				}
				_root.charHP = MaxHP5 - char5Damage;
				_root.charMaxHP = MaxHP5;
			}
			if (_root.moveTurn == 6) {
				if (char6Damage < 0) {
					char6Damage = 0;
				}
				_root.charHP = MaxHP6 - char6Damage;
				_root.charMaxHP = MaxHP6;
			}
			if (_root.moveTurn == 7) {
				if (char7Damage < 0) {
					char7Damage = 0;
				}
				_root.charHP = MaxHP7 - char7Damage;
				_root.charMaxHP = MaxHP7;
			}
			if (_root.moveTurn == 8) {
				if (char8Damage < 0) {
					char8Damage = 0;
				}
				_root.charHP = MaxHP8 - char8Damage;
				_root.charMaxHP = MaxHP8;
			}
			if (_root.moveTurn == 9) {
				if (char9Damage < 0) {
					char9Damage = 0;
				}
				_root.charHP = MaxHP9 - char9Damage;
				_root.charMaxHP = MaxHP9;
			}
			if (_root.moveTurn == 10) {
				if (char10Damage < 0) {
					char10Damage = 0;
				}
				_root.charHP = MaxHP10 - char10Damage;
				_root.charMaxHP = MaxHP10;
			}
			if (_root.moveTurn == 11) {
				if (char11Damage < 0) {
					char11Damage = 0;
				}
				_root.charHP = MaxHP11 - char11Damage;
				_root.charMaxHP = MaxHP11;
			}
			if (_root.moveTurn == 12) {
				if (char12Damage < 0) {
					char12Damage = 0;
				}
				_root.charHP = MaxHP12 - char12Damage;
				_root.charMaxHP = MaxHP12;
			}
			if (_root.moveTurn == 13) {
				if (char13Damage < 0) {
					char13Damage = 0;
				}
				_root.charHP = MaxHP13 - char13Damage;
				_root.charMaxHP = MaxHP13;
			}
			if (_root.moveTurn == 14) {
				if (char14Damage < 0) {
					char14Damage = 0;
				}
				_root.charHP = MaxHP14 - char14Damage;
				_root.charMaxHP = MaxHP14;
			}
			if (_root.moveTurn == 15) {
				if (char15Damage < 0) {
					char15Damage = 0;
				}
				_root.charHP = MaxHP15 - char15Damage;
				_root.charMaxHP = MaxHP15;
			}
			if (_root.moveTurn == 16) {
				if (char16Damage < 0) {
					char16Damage = 0;
				}
				_root.charHP = MaxHP16 - char16Damage;
				_root.charMaxHP = MaxHP16;
			}
			if (_root.moveTurn == 17) {
				if (char17Damage < 0) {
					char17Damage = 0;
				}
				_root.charHP = MaxHP17 - char17Damage;
				_root.charMaxHP = MaxHP17;
			}
			if (_root.moveTurn == 18) {
				if (char18Damage < 0) {
					char18Damage = 0;
				}
				_root.charHP = MaxHP18 - char18Damage;
				_root.charMaxHP = MaxHP18;
			}
			if (_root.moveTurn == 19) {
				if (char19Damage < 0) {
					char19Damage = 0;
				}
				_root.charHP = MaxHP19 - char19Damage;
				_root.charMaxHP = MaxHP19;
			}
			if (_root.moveTurn == 20) {
				if (char20Damage < 0) {
					char20Damage = 0;
				}
				_root.charHP = MaxHP20 - char20Damage;
				_root.charMaxHP = MaxHP20;
			}
			if (_root.moveTurn == 21) {
				if (char21Damage < 0) {
					char21Damage = 0;
				}
				_root.charHP = MaxHP21 - char21Damage;
				_root.charMaxHP = MaxHP21;
			}
			if (_root.moveTurn == 22) {
				if (char22Damage < 0) {
					char22Damage = 0;
				}
				_root.charHP = MaxHP22 - char22Damage;
				_root.charMaxHP = MaxHP22;
			}
			if (_root.moveTurn == 23) {
				if (char23Damage < 0) {
					char23Damage = 0;
				}
				_root.charHP = MaxHP23 - char23Damage;
				_root.charMaxHP = MaxHP23;
			}
			if (_root.moveTurn == 24) {
				if (char24Damage < 0) {
					char24Damage = 0;
				}
				_root.charHP = MaxHP24 - char24Damage;
				_root.charMaxHP = MaxHP24;
			}
			if (_root.moveTurn == 25) {
				if (whichBattle !== 'mission08B' && whichBattle !== 'mission08D') {
					if (char25Damage < 0) {
						char25Damage = 0;
					}
					_root.charHP = MaxHP25 - char25Damage;
					_root.charMaxHP = MaxHP25;
				}
				if (whichBattle == 'mission08B' || whichBattle == 'mission08D') {
					charHP = 999;
					charMaxHP = 999;
				}
			}
			if (charHP < 0) {
				charHP = 0;
			}
		}
		function displayPsP() {
			if (_root.moveTurn == 1) {
				_root.charPsP = MaxPsP1 - char1Drain;
				_root.charMaxPsP = MaxPsP1;
				if (char1Drain < 0) {
					char1Drain = 0;
				}
			}
			if (_root.moveTurn == 2) {
				_root.charPsP = MaxPsP2 - char2Drain;
				_root.charMaxPsP = MaxPsP2;
				if (char2Drain < 0) {
					char2Drain = 0;
				}
			}
			if (_root.moveTurn == 3) {
				_root.charPsP = MaxPsP3 - char3Drain;
				_root.charMaxPsP = MaxPsP3;
				if (char3Drain < 0) {
					char3Drain = 0;
				}
			}
			if (_root.moveTurn == 4) {
				_root.charPsP = MaxPsP4 - char4Drain;
				_root.charMaxPsP = MaxPsP4;
				if (char4Drain < 0) {
					char4Drain = 0;
				}
			}
			if (_root.moveTurn == 5) {
				_root.charPsP = MaxPsP5 - char5Drain;
				_root.charMaxPsP = MaxPsP5;
				if (char5Drain < 0) {
					char5Drain = 0;
				}
			}
			if (_root.moveTurn == 6) {
				_root.charPsP = MaxPsP6 - char6Drain;
				_root.charMaxPsP = MaxPsP6;
				if (char6Drain < 0) {
					char6Drain = 0;
				}
			}
			if (_root.moveTurn == 7) {
				_root.charPsP = MaxPsP7 - char7Drain;
				_root.charMaxPsP = MaxPsP7;
				if (char7Drain < 0) {
					char7Drain = 0;
				}
			}
			if (_root.moveTurn == 8) {
				_root.charPsP = MaxPsP8 - char8Drain;
				_root.charMaxPsP = MaxPsP8;
				if (char8Drain < 0) {
					char8Drain = 0;
				}
			}
			if (_root.moveTurn == 9) {
				_root.charPsP = MaxPsP9 - char9Drain;
				_root.charMaxPsP = MaxPsP9;
				if (char9Drain < 0) {
					char9Drain = 0;
				}
			}
			if (_root.moveTurn == 10) {
				_root.charPsP = MaxPsP10 - char10Drain;
				_root.charMaxPsP = MaxPsP10;
				if (char10Drain < 0) {
					char10Drain = 0;
				}
			}
			if (_root.moveTurn == 11) {
				_root.charPsP = MaxPsP11 - char11Drain;
				_root.charMaxPsP = MaxPsP11;
				if (char11Drain < 0) {
					char11Drain = 0;
				}
			}
			if (_root.moveTurn == 12) {
				_root.charPsP = MaxPsP12 - char12Drain;
				_root.charMaxPsP = MaxPsP12;
				if (char12Drain < 0) {
					char12Drain = 0;
				}
			}
			if (_root.moveTurn == 13) {
				_root.charPsP = MaxPsP13 - char13Drain;
				_root.charMaxPsP = MaxPsP13;
				if (char13Drain < 0) {
					char13Drain = 0;
				}
			}
			if (_root.moveTurn == 14) {
				_root.charPsP = MaxPsP14 - char14Drain;
				_root.charMaxPsP = MaxPsP14;
				if (char14Drain < 0) {
					char14Drain = 0;
				}
			}
			if (_root.moveTurn == 15) {
				_root.charPsP = MaxPsP15 - char15Drain;
				_root.charMaxPsP = MaxPsP15;
				if (char15Drain < 0) {
					char15Drain = 0;
				}
			}
			if (_root.moveTurn == 16) {
				_root.charPsP = MaxPsP16 - char16Drain;
				_root.charMaxPsP = MaxPsP16;
				if (char16Drain < 0) {
					char16Drain = 0;
				}
			}
			if (_root.moveTurn == 17) {
				_root.charPsP = MaxPsP17 - char17Drain;
				_root.charMaxPsP = MaxPsP17;
				if (char17Drain < 0) {
					char17Drain = 0;
				}
			}
			if (_root.moveTurn == 18) {
				_root.charPsP = MaxPsP18 - char18Drain;
				_root.charMaxPsP = MaxPsP18;
				if (char18Drain < 0) {
					char18Drain = 0;
				}
			}
			if (_root.moveTurn == 19) {
				_root.charPsP = MaxPsP19 - char19Drain;
				_root.charMaxPsP = MaxPsP19;
				if (char19Drain < 0) {
					char19Drain = 0;
				}
			}
			if (_root.moveTurn == 20) {
				_root.charPsP = MaxPsP20 - char20Drain;
				_root.charMaxPsP = MaxPsP20;
				if (char20Drain < 0) {
					char20Drain = 0;
				}
			}
			if (_root.moveTurn == 21) {
				_root.charPsP = MaxPsP21 - char21Drain;
				_root.charMaxPsP = MaxPsP21;
				if (char21Drain < 0) {
					char21Drain = 0;
				}
			}
			if (_root.moveTurn == 22) {
				_root.charPsP = MaxPsP22 - char22Drain;
				_root.charMaxPsP = MaxPsP22;
				if (char22Drain < 0) {
					char22Drain = 0;
				}
			}
			if (_root.moveTurn == 23) {
				_root.charPsP = MaxPsP23 - char23Drain;
				_root.charMaxPsP = MaxPsP23;
				if (char23Drain < 0) {
					char23Drain = 0;
				}
			}
			if (_root.moveTurn == 24) {
				_root.charPsP = MaxPsP24 - char24Drain;
				_root.charMaxPsP = MaxPsP24;
				if (char24Drain < 0) {
					char24Drain = 0;
				}
			}
			if (_root.moveTurn == 25) {
				if (whichBattle !== 'mission08B' && whichBattle !== 'mission08D') {
					charPsP = MaxPsP25 - char25Drain;
					charMaxPsP = MaxPsP25;
					if (char25Drain < 0) {
						char25Drain = 0;
					}
				}
				if (whichBattle == 'mission08B' || whichBattle == 'mission08D') {
					charPsP = 99;
					charMaxPsP = 99;
				}
			}
			if (charPsP < 0) {
				charPsP = 0;
			}
			if (charPsP > charMaxPsP) {
				charPsP = charMaxPsP;
			}
		}
		function gainFocus() {
			if (moveTurn == 1) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char1Drain -= focus;
				if (char1Drain < 0) {
					char1Drain = 0;
				}
			}
			if (moveTurn == 2) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char2Drain -= focus;
				if (char2Drain < 0) {
					char2Drain = 0;
				}
			}
			if (moveTurn == 3) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char3Drain -= focus;
				if (char3Drain < 0) {
					char3Drain = 0;
				}
			}
			if (moveTurn == 4) {
				if (steps == 0 && attacked == 0) {
					if (hyperFocus == true) {
						focus = 10;
					} else {
						focus = 3;
					}
				}
				if (steps > 0 && attacked == 0) {
					if (hyperFocus == true) {
						focus = 5;
					} else {
						focus = 1;
					}
				}
				if (attacked == 1) {
					focus = 0;
				}
				char4Drain -= focus;
				if (char4Drain < 0) {
					char4Drain = 0;
				}
			}
			if (moveTurn == 5) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char5Drain -= focus;
				if (char5Drain < 0) {
					char5Drain = 0;
				}
			}
			if (moveTurn == 6) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char6Drain -= focus;
				if (char6Drain < 0) {
					char6Drain = 0;
				}
			}
			if (moveTurn == 7) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char7Drain -= focus;
				if (char7Drain < 0) {
					char7Drain = 0;
				}
			}
			if (moveTurn == 8) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char8Drain -= focus;
				if (char8Drain < 0) {
					char8Drain = 0;
				}
			}
			if (moveTurn == 9) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char9Drain -= focus;
				if (char9Drain < 0) {
					char9Drain = 0;
				}
			}
			if (moveTurn == 10) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char10Drain -= focus;
				if (char10Drain < 0) {
					char10Drain = 0;
				}
			}
			if (moveTurn == 11) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char11Drain -= focus;
				if (char11Drain < 0) {
					char11Drain = 0;
				}
			}
			if (moveTurn == 12) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char12Drain -= focus;
				if (char12Drain < 0) {
					char12Drain = 0;
				}
			}
			if (moveTurn == 13) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char13Drain -= focus;
				if (char13Drain < 0) {
					char13Drain = 0;
				}
			}
			if (moveTurn == 14) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char14Drain -= focus;
				if (char14Drain < 0) {
					char14Drain = 0;
				}
			}
			if (moveTurn == 15) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char15Drain -= focus;
				if (char15Drain < 0) {
					char15Drain = 0;
				}
			}
			if (moveTurn > 15) {
			}
		}
		function displaySteps() {
			if (moveTurn == 1) {
				if (steps > MaxSteps1 + 1) {
					steps = MaxSteps1 + 1;
				}
				charSteps = MaxSteps1 - steps;
				charMaxSteps = MaxSteps1;
			}
			if (moveTurn == 2) {
				if (steps > MaxSteps2 + 1) {
					steps = MaxSteps2 + 1;
				}
				charSteps = MaxSteps2 - steps;
				charMaxSteps = MaxSteps2;
			}
			if (moveTurn == 3) {
				if (steps > MaxSteps3 + 1) {
					steps = MaxSteps3 + 1;
				}
				charSteps = MaxSteps3 - steps;
				charMaxSteps = MaxSteps3;
			}
			if (moveTurn == 4) {
				if (steps > MaxSteps4 + 1) {
					steps = MaxSteps4 + 1;
				}
				charSteps = MaxSteps4 - steps;
				charMaxSteps = MaxSteps4;
			}
			if (moveTurn == 5) {
				if (steps > MaxSteps5 + 1) {
					steps = MaxSteps5 + 1;
				}
				charSteps = MaxSteps5 - steps;
				charMaxSteps = MaxSteps5;
			}
			if (moveTurn == 6) {
				if (steps > MaxSteps6 + 1) {
					steps = MaxSteps6 + 1;
				}
				charSteps = MaxSteps6 - steps;
				charMaxSteps = MaxSteps6;
			}
			if (moveTurn == 7) {
				if (steps > MaxSteps7 + 1) {
					steps = MaxSteps7 + 1;
				}
				charSteps = MaxSteps7 - steps;
				charMaxSteps = MaxSteps7;
			}
			if (moveTurn == 8) {
				if (steps > MaxSteps8 + 1) {
					steps = MaxSteps8 + 1;
				}
				charSteps = MaxSteps8 - steps;
				charMaxSteps = MaxSteps8;
			}
			if (moveTurn == 9) {
				if (steps > MaxSteps9 + 1) {
					steps = MaxSteps9 + 1;
				}
				charSteps = MaxSteps9 - steps;
				charMaxSteps = MaxSteps9;
			}
			if (moveTurn == 10) {
				_root.charSteps = MaxSteps10 - _root.steps;
			}
			if (moveTurn == 11) {
				_root.charSteps = MaxSteps11 - _root.steps;
			}
			if (moveTurn == 12) {
				_root.charSteps = MaxSteps12 - _root.steps;
			}
			if (_root.moveTurn == 13) {
				_root.charSteps = MaxSteps13 - _root.steps;
			}
			if (_root.moveTurn == 14) {
				_root.charSteps = MaxSteps14 - _root.steps;
			}
			if (_root.moveTurn == 15) {
				_root.charSteps = MaxSteps15 - _root.steps;
			}
			if (moveTurn == 16) {
				charSteps = MaxSteps16 - steps;
				charMaxSteps = MaxSteps16;
			}
			if (moveTurn == 17) {
				charSteps = MaxSteps17 - steps;
				charMaxSteps = MaxSteps17;
			}
			if (moveTurn == 18) {
				charSteps = MaxSteps18 - steps;
				charMaxSteps = MaxSteps18;
			}
			if (moveTurn == 19) {
				charSteps = MaxSteps19 - steps;
				charMaxSteps = MaxSteps19;
			}
			if (moveTurn == 20) {
				charSteps = MaxSteps20 - steps;
				charMaxSteps = MaxSteps20;
			}
			if (moveTurn == 21) {
				charSteps = MaxSteps21 - steps;
				charMaxSteps = MaxSteps21;
			}
			if (moveTurn == 22) {
				charSteps = MaxSteps22 - steps;
				charMaxSteps = MaxSteps22;
			}
			if (moveTurn == 23) {
				charSteps = MaxSteps23 - steps;
				charMaxSteps = MaxSteps23;
			}
			if (moveTurn == 24) {
				charSteps = MaxSteps24 - steps;
				charMaxSteps = MaxSteps24;
			}
			if (moveTurn == 25) {
				if (whichBattle !== 'mission08B' && whichBattle !== 'mission08D') {
					charSteps = MaxSteps25 - steps;
					charMaxSteps = MaxSteps25;
				}
				if (whichBattle == 'mission08B' || whichBattle == 'mission08D') {
					charSteps = 99;
					charMaxSteps = 99;
				}
			}
			if (charSteps < 0) {
				charSteps = 0;
			}
		}
		function reDisplaySelection() {
			if (_root.moveTurn == 1 && char1Dead == false) {
				char1.gotoAndStop(3);
			}
			if (_root.moveTurn == 2 && char2Dead == false) {
				char2.gotoAndStop(3);
			}
			if (_root.moveTurn == 3 && char3Dead == false) {
				char3.gotoAndStop(3);
			}
			if (_root.moveTurn == 4 && char4Dead == false) {
				char4.gotoAndStop(3);
			}
			if (_root.moveTurn == 5 && char5Dead == false) {
				char5.gotoAndStop(3);
			}
			if (_root.moveTurn == 6 && char6Dead == false) {
				char6.gotoAndStop(3);
			}
			if (_root.moveTurn == 7 && char7Dead == false) {
				char7.gotoAndStop(3);
			}
			if (_root.moveTurn == 8 && char8Dead == false) {
				char8.gotoAndStop(3);
			}
			if (_root.moveTurn == 9 && char9Dead == false) {
				char9.gotoAndStop(3);
			}
		}
		function showHearts() {
			char16.gotoAndStop(30);
			if (shownHearts == false) {
				char16.heart._rotation += 360 - char16._rotation;
			}
			if (char16Damage < 0.33 * MaxHP16) {
				char16.heart.gotoAndStop(1);
			}
			if (char16Damage >= 0.33 * MaxHP16) {
				char16.heart.gotoAndStop(2);
			}
			if (char16Damage >= 0.66 * MaxHP16) {
				char16.heart.gotoAndStop(3);
			}
			char17.gotoAndStop(30);
			if (shownHearts == false) {
				char17.heart._rotation += 360 - char17._rotation;
			}
			if (char17Damage < 0.33 * MaxHP17) {
				char17.heart.gotoAndStop(1);
			}
			if (char17Damage >= 0.33 * MaxHP17) {
				char17.heart.gotoAndStop(2);
			}
			if (char17Damage >= 0.66 * MaxHP17) {
				char17.heart.gotoAndStop(3);
			}
			char18.gotoAndStop(30);
			if (shownHearts == false) {
				char18.heart._rotation += 360 - char18._rotation;
			}
			if (char18Damage < 0.33 * MaxHP18) {
				char18.heart.gotoAndStop(1);
			}
			if (char18Damage >= 0.33 * MaxHP18) {
				char18.heart.gotoAndStop(2);
			}
			if (char18Damage >= 0.66 * MaxHP18) {
				char18.heart.gotoAndStop(3);
			}
			char19.gotoAndStop(30);
			if (shownHearts == false) {
				char19.heart._rotation += 360 - char19._rotation;
			}
			if (char19Damage < 0.33 * MaxHP19) {
				char19.heart.gotoAndStop(1);
			}
			if (char19Damage >= 0.33 * MaxHP19) {
				char19.heart.gotoAndStop(2);
			}
			if (char19Damage >= 0.66 * MaxHP19) {
				char19.heart.gotoAndStop(3);
			}
			char20.gotoAndStop(30);
			if (shownHearts == false) {
				char20.heart._rotation += 360 - char20._rotation;
			}
			if (char20Damage < 0.33 * MaxHP20) {
				char20.heart.gotoAndStop(1);
			}
			if (char20Damage >= 0.33 * MaxHP20) {
				char20.heart.gotoAndStop(2);
			}
			if (char20Damage >= 0.66 * MaxHP20) {
				char20.heart.gotoAndStop(3);
			}
			char21.gotoAndStop(30);
			if (shownHearts == false) {
				char21.heart._rotation += 360 - char21._rotation;
			}
			if (char21Damage < 0.33 * MaxHP21) {
				char21.heart.gotoAndStop(1);
			}
			if (char21Damage >= 0.33 * MaxHP21) {
				char21.heart.gotoAndStop(2);
			}
			if (char21Damage >= 0.66 * MaxHP21) {
				char21.heart.gotoAndStop(3);
			}
			char22.gotoAndStop(30);
			if (shownHearts == false) {
				char22.heart._rotation += 360 - char22._rotation;
			}
			if (char22Damage < 0.33 * MaxHP22) {
				char22.heart.gotoAndStop(1);
			}
			if (char22Damage >= 0.33 * MaxHP22) {
				char22.heart.gotoAndStop(2);
			}
			if (char22Damage >= 0.66 * MaxHP22) {
				char22.heart.gotoAndStop(3);
			}
			char23.gotoAndStop(30);
			if (shownHearts == false) {
				char23.heart._rotation += 360 - char23._rotation;
			}
			if (char23Damage < 0.33 * MaxHP23) {
				char23.heart.gotoAndStop(1);
			}
			if (char23Damage >= 0.33 * MaxHP23) {
				char23.heart.gotoAndStop(2);
			}
			if (char23Damage >= 0.66 * MaxHP23) {
				char23.heart.gotoAndStop(3);
			}
			char24.gotoAndStop(30);
			if (shownHearts == false) {
				char24.heart._rotation += 360 - char24._rotation;
			}
			if (char24Damage < 0.33 * MaxHP24) {
				char24.heart.gotoAndStop(1);
			}
			if (char24Damage >= 0.33 * MaxHP24) {
				char24.heart.gotoAndStop(2);
			}
			if (char24Damage >= 0.66 * MaxHP24) {
				char24.heart.gotoAndStop(3);
			}
			char25.gotoAndStop(30);
			if (shownHearts == false) {
				char25.heart._rotation += 360 - char25._rotation;
			}
			if (char25Damage < 0.33 * MaxHP25) {
				char25.heart.gotoAndStop(1);
			}
			if (char25Damage >= 0.33 * MaxHP25) {
				char25.heart.gotoAndStop(2);
			}
			if (char25Damage >= 0.66 * MaxHP25) {
				char25.heart.gotoAndStop(3);
			}
			shownHearts = true;
		}
		function displaySelection() {
			if (_root.moveTurn == 1 && char1Dead == false) {
				startX = char1._x;
				startY = char1._y;
				_root.char1.gotoAndStop(3);
			}
			if (_root.moveTurn == 1 && char1Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 2 && char2Dead == false) {
				startX = char2._x;
				startY = char2._y;
				_root.char2.gotoAndStop(3);
			}
			if (_root.moveTurn == 2 && char2Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 3 && char3Dead == false) {
				startX = char3._x;
				startY = char3._y;
				_root.char3.gotoAndStop(3);
			}
			if (_root.moveTurn == 3 && char3Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 4 && char4Dead == false) {
				_root.startX = char4._x;
				_root.startY = char4._y;
				_root.char4.gotoAndStop(3);
			}
			if (_root.moveTurn == 4 && char4Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 5 && char5Dead == false) {
				_root.startX = char5._x;
				_root.startY = char5._y;
				_root.char5.gotoAndStop(3);
			}
			if (_root.moveTurn == 5 && char5Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 6 && char6Dead == false) {
				_root.startX = char6._x;
				_root.startY = char6._y;
				_root.char6.gotoAndStop(3);
			}
			if (_root.moveTurn == 6 && char6Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 7 && char7Dead == false) {
				_root.startX = char7._x;
				_root.startY = char7._y;
				_root.char7.gotoAndStop(3);
			}
			if (_root.moveTurn == 7 && char7Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 8 && char8Dead == false) {
				_root.startX = char8._x;
				_root.startY = char8._y;
				_root.char8.gotoAndStop(3);
			}
			if (_root.moveTurn == 8 && char8Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 9 && char9Dead == false) {
				_root.startX = char9._x;
				_root.startY = char9._y;
				_root.char9.gotoAndStop(3);
			}
			if (_root.moveTurn == 9 && char9Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 10 && char10Dead == false) {
				_root.startX = char10._x;
				_root.startY = char10._y;
				_root.char10.gotoAndStop(3);
			}
			if (_root.moveTurn == 10 && char10Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 11 && char11Dead == false) {
				_root.startX = char11._x;
				_root.startY = char11._y;
				_root.char11.gotoAndStop(3);
			}
			if (_root.moveTurn == 11 && char11Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 12 && char12Dead == false) {
				_root.startX = char12._x;
				_root.startY = char12._y;
				_root.char12.gotoAndStop(3);
			}
			if (_root.moveTurn == 12 && char12Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 13 && char13Dead == false) {
				_root.startX = char13._x;
				_root.startY = char13._y;
				_root.char13.gotoAndStop(3);
			}
			if (_root.moveTurn == 13 && char13Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 14 && char14Dead == false) {
				_root.startX = char14._x;
				_root.startY = char14._y;
				_root.char14.gotoAndStop(3);
			}
			if (_root.moveTurn == 14 && char14Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 15 && char15Dead == false) {
				_root.startX = char15._x;
				_root.startY = char15._y;
				_root.char15.gotoAndStop(3);
			}
			if (_root.moveTurn == 15 && char15Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 16 && char16Dead == false) {
				_root.char16.gotoAndStop(3);
			}
			if (_root.moveTurn == 16 && char16Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 17 && char17Dead == false) {
				_root.char17.gotoAndStop(3);
			}
			if (_root.moveTurn == 17 && char17Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 18 && char18Dead == false) {
				_root.char18.gotoAndStop(3);
			}
			if (_root.moveTurn == 18 && char18Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 19 && char19Dead == false) {
				_root.char19.gotoAndStop(3);
			}
			if (_root.moveTurn == 19 && char19Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 20 && char20Dead == false) {
				_root.char20.gotoAndStop(3);
			}
			if (_root.moveTurn == 20 && char20Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 21 && char21Dead == false) {
				_root.char21.gotoAndStop(3);
			}
			if (_root.moveTurn == 21 && char21Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 22 && char22Dead == false) {
				_root.char22.gotoAndStop(3);
			}
			if (_root.moveTurn == 22 && char22Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 23 && char23Dead == false) {
				_root.char23.gotoAndStop(3);
			}
			if (_root.moveTurn == 23 && char23Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 24 && char24Dead == false) {
				_root.char24.gotoAndStop(3);
			}
			if (_root.moveTurn == 24 && char24Dead == true) {
				changeturns();
			}
			if (_root.moveTurn == 25 && char25Dead == false) {
				_root.char25.gotoAndStop(3);
			}
			if (_root.moveTurn == 25 && char25Dead == true) {
				changeturns();
			}
		}
		function displayDefaultInfo() {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
			hotKeyAtk = true;
		}
		function displayInfo1() {
			hotKeyAtk = false;
			if (char1Damage < 0) {
				char1Damage = 0;
			}
			_root.currAttackType1 = _root.char1AttackType1;
			_root.currAttackType2 = _root.char1AttackType2;
			_root.currAttackType3 = _root.char1AttackType3;
			_root.currAttackType4 = _root.char1AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP1 - char1Damage;
			_root.charMaxHP = MaxHP1;
			_root.charPsP = MaxPsP1 - char1Drain;
			_root.charMaxPsP = MaxPsP1;
			charSteps = MaxSteps1;
			charMaxSteps = MaxSteps1;
			_root.charName = _root.name1;
		}
		function displayInfo2() {
			hotKeyAtk = false;
			if (char2Damage < 0) {
				char2Damage = 0;
			}
			_root.currAttackType1 = _root.char2AttackType1;
			_root.currAttackType2 = _root.char2AttackType2;
			_root.currAttackType3 = _root.char2AttackType3;
			_root.currAttackType4 = _root.char2AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP2 - char2Damage;
			_root.charMaxHP = MaxHP2;
			_root.charPsP = MaxPsP2 - char2Drain;
			_root.charMaxPsP = MaxPsP2;
			charSteps = MaxSteps2;
			charMaxSteps = MaxSteps2;
			_root.charName = _root.name2;
		}
		function displayInfo3() {
			hotKeyAtk = false;
			if (char3Damage < 0) {
				char3Damage = 0;
			}
			_root.currAttackType1 = _root.char3AttackType1;
			_root.currAttackType2 = _root.char3AttackType2;
			_root.currAttackType3 = _root.char3AttackType3;
			_root.currAttackType4 = _root.char3AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP3 - char3Damage;
			_root.charMaxHP = MaxHP3;
			_root.charPsP = MaxPsP3 - char3Drain;
			_root.charMaxPsP = MaxPsP3;
			charSteps = MaxSteps3;
			charMaxSteps = MaxSteps3;
			_root.charName = _root.name3;
		}
		function displayInfo4() {
			hotKeyAtk = false;
			if (char4Damage < 0) {
				char4Damage = 0;
			}
			_root.currAttackType1 = _root.char4AttackType1;
			_root.currAttackType2 = _root.char4AttackType2;
			_root.currAttackType3 = _root.char4AttackType3;
			_root.currAttackType4 = _root.char4AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP4 - char4Damage;
			_root.charMaxHP = MaxHP4;
			_root.charPsP = MaxPsP4 - char4Drain;
			_root.charMaxPsP = MaxPsP4;
			charSteps = MaxSteps4;
			charMaxSteps = MaxSteps4;
			_root.charName = _root.name4;
		}
		function displayInfo5() {
			hotKeyAtk = false;
			if (char5Damage < 0) {
				char5Damage = 0;
			}
			_root.currAttackType1 = _root.char5AttackType1;
			_root.currAttackType2 = _root.char5AttackType2;
			_root.currAttackType3 = _root.char5AttackType3;
			_root.currAttackType4 = _root.char5AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP5 - char5Damage;
			_root.charMaxHP = MaxHP5;
			_root.charPsP = MaxPsP5 - char5Drain;
			_root.charMaxPsP = MaxPsP5;
			charSteps = MaxSteps5;
			charMaxSteps = MaxSteps5;
			_root.charName = _root.name5;
		}
		function displayInfo6() {
			hotKeyAtk = false;
			if (char6Damage < 0) {
				char6Damage = 0;
			}
			_root.currAttackType1 = _root.char6AttackType1;
			_root.currAttackType2 = _root.char6AttackType2;
			_root.currAttackType3 = _root.char6AttackType3;
			_root.currAttackType4 = _root.char6AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP6 - char6Damage;
			_root.charMaxHP = MaxHP6;
			_root.charPsP = MaxPsP6 - char6Drain;
			_root.charMaxPsP = MaxPsP6;
			charSteps = MaxSteps6;
			charMaxSteps = MaxSteps6;
			_root.charName = _root.name6;
		}
		function displayInfo7() {
			hotKeyAtk = false;
			if (char7Damage < 0) {
				char7Damage = 0;
			}
			_root.currAttackType1 = _root.char7AttackType1;
			_root.currAttackType2 = _root.char7AttackType2;
			_root.currAttackType3 = _root.char7AttackType3;
			_root.currAttackType4 = _root.char7AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP7 - char7Damage;
			_root.charMaxHP = MaxHP7;
			_root.charPsP = MaxPsP7 - char7Drain;
			_root.charMaxPsP = MaxPsP7;
			charSteps = MaxSteps7;
			charMaxSteps = MaxSteps7;
			_root.charName = _root.name7;
		}
		function displayInfo8() {
			hotKeyAtk = false;
			if (char8Damage < 0) {
				char8Damage = 0;
			}
			_root.currAttackType1 = _root.char8AttackType1;
			_root.currAttackType2 = _root.char8AttackType2;
			_root.currAttackType3 = _root.char8AttackType3;
			_root.currAttackType4 = _root.char8AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP8 - char8Damage;
			_root.charMaxHP = MaxHP8;
			_root.charPsP = MaxPsP8 - char8Drain;
			_root.charMaxPsP = MaxPsP8;
			charSteps = MaxSteps8;
			charMaxSteps = MaxSteps8;
			_root.charName = _root.name8;
		}
		function displayInfo9() {
			hotKeyAtk = false;
			if (char9Damage < 0) {
				char9Damage = 0;
			}
			_root.currAttackType1 = _root.char9AttackType1;
			_root.currAttackType2 = _root.char9AttackType2;
			_root.currAttackType3 = _root.char9AttackType3;
			_root.currAttackType4 = _root.char9AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP9 - char9Damage;
			_root.charMaxHP = MaxHP9;
			_root.charPsP = MaxPsP9 - char9Drain;
			_root.charMaxPsP = MaxPsP9;
			charSteps = MaxSteps9;
			charMaxSteps = MaxSteps9;
			_root.charName = _root.name9;
		}
		function displayInfo16() {
			hotKeyAtk = false;
			if (char16Damage < 0) {
				char16Damage = 0;
			}
			_root.currAttackType1 = _root.char16AttackType1;
			_root.currAttackType2 = _root.char16AttackType2;
			_root.currAttackType3 = _root.char16AttackType3;
			_root.currAttackType4 = _root.char16AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP16 - char16Damage;
			_root.charMaxHP = MaxHP16;
			_root.charPsP = 0;
			_root.charMaxPsP = 0;
			charSteps = MaxSteps16;
			charMaxSteps = MaxSteps16;
			_root.charName = _root.name16;
		}
		function displayInfo17() {
			hotKeyAtk = false;
			if (char17Damage < 0) {
				char17Damage = 0;
			}
			_root.currAttackType1 = _root.char17AttackType1;
			_root.currAttackType2 = _root.char17AttackType2;
			_root.currAttackType3 = _root.char17AttackType3;
			_root.currAttackType4 = _root.char17AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP17 - char17Damage;
			_root.charMaxHP = MaxHP17;
			_root.charPsP = 0;
			_root.charMaxPsP = 0;
			charSteps = MaxSteps17;
			charMaxSteps = MaxSteps17;
			_root.charName = _root.name17;
		}
		function displayInfo18() {
			hotKeyAtk = false;
			if (char18Damage < 0) {
				char18Damage = 0;
			}
			_root.currAttackType1 = _root.char18AttackType1;
			_root.currAttackType2 = _root.char18AttackType2;
			_root.currAttackType3 = _root.char18AttackType3;
			_root.currAttackType4 = _root.char18AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP18 - char18Damage;
			_root.charMaxHP = MaxHP18;
			_root.charPsP = 0;
			_root.charMaxPsP = 0;
			_root.charSteps = MaxSteps18;
			charMaxSteps = MaxSteps18;
			_root.charName = _root.name18;
		}
		function displayInfo19() {
			hotKeyAtk = false;
			if (char19Damage < 0) {
				char19Damage = 0;
			}
			_root.currAttackType1 = _root.char19AttackType1;
			_root.currAttackType2 = _root.char19AttackType2;
			_root.currAttackType3 = _root.char19AttackType3;
			_root.currAttackType4 = _root.char19AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP19 - char19Damage;
			_root.charMaxHP = MaxHP19;
			_root.charPsP = MaxPsP19 - char19Drain;
			_root.charMaxPsP = MaxPsP19;
			_root.charSteps = MaxSteps19;
			charMaxSteps = MaxSteps19;
			_root.charName = _root.name19;
		}
		function displayInfo20() {
			hotKeyAtk = false;
			if (char20Damage < 0) {
				char20Damage = 0;
			}
			_root.currAttackType1 = _root.char20AttackType1;
			_root.currAttackType2 = _root.char20AttackType2;
			_root.currAttackType3 = _root.char20AttackType3;
			_root.currAttackType4 = _root.char20AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP20 - char20Damage;
			_root.charMaxHP = MaxHP20;
			_root.charPsP = MaxPsP20 - char20Drain;
			_root.charMaxPsP = MaxPsP20;
			_root.charSteps = MaxSteps20;
			charMaxSteps = MaxSteps20;
			_root.charName = _root.name20;
		}
		function displayInfo21() {
			hotKeyAtk = false;
			if (char21Damage < 0) {
				char21Damage = 0;
			}
			_root.currAttackType1 = _root.char21AttackType1;
			_root.currAttackType2 = _root.char21AttackType2;
			_root.currAttackType3 = _root.char21AttackType3;
			_root.currAttackType4 = _root.char21AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP21 - char21Damage;
			_root.charMaxHP = MaxHP21;
			_root.charPsP = MaxPsP21 - char21Drain;
			_root.charMaxPsP = MaxPsP21;
			_root.charSteps = MaxSteps21;
			charMaxSteps = MaxSteps21;
			_root.charName = _root.name21;
		}
		function displayInfo22() {
			hotKeyAtk = false;
			if (char22Damage < 0) {
				char22Damage = 0;
			}
			_root.currAttackType1 = _root.char22AttackType1;
			_root.currAttackType2 = _root.char22AttackType2;
			_root.currAttackType3 = _root.char22AttackType3;
			_root.currAttackType4 = _root.char22AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP22 - char22Damage;
			_root.charMaxHP = MaxHP22;
			_root.charPsP = MaxPsP22 - char22Drain;
			_root.charMaxPsP = MaxPsP22;
			_root.charSteps = MaxSteps22;
			charMaxSteps = MaxSteps22;
			_root.charName = _root.name22;
		}
		function displayInfo23() {
			hotKeyAtk = false;
			if (char23Damage < 0) {
				char23Damage = 0;
			}
			_root.currAttackType1 = _root.char23AttackType1;
			_root.currAttackType2 = _root.char23AttackType2;
			_root.currAttackType3 = _root.char23AttackType3;
			_root.currAttackType4 = _root.char23AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP23 - char23Damage;
			_root.charMaxHP = MaxHP23;
			_root.charPsP = MaxPsP23 - char23Drain;
			_root.charMaxPsP = MaxPsP23;
			_root.charSteps = MaxSteps23;
			charMaxSteps = MaxSteps23;
			_root.charName = _root.name23;
		}
		function displayInfo24() {
			hotKeyAtk = false;
			if (char24Damage < 0) {
				char24Damage = 0;
			}
			_root.currAttackType1 = _root.char24AttackType1;
			_root.currAttackType2 = _root.char24AttackType2;
			_root.currAttackType3 = _root.char24AttackType3;
			_root.currAttackType4 = _root.char24AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP24 - char24Damage;
			_root.charMaxHP = MaxHP24;
			_root.charPsP = MaxPsP24 - char24Drain;
			_root.charMaxPsP = MaxPsP24;
			_root.charSteps = MaxSteps24;
			charMaxSteps = MaxSteps24;
			_root.charName = _root.name24;
		}
		function displayInfo25() {
			hotKeyAtk = false;
			if (char25Damage < 0) {
				char25Damage = 0;
			}
			_root.currAttackType1 = _root.char25AttackType1;
			_root.currAttackType2 = _root.char25AttackType2;
			_root.currAttackType3 = _root.char25AttackType3;
			_root.currAttackType4 = _root.char25AttackType4;
			displayAttackInfo();
			_root.charHP = MaxHP25 - char25Damage;
			_root.charMaxHP = MaxHP25;
			_root.charPsP = MaxPsP25 - char25Drain;
			_root.charMaxPsP = MaxPsP25;
			_root.charSteps = MaxSteps25;
			charMaxSteps = MaxSteps25;
			_root.charName = _root.name25;
		}
		function displayInfoTastidian() {
			if (char25Damage < 0) {
				char25Damage = 0;
			}
			currAttackType1 = char25AttackType1;
			currAttackType2 = 'shockwave';
			currAttackType3 = 'shockwave';
			currAttackType4 = 'shockwave';
			displayAttackInfo();
			charHP = 999;
			charMaxHP = 999;
			charPsP = 99;
			charMaxPsP = 99;
			charSteps = 99;
			charMaxSteps = 99;
			charName = name25;
		}
		function displayInfoNelis() {
			if (char25Damage < 0) {
				char25Damage = 0;
			}
			currAttackType1 = char25AttackType1;
			currAttackType2 = char25AttackType2;
			currAttackType3 = 'shockwave';
			currAttackType4 = 'shockwave';
			displayAttackInfo();
			charHP = 999;
			charMaxHP = 999;
			charPsP = 99;
			charMaxPsP = 99;
			charSteps = 99;
			charMaxSteps = 99;
			charName = name25;
		}
		function senseDamage() {
			char16Damaged = false;
			char17Damaged = false;
			char18Damaged = false;
			char19Damaged = false;
			char20Damaged = false;
			char21Damaged = false;
			char22Damaged = false;
			char23Damaged = false;
			char24Damaged = false;
			char25Damaged = false;
			if (char16Damage > 0 && !char16Dead) {
				char16Damaged = true;
			}
			if (char17Damage > 0 && !char17Dead) {
				char17Damaged = true;
			}
			if (char18Damage > 0 && !char18Dead) {
				char18Damaged = true;
			}
			if (char19Damage > 0 && !char19Dead) {
				char19Damaged = true;
			}
			if (char20Damage > 0 && !char20Dead) {
				char20Damaged = true;
			}
			if (char21Damage > 0 && !char21Dead) {
				char21Damaged = true;
			}
			if (char22Damage > 0 && !char22Dead) {
				char22Damaged = true;
			}
			if (char23Damage > 0 && !char23Dead) {
				char23Damaged = true;
			}
			if (char24Damage > 0 && !char24Dead) {
				char24Damaged = true;
			}
			if (char25Damage > 0 && !char25Dead) {
				char25Damaged = true;
			}
		}
		function senseHealTargets() {
			senseDamage();
			hitHealLeft = false;
			hitHealRight = false;
			hitHealUp = false;
			hitHealDown = false;
			hitHealLeft2 = false;
			hitHealRight2 = false;
			hitHealUp2 = false;
			hitHealDown2 = false;
			hitHealUpLeft = false;
			hitHealDownRight = false;
			hitHealUpRight = false;
			hitHealDownLeft = false;
			hitHealUp2Left = false;
			hitHealDown2Right = false;
			hitHealUp2Right = false;
			hitHealDown2Left = false;
			hitHealUpLeft2 = false;
			hitHealDownRight2 = false;
			hitHealUpRight2 = false;
			hitHealDownLeft2 = false;
			selfDamaged = false;
			if (moveTurn == 16) {
				senseHealTargets16();
			}
			if (moveTurn == 17) {
				senseHealTargets17();
			}
			if (moveTurn == 18) {
				senseHealTargets18();
			}
			if (moveTurn == 19) {
				senseHealTargets19();
			}
			if (moveTurn == 20) {
				senseHealTargets20();
				if (char20Damaged == true) {
					selfDamaged = true;
				}
			}
			if (moveTurn == 21) {
				senseHealTargets21();
				if (char21Damaged == true) {
					selfDamaged = true;
				}
			}
			if (moveTurn == 22) {
				senseHealTargets22();
			}
			if (moveTurn == 23) {
				senseHealTargets23();
			}
			if (moveTurn == 24) {
				senseHealTargets24();
			}
			if (moveTurn == 25) {
				senseHealTargets25();
			}
		}
		function senseHealTargets20() {
			if (char16Damaged == true) {
				senseHealTargets20_16();
			}
			if (char17Damaged == true) {
				senseHealTargets20_17();
			}
			if (char18Damaged == true) {
				senseHealTargets20_18();
			}
			if (char19Damaged == true) {
				senseHealTargets20_19();
			}
			if (char21Damaged == true) {
				senseHealTargets20_21();
			}
			if (char22Damaged == true) {
				senseHealTargets20_22();
			}
			if (char23Damaged == true) {
				senseHealTargets20_23();
			}
			if (char24Damaged == true) {
				senseHealTargets20_24();
			}
			if (char25Damaged == true) {
				senseHealTargets20_25();
			}
		}
		function senseHealTargets21() {
			if (char16Damaged == true) {
				senseHealTargets21_16();
			}
			if (char17Damaged == true) {
				senseHealTargets21_17();
			}
			if (char18Damaged == true) {
				senseHealTargets21_18();
			}
			if (char19Damaged == true) {
				senseHealTargets21_19();
			}
			if (char21Damaged == true) {
				senseHealTargets21_20();
			}
			if (char22Damaged == true) {
				senseHealTargets21_22();
			}
			if (char23Damaged == true) {
				senseHealTargets21_23();
			}
			if (char24Damaged == true) {
				senseHealTargets21_24();
			}
			if (char25Damaged == true) {
				senseHealTargets21_25();
			}
		}
		function senseHealTargets20_16() {
			if (char16.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char16.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char16.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char16.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char16.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char16.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char16.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char16.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char16.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char16.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char16.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char16.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char16.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char16.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char16.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char16.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char16.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char16.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char16.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char16.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_17() {
			if (char17.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char17.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char17.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char17.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char17.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char17.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char17.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char17.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char17.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char17.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char17.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char17.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char17.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char17.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char17.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char17.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char17.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char17.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char17.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char17.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_18() {
			if (char18.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char18.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char18.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char18.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char18.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char18.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char18.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char18.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char18.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char18.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char18.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char18.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char18.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char18.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char18.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char18.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char18.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char18.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char18.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char18.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_19() {
			if (char19.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char19.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char19.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char19.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char19.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char19.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char19.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char19.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char19.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char19.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char19.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char19.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char19.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char19.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char19.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char19.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char19.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char19.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char19.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char19.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_21() {
			if (char21.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char21.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char21.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char21.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char21.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char21.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char21.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char21.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char21.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char21.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char21.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char21.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char21.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char21.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char21.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char21.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char21.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char21.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char21.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char21.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_22() {
			if (char22.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char22.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char22.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char22.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char22.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char22.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char22.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char22.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char22.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char22.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char22.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char22.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char22.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char22.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char22.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char22.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char22.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char22.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char22.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char22.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_23() {
			if (char23.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char23.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char23.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char23.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char23.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char23.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char23.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char23.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char23.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char23.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char23.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char23.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char23.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char23.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char23.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char23.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char23.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char23.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char23.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char23.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_24() {
			if (char24.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char24.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char24.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char24.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char24.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char24.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char24.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char24.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char24.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char24.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char24.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char24.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char24.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char24.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char24.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char24.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char24.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char24.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char24.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char24.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets20_25() {
			if (char25.hitTest(char20._x - 50, char20._y, true)) {
				hitHealLeft = true;
			}
			if (char25.hitTest(char20._x + 50, char20._y, true)) {
				hitHealRight = true;
			}
			if (char25.hitTest(char20._x, char20._y - 50, true)) {
				hitHealUp = true;
			}
			if (char25.hitTest(char20._x, char20._y + 50, true)) {
				hitHealDown = true;
			}
			if (char25.hitTest(char20._x - 100, char20._y, true)) {
				hitHealLeft2 = true;
			}
			if (char25.hitTest(char20._x + 100, char20._y, true)) {
				hitHealRight2 = true;
			}
			if (char25.hitTest(char20._x, char20._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char25.hitTest(char20._x, char20._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char25.hitTest(char20._x - 50, char20._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char25.hitTest(char20._x + 50, char20._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char25.hitTest(char20._x + 50, char20._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char25.hitTest(char20._x - 50, char20._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char25.hitTest(char20._x - 50, char20._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char25.hitTest(char20._x + 50, char20._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char25.hitTest(char20._x + 50, char20._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char25.hitTest(char20._x - 50, char20._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char25.hitTest(char20._x - 100, char20._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char25.hitTest(char20._x + 100, char20._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char25.hitTest(char20._x + 100, char20._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char25.hitTest(char20._x - 100, char20._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_16() {
			if (char16.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char16.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char16.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char16.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char16.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char16.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char16.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char16.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char16.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char16.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char16.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char16.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char16.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char16.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char16.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char16.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char16.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char16.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char16.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char16.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_17() {
			if (char17.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char17.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char17.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char17.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char17.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char17.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char17.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char17.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char17.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char17.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char17.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char17.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char17.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char17.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char17.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char17.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char17.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char17.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char17.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char17.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_18() {
			if (char18.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char18.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char18.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char18.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char18.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char18.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char18.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char18.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char18.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char18.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char18.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char18.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char18.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char18.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char18.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char18.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char18.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char18.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char18.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char18.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_19() {
			if (char19.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char19.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char19.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char19.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char19.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char19.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char19.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char19.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char19.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char19.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char19.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char19.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char19.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char19.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char19.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char19.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char19.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char19.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char19.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char19.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_20() {
			if (char20.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char20.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char20.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char20.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char20.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char20.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char20.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char20.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char20.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char20.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char20.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char20.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char20.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char20.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char20.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char20.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char20.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char20.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char20.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char20.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_22() {
			if (char22.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char22.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char22.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char22.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char22.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char22.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char22.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char22.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char22.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char22.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char22.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char22.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char22.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char22.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char22.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char22.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char22.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char22.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char22.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char22.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_23() {
			if (char23.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char23.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char23.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char23.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char23.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char23.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char23.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char23.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char23.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char23.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char23.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char23.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char23.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char23.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char23.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char23.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char23.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char23.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char23.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char23.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_24() {
			if (char24.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char24.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char24.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char24.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char24.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char24.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char24.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char24.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char24.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char24.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char24.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char24.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char24.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char24.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char24.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char24.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char24.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char24.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char24.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char24.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function senseHealTargets21_25() {
			if (char25.hitTest(char21._x - 50, char21._y, true)) {
				hitHealLeft = true;
			}
			if (char25.hitTest(char21._x + 50, char21._y, true)) {
				hitHealRight = true;
			}
			if (char25.hitTest(char21._x, char21._y - 50, true)) {
				hitHealUp = true;
			}
			if (char25.hitTest(char21._x, char21._y + 50, true)) {
				hitHealDown = true;
			}
			if (char25.hitTest(char21._x - 100, char21._y, true)) {
				hitHealLeft2 = true;
			}
			if (char25.hitTest(char21._x + 100, char21._y, true)) {
				hitHealRight2 = true;
			}
			if (char25.hitTest(char21._x, char21._y - 100, true)) {
				hitHealUp2 = true;
			}
			if (char25.hitTest(char21._x, char21._y + 100, true)) {
				hitHealDown2 = true;
			}
			if (char25.hitTest(char21._x - 50, char21._y - 50, true)) {
				hitHealUpLeft = true;
			}
			if (char25.hitTest(char21._x + 50, char21._y + 50, true)) {
				hitHealDownRight = true;
			}
			if (char25.hitTest(char21._x + 50, char21._y - 50, true)) {
				hitHealUpRight = true;
			}
			if (char25.hitTest(char21._x - 50, char21._y + 50, true)) {
				hitHealDownLeft = true;
			}
			if (char25.hitTest(char21._x - 50, char21._y - 100, true)) {
				hitHealUp2Left = true;
			}
			if (char25.hitTest(char21._x + 50, char21._y + 100, true)) {
				hitHealDown2Right = true;
			}
			if (char25.hitTest(char21._x + 50, char21._y - 100, true)) {
				hitHealUp2Right = true;
			}
			if (char25.hitTest(char21._x - 50, char21._y + 100, true)) {
				hitHealDown2Left = true;
			}
			if (char25.hitTest(char21._x - 100, char21._y - 50, true)) {
				hitHealUpLeft2 = true;
			}
			if (char25.hitTest(char21._x + 100, char21._y + 50, true)) {
				hitHealDownRight2 = true;
			}
			if (char25.hitTest(char21._x + 100, char21._y - 50, true)) {
				hitHealUpRight2 = true;
			}
			if (char25.hitTest(char21._x - 100, char21._y + 50, true)) {
				hitHealDownLeft2 = true;
			}
		}
		function tellElement() {
			elementType = '';
			if (moveTurn == 16) {
				if (char16AttackType1 == 'frostblast' || char16AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char16AttackType1 == 'pyroblast' || char16AttackType1 == 'pyrohail' || char16AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char16AttackType1 == 'laserblast' || char16AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 17) {
				if (char17AttackType1 == 'frostblast' || char17AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char17AttackType1 == 'pyroblast' || char17AttackType1 == 'pyrohail' || char17AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char17AttackType1 == 'laserblast' || char17AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 18) {
				if (char18AttackType1 == 'frostblast' || char18AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char18AttackType1 == 'pyroblast' || char18AttackType1 == 'pyrohail' || char18AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char18AttackType1 == 'laserblast' || char18AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 19) {
				if (char19AttackType1 == 'frostblast' || char19AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char19AttackType1 == 'pyroblast' || char19AttackType1 == 'pyrohail' || char19AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char19AttackType1 == 'laserblast' || char19AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 20) {
				if (char20AttackType1 == 'frostblast' || char20AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char20AttackType1 == 'pyroblast' || char20AttackType1 == 'pyrohail' || char20AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char20AttackType1 == 'laserblast' || char20AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 21) {
				if (char21AttackType1 == 'frostblast' || char21AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char21AttackType1 == 'pyroblast' || char21AttackType1 == 'pyrohail' || char21AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char21AttackType1 == 'laserblast' || char21AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 22) {
				if (char22AttackType1 == 'frostblast' || char22AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char22AttackType1 == 'pyroblast' || char22AttackType1 == 'pyrohail' || char22AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char22AttackType1 == 'laserblast' || char22AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 23) {
				if (char23AttackType1 == 'frostblast' || char23AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char23AttackType1 == 'pyroblast' || char23AttackType1 == 'pyrohail' || char23AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char23AttackType1 == 'laserblast' || char23AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 24) {
				if (char24AttackType1 == 'frostblast' || char24AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char24AttackType1 == 'pyroblast' || char24AttackType1 == 'pyrohail' || char24AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char24AttackType1 == 'laserblast' || char24AttackType1 == 'lightblast') {
					elementType = 'Light';
				}
			}
			if (moveTurn == 25) {
				if (char25AttackType1 == 'frostblast' || char25AttackType1 == 'frostblast2') {
					elementType = 'Cold';
				}
				if (char25AttackType1 == 'pyroblast' || char25AttackType1 == 'pyrohail' || char25AttackType1 == 'firebreath') {
					elementType = 'Heat';
				}
				if (char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					elementType = 'Shadow';
				}
				if (char25AttackType1 == 'laserblast' || char25AttackType1 == 'lightblast' || char25AttackType1 == 'shockwave') {
					elementType = 'Light';
				}
				if (nelisAttackType == 'holy') {
					elementType = 'Light';
				}
				if (nelisAttackType == 'fire') {
					elementType = 'Heat';
				}
			}
		}
		function giveDamage1melee() {
			Dmg = char1Strength;
			if (!char16Dead && char1.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char1.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char1._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage1mindblast() {
			MBDmg = char1PsyPower + char1MBlevel;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage1mindshield() {
			MSDmg = char1PsyDefense + char1MSlevel;
			if (_root.char1.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage1bigshield() {
			MSDmg = char1PsyDefense + char1MSlevel + 2;
			if (_root.char1.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage1megashield() {
			MSDmg = (char1PsyDefense + char1MSlevel) * 2;
			if (_root.char1.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char1.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage1frostshield() {
			if (_root.char1.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char1.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage1frostblast() {
			baseDmg = char1PsyPower + char1PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage1frostblast2() {
			baseDmg = char1PsyPower + char1PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage1shadowblast() {
			baseDmg = char1PsyPower + 2 + char1PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char1._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage1Darkvortex() {
			baseDmg = char1PsyPower + char1FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage1Laserblast() {
			baseDmg = char1PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char1._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage1pyroblast() {
			baseDmg = char1PsyPower + 2 * char1PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage1firebreath() {
			baseDmg = char1PBlevel + 5 + char1Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char1._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage1pyrohail() {
			baseDmg = char1PsyPower + char1PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage1feedback() {
			if (char1Damage <= char1FBmax) {
				_root.FBDmg = char1Damage;
			} else {
				_root.FBDmg = char1FBmax;
			}
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char1Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage1fling() {
			flingDmg = char1PsyPower + char1Strength;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char1._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage1trickshot() {
			flingDmg = char1PsyPower + char1Strength;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char1._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage1whirlwind() {
			MBDmg = char1Strength + char1MBlevel;
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage1snakeeyes() {
			MBDmg = char1Strength + random(char1PsyPower + char1MBlevel + 10);
			if (!char16Dead && _root.char1.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char1.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage2melee() {
			Dmg = char2Strength;
			if (!char16Dead && char2.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char2.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char2._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage2mindblast() {
			MBDmg = char2PsyPower + char2MBlevel;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage2mindshield() {
			MSDmg = char2PsyDefense + char2MSlevel;
			if (_root.char2.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage2bigshield() {
			MSDmg = char2PsyDefense + char2MSlevel + 2;
			if (_root.char2.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage2megashield() {
			MSDmg = (char2PsyDefense + char2MSlevel) * 2;
			if (_root.char2.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char2.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage2frostshield() {
			if (_root.char2.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char2.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage2frostblast() {
			baseDmg = char2PsyPower + char2PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage2frostblast2() {
			baseDmg = char2PsyPower + char2PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage2shadowblast() {
			baseDmg = char2PsyPower + 2 + char2PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char2._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage2Darkvortex() {
			baseDmg = char2PsyPower + char2FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage2Laserblast() {
			baseDmg = char2PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char2._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage2pyroblast() {
			baseDmg = char2PsyPower + 2 * char2PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage2firebreath() {
			baseDmg = char2PBlevel + 5 + char2Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char2._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage2pyrohail() {
			baseDmg = char2PsyPower + char2PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage2feedback() {
			if (char2Damage <= char2FBmax) {
				_root.FBDmg = char2Damage;
			} else {
				_root.FBDmg = char2FBmax;
			}
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char2Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage2fling() {
			flingDmg = char2PsyPower + char2Strength;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char2._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage2trickshot() {
			flingDmg = char2PsyPower + char2Strength;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char2._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage2whirlwind() {
			MBDmg = char2Strength + char2MBlevel;
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage2snakeeyes() {
			MBDmg = char2Strength + random(char2PsyPower + char2MBlevel + 10);
			if (!char16Dead && _root.char2.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char2.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage3melee() {
			Dmg = char3Strength;
			if (!char16Dead && char3.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char3.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char3._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage3mindblast() {
			MBDmg = char3PsyPower + char3MBlevel;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage3mindshield() {
			MSDmg = char3PsyDefense + char3MSlevel;
			if (_root.char3.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage3bigshield() {
			MSDmg = char3PsyDefense + char3MSlevel + 2;
			if (_root.char3.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage3megashield() {
			MSDmg = (char3PsyDefense + char3MSlevel) * 2;
			if (_root.char3.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char3.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage3frostshield() {
			if (_root.char3.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char3.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage3frostblast() {
			baseDmg = char3PsyPower + char3PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage3frostblast2() {
			baseDmg = char3PsyPower + char3PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage3shadowblast() {
			baseDmg = char3PsyPower + 2 + char3PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char3._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage3Darkvortex() {
			baseDmg = char3PsyPower + char3FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage3Laserblast() {
			baseDmg = char3PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char3._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage3pyroblast() {
			baseDmg = char3PsyPower + 2 * char3PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage3firebreath() {
			baseDmg = char3PBlevel + 5 + char3Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char3._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage3pyrohail() {
			baseDmg = char3PsyPower + char3PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage3feedback() {
			if (char3Damage <= char3FBmax) {
				_root.FBDmg = char3Damage;
			} else {
				_root.FBDmg = char3FBmax;
			}
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char3Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage3fling() {
			flingDmg = char3PsyPower + char3Strength;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char3._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage3trickshot() {
			flingDmg = char3PsyPower + char3Strength;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char3._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage3whirlwind() {
			MBDmg = char3Strength + char3MBlevel;
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage3snakeeyes() {
			MBDmg = char3Strength + random(char3PsyPower + char3MBlevel + 10);
			if (!char16Dead && _root.char3.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char3.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage4vengeance() {
			if (char4Damage <= char4FBmax) {
				_root.FBDmg = char4Damage;
			} else {
				_root.FBDmg = char4FBmax;
			}
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char16Damage += _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char17Damage += _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char18Damage += _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char19Damage += _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char20Damage += _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char21Damage += _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char22Damage += _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char23Damage += _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char24Damage += _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Vengeance!';
				_root.char25Damage += _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (damageDisplay == FBDmg) {
				char4Damage -= FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage4melee() {
			Dmg = char4Strength;
			if (!char16Dead && char4.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char4.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char4._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage4mindblast() {
			MBDmg = char4PsyPower + char4MBlevel;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage4mindshield() {
			MSDmg = char4PsyDefense + char4MSlevel;
			if (_root.char4.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage4bigshield() {
			MSDmg = char4PsyDefense + char4MSlevel + 2;
			if (_root.char4.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage4megashield() {
			MSDmg = (char4PsyDefense + char4MSlevel) * 2;
			if (_root.char4.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char4.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage4frostshield() {
			if (_root.char4.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char4.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage4frostblast() {
			baseDmg = char4PsyPower + char4PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage4frostblast2() {
			baseDmg = char4PsyPower + char4PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage4shadowblast() {
			baseDmg = char4PsyPower + 2 + char4PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char4._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage4Darkvortex() {
			baseDmg = char4PsyPower + char4FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage4Laserblast() {
			baseDmg = char4PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char4._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage4pyroblast() {
			baseDmg = char4PsyPower + 2 * char4PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage4firebreath() {
			baseDmg = char4PBlevel + 5 + char4Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char4._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage4pyrohail() {
			baseDmg = char4PsyPower + char4PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage4feedback() {
			if (char4Damage <= char4FBmax) {
				_root.FBDmg = char4Damage;
			} else {
				_root.FBDmg = char4FBmax;
			}
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char4Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage4fling() {
			flingDmg = char4PsyPower + char4Strength;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char4._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage4trickshot() {
			flingDmg = char4PsyPower + char4Strength;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char4._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage4whirlwind() {
			MBDmg = char4Strength + char4MBlevel;
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage4snakeeyes() {
			MBDmg = char4Strength + random(char4PsyPower + char4MBlevel + 10);
			if (!char16Dead && _root.char4.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char4.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage5melee() {
			Dmg = char5Strength;
			if (!char16Dead && char5.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char5.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char5._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage5mindblast() {
			MBDmg = char5PsyPower + char5MBlevel;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage5mindshield() {
			MSDmg = char5PsyDefense + char5MSlevel;
			if (_root.char5.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage5bigshield() {
			MSDmg = char5PsyDefense + char5MSlevel + 2;
			if (_root.char5.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage5megashield() {
			MSDmg = (char5PsyDefense + char5MSlevel) * 2;
			if (_root.char5.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char5.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage5frostshield() {
			if (_root.char5.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char5.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage5frostblast() {
			baseDmg = char5PsyPower + char5PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage5frostblast2() {
			baseDmg = char5PsyPower + char5PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage5shadowblast() {
			baseDmg = char5PsyPower + 2 + char5PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char5._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage5Darkvortex() {
			baseDmg = char5PsyPower + char5FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage5Laserblast() {
			baseDmg = char5PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char5._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage5pyroblast() {
			baseDmg = char5PsyPower + 2 * char5PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage5firebreath() {
			baseDmg = char5PBlevel + 5 + char5Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char5._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage5pyrohail() {
			baseDmg = char5PsyPower + char5PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage5feedback() {
			if (char5Damage <= char5FBmax) {
				_root.FBDmg = char5Damage;
			} else {
				_root.FBDmg = char5FBmax;
			}
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char5Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage5fling() {
			flingDmg = char5PsyPower + char5Strength;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char5._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage5trickshot() {
			flingDmg = char5PsyPower + char5Strength;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char5._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage5whirlwind() {
			MBDmg = char5Strength + char5MBlevel;
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage5snakeeyes() {
			MBDmg = char5Strength + random(char5PsyPower + char5MBlevel + 10);
			if (!char16Dead && _root.char5.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char5.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage6melee() {
			Dmg = char6Strength;
			if (!char16Dead && char6.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char6.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char6._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage6mindblast() {
			MBDmg = char6PsyPower + char6MBlevel;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage6mindshield() {
			MSDmg = char6PsyDefense + char6MSlevel;
			if (_root.char6.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage6bigshield() {
			MSDmg = char6PsyDefense + char6MSlevel + 2;
			if (_root.char6.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage6megashield() {
			MSDmg = (char6PsyDefense + char6MSlevel) * 2;
			if (_root.char6.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char6.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage6frostshield() {
			if (_root.char6.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char6.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage6frostblast() {
			baseDmg = char6PsyPower + char6PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage6frostblast2() {
			baseDmg = char6PsyPower + char6PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage6shadowblast() {
			baseDmg = char6PsyPower + 2 + char6PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char6._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage6Darkvortex() {
			baseDmg = char6PsyPower + char6FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage6Laserblast() {
			baseDmg = char6PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char6._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage6pyroblast() {
			baseDmg = char6PsyPower + 2 * char6PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage6firebreath() {
			baseDmg = char6PBlevel + 5 + char6Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char6._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage6pyrohail() {
			baseDmg = char6PsyPower + char6PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage6feedback() {
			if (char6Damage <= char6FBmax) {
				_root.FBDmg = char6Damage;
			} else {
				_root.FBDmg = char6FBmax;
			}
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char6Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage6fling() {
			flingDmg = char6PsyPower + char6Strength;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char6._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage6trickshot() {
			flingDmg = char6PsyPower + char6Strength;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char6._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage6whirlwind() {
			MBDmg = char6Strength + char6MBlevel;
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage6snakeeyes() {
			MBDmg = char6Strength + random(char6PsyPower + char6MBlevel + 10);
			if (!char16Dead && _root.char6.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char6.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage7melee() {
			Dmg = char7Strength;
			if (!char16Dead && char7.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char7.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char7._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage7mindblast() {
			MBDmg = char7PsyPower + char7MBlevel;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage7mindshield() {
			MSDmg = char7PsyDefense + char7MSlevel;
			if (_root.char7.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage7bigshield() {
			MSDmg = char7PsyDefense + char7MSlevel + 2;
			if (_root.char7.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage7megashield() {
			MSDmg = (char7PsyDefense + char7MSlevel) * 2;
			if (_root.char7.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char7.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage7frostshield() {
			if (_root.char7.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char7.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage7frostblast() {
			baseDmg = char7PsyPower + char7PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage7frostblast2() {
			baseDmg = char7PsyPower + char7PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage7shadowblast() {
			baseDmg = char7PsyPower + 2 + char7PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char7._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage7Darkvortex() {
			baseDmg = char7PsyPower + char7FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage7Laserblast() {
			baseDmg = char7PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char7._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage7pyroblast() {
			baseDmg = char7PsyPower + 2 * char7PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage7firebreath() {
			baseDmg = char7PBlevel + 5 + char7Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char7._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage7pyrohail() {
			baseDmg = char7PsyPower + char7PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage7feedback() {
			if (char7Damage <= char7FBmax) {
				_root.FBDmg = char7Damage;
			} else {
				_root.FBDmg = char7FBmax;
			}
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char7Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage7fling() {
			flingDmg = char7PsyPower + char7Strength;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char7._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage7trickshot() {
			flingDmg = char7PsyPower + char7Strength;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char7._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage7whirlwind() {
			MBDmg = char7Strength + char7MBlevel;
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage7snakeeyes() {
			MBDmg = char7Strength + random(char7PsyPower + char7MBlevel + 10);
			if (!char16Dead && _root.char7.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char7.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage8melee() {
			Dmg = char8Strength;
			if (!char16Dead && char8.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char16._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char17._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char18._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char19._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char20._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char21._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char22._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char23._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char24._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
			}
			if (char8.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' deals ' + Dmg + ' damage!';
				if (char25._rotation == char8._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage8mindblast() {
			MBDmg = char8PsyPower + char8MBlevel;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage8mindshield() {
			MSDmg = char8PsyDefense + char8MSlevel;
			if (_root.char8.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mind Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage8bigshield() {
			MSDmg = char8PsyDefense + char8MSlevel + 2;
			if (_root.char8.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Big Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage8megashield() {
			MSDmg = (char8PsyDefense + char8MSlevel) * 2;
			if (_root.char8.reticle.hitTest(_root.char1._x, _root.char1._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char1Damage -= _root.MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char2Damage -= _root.MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char3Damage -= _root.MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char4Damage -= _root.MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char5Damage -= _root.MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char6Damage -= _root.MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char7Damage -= _root.MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char8Damage -= _root.MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (_root.char8.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				_root.display = _root.charName + ' boosts defense by ' + _root.MSDmg + ' with Mega Shield!';
				_root.char9Damage -= _root.MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
		}
		function giveDamage8frostshield() {
			if (_root.char8.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name1 + ' cold resistance with Frost Shield!';
				char1Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char2._x, _root.char2._y, true)) {
				display = charName + ' gives ' + name2 + ' cold resistance with Frost Shield!';
				char2Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char3._x, _root.char3._y, true)) {
				display = charName + ' gives ' + name3 + ' cold resistance with Frost Shield!';
				char3Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char4._x, _root.char4._y, true)) {
				display = charName + ' gives ' + name4 + ' cold resistance with Frost Shield!';
				char4Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char5._x, _root.char5._y, true)) {
				display = charName + ' gives ' + name5 + ' cold resistance with Frost Shield!';
				char5Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char6._x, _root.char6._y, true)) {
				display = charName + ' gives ' + name6 + ' cold resistance with Frost Shield!';
				char6Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char7._x, _root.char7._y, true)) {
				display = charName + ' gives ' + name7 + ' cold resistance with Frost Shield!';
				char7Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char8._x, _root.char8._y, true)) {
				display = charName + ' gives ' + name8 + ' cold resistance with Frost Shield!';
				char8Resists = 'Cold';
			}
			if (_root.char8.reticle.hitTest(_root.char9._x, _root.char9._y, true)) {
				display = charName + ' gives ' + name9 + ' cold resistance with Frost Shield!';
				char9Resists = 'Cold';
			}
		}
		function giveDamage8frostblast() {
			baseDmg = char8PsyPower + char8PBlevel + 2;
			MBDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char16._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char16Damage += MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char17._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char17Damage += MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char18._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char18Damage += MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char19._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char19Damage += MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char20._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char20Damage += MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char21._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char21Damage += MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char22._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char22Damage += MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char23._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char23Damage += MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char24._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char24Damage += MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					MBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					MBDmg = baseDmg;
					MBDmg *= 0.5;
					MBDmg = Math.round(MBDmg);
				}
				display = charName + ' deals ' + MBDmg + ' damage with Frost Blast!';
				if (char25._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Frost Blast!';
				}
				_root.char25Damage += MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage8frostblast2() {
			baseDmg = char8PsyPower + char8PBlevel + 4;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char16._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char17._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char18._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char19._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char20._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char21._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char22._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char23._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char24._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Cold') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Cold') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Frost Blast 2!';
				if (char25._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Frost Blast 2!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage8shadowblast() {
			baseDmg = char8PsyPower + 2 + char8PBlevel;
			SBDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char16._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char16Damage += SBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char17._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char17Damage += SBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char18._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char18Damage += SBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char19._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char19Damage += SBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char20._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char20Damage += SBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char21._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char21Damage += SBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char22._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char22Damage += SBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char23._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char23Damage += SBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char24._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char24Damage += SBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Shadow') {
					SBDmg = baseDmg;
					SBDmg *= 0.5;
					SBDmg = Math.round(SBDmg);
				}
				display = charName + ' deals ' + SBDmg + ' damage with Shadow Blast!';
				if (char25._rotation == char8._rotation) {
					SBDmg *= 1.5;
					SBDmg = Math.round(SBDmg);
					display = charName + ' deals ' + SBDmg + ' backstab damage with Shadow Blast!';
				}
				_root.char25Damage += SBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = SBDmg;
			}
			checkDeath();
		}
		function giveDamage8Darkvortex() {
			baseDmg = char8PsyPower + char8FBlevel;
			DVDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char16Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char16Damage += DVDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char17Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char17Damage += DVDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char18Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char18Damage += DVDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char19Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char19Damage += DVDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char20Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char20Damage += DVDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char21Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char21Damage += DVDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char22Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char22Damage += DVDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char23Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char23Damage += DVDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char24Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char24Damage += DVDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Shadow') {
					DVDmg = baseDmg;
				}
				if (char25Resists == 'Shadow') {
					DVDmg = baseDmg;
					DVDmg *= 0.5;
					DVDmg = Math.round(DVDmg);
				}
				display = charName + ' deals ' + DVDmg + ' damage with Dark Vortex!';
				_root.char25Damage += DVDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = DVDmg;
			}
			checkDeath();
		}
		function giveDamage8Laserblast() {
			baseDmg = char8PsyPower;
			LBDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char16Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char16._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char16Damage += LBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char17Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char17._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char17Damage += LBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char18Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char18._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char18Damage += LBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char19Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char19._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char19Damage += LBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char20Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char20._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char20Damage += LBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char21Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char21._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char21Damage += LBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char22Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char22._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char22Damage += LBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char23Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char23._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char23Damage += LBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char24Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char24._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char24Damage += LBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Light') {
					LBDmg = baseDmg;
				}
				if (char25Resists == 'Light') {
					LBDmg = baseDmg;
					LBDmg *= 0.5;
					LBDmg = Math.round(LBDmg);
				}
				display = charName + ' deals ' + LBDmg + ' damage with Laser Blast!';
				if (char25._rotation == char8._rotation) {
					LBDmg *= 1.5;
					LBDmg = Math.round(LBDmg);
					display = charName + ' deals ' + LBDmg + ' backstab damage with Laser Blast!';
				}
				_root.char25Damage += LBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = LBDmg;
			}
			checkDeath();
		}
		function giveDamage8pyroblast() {
			baseDmg = char8PsyPower + 2 * char8PBlevel + 3;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char17._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char18._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char19._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char20._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char21._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char22._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char23._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char24._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char25._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage8firebreath() {
			baseDmg = char8PBlevel + 5 + char8Strength;
			FBDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char16._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char16Damage += FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char17._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char17Damage += FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char18._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char18Damage += FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char19._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char19Damage += FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char20._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char20Damage += FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char21._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char21Damage += FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char22._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char22Damage += FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char23._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char23Damage += FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char24._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char24Damage += FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					FBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					FBDmg = baseDmg;
					FBDmg *= 0.5;
					FBDmg = Math.round(FBDmg);
				}
				display = charName + ' deals ' + FBDmg + ' damage with Fire Breath!';
				if (char25._rotation == char8._rotation) {
					FBDmg *= 1.5;
					FBDmg = Math.round(FBDmg);
					display = charName + ' deals ' + FBDmg + ' backstab damage with Fire Breath!';
				}
				_root.char25Damage += FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			checkDeath();
		}
		function giveDamage8pyrohail() {
			baseDmg = char8PsyPower + char8PBlevel + 1;
			PBDmg = baseDmg;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				if (char16Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char16Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char16Damage += PBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				if (char17Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char17Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char17Damage += PBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				if (char18Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char18Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char18Damage += PBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				if (char19Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char19Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char19Damage += PBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				if (char20Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char20Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char20Damage += PBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				if (char21Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char21Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char21Damage += PBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				if (char22Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char22Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char22Damage += PBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				if (char23Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char23Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char23Damage += PBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				if (char24Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char24Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char24Damage += PBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				if (char25Resists !== 'Heat') {
					PBDmg = baseDmg;
				}
				if (char25Resists == 'Heat') {
					PBDmg = baseDmg;
					PBDmg *= 0.5;
					PBDmg = Math.round(PBDmg);
				}
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Hail!';
				_root.char25Damage += PBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeath();
		}
		function giveDamage8feedback() {
			if (char8Damage <= char8FBmax) {
				_root.FBDmg = char8Damage;
			} else {
				_root.FBDmg = char8FBmax;
			}
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char16Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char17Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char18Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char19Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char20Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char21Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char22Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char23Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char24Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' returns ' + _root.FBDmg + ' damage with Feedback!';
				_root.char25Damage += _root.FBDmg;
				_root.char8Damage -= _root.FBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHP();
			checkDeath();
		}
		function giveDamage8fling() {
			flingDmg = char8PsyPower + char8Strength;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char16._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char17._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char18._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char19._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char20._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char21._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char22._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char23._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char24._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Knife Fling!';
				if (char25._rotation == char8._rotation) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Knife Fling!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage8trickshot() {
			flingDmg = char8PsyPower + char8Strength;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char16._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char16Damage += _root.flingDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char17._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char17Damage += _root.flingDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char18._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char18Damage += _root.flingDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char19._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char19Damage += _root.flingDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char20._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char20Damage += _root.flingDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char21._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char21Damage += _root.flingDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char22._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char22Damage += _root.flingDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char23._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char23Damage += _root.flingDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char24._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char24Damage += _root.flingDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.flingDmg + ' damage with Trick Shot!';
				if (char25._rotation == char8._rotation - 270) {
					flingDmg *= 1.5;
					flingDmg = Math.round(flingDmg);
					display = charName + ' deals ' + flingDmg + ' backstab damage with Trick Shot!';
				}
				_root.char25Damage += _root.flingDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = flingDmg;
			}
			checkDeath();
		}
		function giveDamage8whirlwind() {
			MBDmg = char8Strength + char8MBlevel;
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Whirlwind!';
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage8snakeeyes() {
			MBDmg = char8Strength + random(char8PsyPower + char8MBlevel + 10);
			if (!char16Dead && _root.char8.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char16._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char17._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char18._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char19._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char20._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char21._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char22._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char23._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char24._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char8.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Snake Eyes!';
				if (char25._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Snake Eyes!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage9mindblast() {
			MBDmg = char9PsyPower + char9MBlevel;
			if (!char16Dead && _root.char9.reticle.hitTest(_root.char16._x, _root.char16._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char16Damage += _root.MBDmg;
				_root.char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char17._x, _root.char17._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char17._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char17Damage += _root.MBDmg;
				_root.char17.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char18._x, _root.char18._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char18._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char18Damage += _root.MBDmg;
				_root.char18.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char19._x, _root.char19._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char19._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char19Damage += _root.MBDmg;
				_root.char19.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char20._x, _root.char20._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char20._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char20Damage += _root.MBDmg;
				_root.char20.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char21._x, _root.char21._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char21._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char21Damage += _root.MBDmg;
				_root.char21.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char22._x, _root.char22._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char22._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char22Damage += _root.MBDmg;
				_root.char22.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char23._x, _root.char23._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char23._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char23Damage += _root.MBDmg;
				_root.char23.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char24._x, _root.char24._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char24._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char24Damage += _root.MBDmg;
				_root.char24.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (_root.char9.reticle.hitTest(_root.char25._x, _root.char25._y, true)) {
				_root.display = _root.charName + ' deals ' + _root.MBDmg + ' damage with Mind Blast!';
				if (char25._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				_root.char25Damage += _root.MBDmg;
				_root.char25.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeath();
		}
		function giveDamage16() {
			tellElement();
			if (char16.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char16.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char16.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char16AttackType1 == 'mindblast' || char16AttackType1 == 'shadowblast' || char16AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage16B() {
			if (!char16Dead && char16.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char16Damage -= char16Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char17Damage -= char16Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char18Damage -= char16Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char19Damage -= char16Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char16Damage -= char16Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char21Damage -= char16Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char22Damage -= char16Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char23Damage -= char16Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char24Damage -= char16Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char16Strength + '!';
				char25Damage -= char16Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage16C() {
			if (char16.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char16.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char16Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char16._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage17() {
			tellElement();
			if (char17.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char17.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char17.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char17AttackType1 == 'mindblast' || char17AttackType1 == 'shadowblast' || char17AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage17B() {
			if (!char16Dead && char17.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char16Damage -= char17Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char17Damage -= char17Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char18Damage -= char17Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char19Damage -= char17Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char17Damage -= char17Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char21Damage -= char17Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char22Damage -= char17Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char23Damage -= char17Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char24Damage -= char17Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char17.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char17Strength + '!';
				char25Damage -= char17Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage17C() {
			if (char17.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char17.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char17Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char17._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage18() {
			tellElement();
			if (char18.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char18.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char18.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char18AttackType1 == 'mindblast' || char18AttackType1 == 'shadowblast' || char18AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage18B() {
			if (!char16Dead && char18.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char16Damage -= char18Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char17Damage -= char18Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char18Damage -= char18Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char19Damage -= char18Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char18Damage -= char18Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char21Damage -= char18Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char22Damage -= char18Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char23Damage -= char18Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char24Damage -= char18Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char18.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char18Strength + '!';
				char25Damage -= char18Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage18C() {
			if (char18.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char18.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char18Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char18._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage19() {
			tellElement();
			if (char19.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char19.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(10);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(11);
				}
			}
			if (char19.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char19.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char19.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char19.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char19.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char19.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char19.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char19AttackType1 == 'mindblast' || char19AttackType1 == 'shadowblast' || char19AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage19B() {
			if (!char16Dead && char19.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char16Damage -= char19Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char17Damage -= char19Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char18Damage -= char19Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char19Damage -= char19Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char19Damage -= char19Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char21Damage -= char19Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char22Damage -= char19Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char23Damage -= char19Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char24Damage -= char19Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char19.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char19Strength + '!';
				char25Damage -= char19Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage19C() {
			if (char19.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char19.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char19Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char19._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage20() {
			tellElement();
			if (char20.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char20.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char20.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char20AttackType1 == 'mindblast' || char20AttackType1 == 'shadowblast' || char20AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage20B() {
			if (!char16Dead && char20.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char16Damage -= char20Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char17Damage -= char20Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char18Damage -= char20Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char19Damage -= char20Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char20Damage -= char20Strength;
				if (char20Damage < 0) {
					char20Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char21Damage -= char20Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char22Damage -= char20Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char23Damage -= char20Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char24Damage -= char20Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char20.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char20Strength + '!';
				char25Damage -= char20Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage20C() {
			if (char20.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char20.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char20Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char20._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage21() {
			tellElement();
			if (char21.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char21.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char21.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char21AttackType1 == 'mindblast' || char21AttackType1 == 'shadowblast' || char21AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage21B() {
			if (!char16Dead && char21.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char16Damage -= char21Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char17Damage -= char21Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char18Damage -= char21Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char19Damage -= char21Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char21Damage -= char21Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char21Damage -= char21Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char22Damage -= char21Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char23Damage -= char21Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char24Damage -= char21Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char21.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char21Strength + '!';
				char25Damage -= char21Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage21C() {
			if (char21.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char21.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char21Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char21._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage22() {
			tellElement();
			if (char22.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char22.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char22.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char22AttackType1 == 'mindblast' || char22AttackType1 == 'shadowblast' || char22AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage22B() {
			if (!char16Dead && char22.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char16Damage -= char22Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char17Damage -= char22Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char18Damage -= char22Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char19Damage -= char22Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char22Damage -= char22Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char21Damage -= char22Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char22Damage -= char22Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char23Damage -= char22Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char24Damage -= char22Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char22.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char22Strength + '!';
				char25Damage -= char22Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage22C() {
			if (char22.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char22.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char22Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char22._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage23() {
			tellElement();
			if (char23.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char23.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char23.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char23AttackType1 == 'mindblast' || char23AttackType1 == 'shadowblast' || char23AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage23B() {
			if (!char16Dead && char23.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char16Damage -= char23Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char17Damage -= char23Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char18Damage -= char23Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char19Damage -= char23Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char23Damage -= char23Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char21Damage -= char23Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char22Damage -= char23Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char23Damage -= char23Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char24Damage -= char23Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char23.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char23Strength + '!';
				char25Damage -= char23Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage23C() {
			if (char23.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char23.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char23Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char23._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage24() {
			tellElement();
			if (char24.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char24.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			if (char24.reticle.hitTest(char25._x, char25._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (elementType == char25Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char25Damage += Dmg;
				char25.gotoAndPlay(11);
				if (char24AttackType1 == 'mindblast' || char24AttackType1 == 'shadowblast' || char24AttackType1 == 'darkvortex') {
					char25.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage24B() {
			if (!char16Dead && char24.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char16Damage -= char24Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char17Damage -= char24Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char18Damage -= char24Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char19Damage -= char24Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char24Damage -= char24Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char21Damage -= char24Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char22Damage -= char24Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char23Damage -= char24Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char24Damage -= char24Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char24.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char24Strength + '!';
				char25Damage -= char24Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage24C() {
			if (char24.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char24.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char24Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char24._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage25() {
			tellElement();
			if (char25.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char1._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char1Damage += Dmg;
				char1.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char1.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char2._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char2Damage += Dmg;
				char2.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char2.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char3._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char3Damage += Dmg;
				char3.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char3.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char4._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char4Damage += Dmg;
				char4.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char4.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char5._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char5Damage += Dmg;
				char5.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char5.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char6._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char6Damage += Dmg;
				char6.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char6.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char7._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char7Damage += Dmg;
				char7.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char7.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char8._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char8Damage += Dmg;
				char8.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char8.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char9Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				if (char9._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage!';
				}
				char9Damage += Dmg;
				char9.gotoAndPlay(10);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char9.gotoAndPlay(11);
				}
			}
			if (char25.reticle.hitTest(char17._x, char17._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char17Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char17Damage += Dmg;
				char17.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char17.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char18._x, char18._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char18Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char18Damage += Dmg;
				char18.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char18.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char19._x, char19._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char19Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char19Damage += Dmg;
				char19.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char19.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char20._x, char20._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char20Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char20Damage += Dmg;
				char20.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char20.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char21._x, char21._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char21Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char21Damage += Dmg;
				char21.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char21.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char22._x, char22._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char22Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char22Damage += Dmg;
				char22.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char22.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char23._x, char23._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char23Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char23Damage += Dmg;
				char23.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char23.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char24._x, char24._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char24Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char24Damage += Dmg;
				char24.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char24.gotoAndPlay(10);
				}
			}
			if (char25.reticle.hitTest(char16._x, char16._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char16Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage!';
				char16Damage += Dmg;
				char16.gotoAndPlay(11);
				if (char25AttackType1 == 'mindblast' || char25AttackType1 == 'shadowblast' || char25AttackType1 == 'darkvortex') {
					char16.gotoAndPlay(10);
				}
			}
			checkDeath();
		}
		function giveDamage25B() {
			if (!char16Dead && char25.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char16Damage -= char25Strength;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char17._x, char17._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char17Damage -= char25Strength;
				if (char17Damage < 0) {
					char17Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char18._x, char18._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char18Damage -= char25Strength;
				if (char18Damage < 0) {
					char18Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char19._x, char19._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char19Damage -= char25Strength;
				if (char19Damage < 0) {
					char19Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char20._x, char20._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char25Damage -= char25Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char21._x, char21._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char21Damage -= char25Strength;
				if (char21Damage < 0) {
					char21Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char22._x, char22._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char22Damage -= char25Strength;
				if (char22Damage < 0) {
					char22Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char23._x, char23._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char23Damage -= char25Strength;
				if (char23Damage < 0) {
					char23Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char24._x, char24._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char24Damage -= char25Strength;
				if (char24Damage < 0) {
					char24Damage = 0;
				}
			}
			if (char25.reticle.hitTest(char25._x, char25._y, true)) {
				display = charName + ' boosts defense by ' + char25Strength + '!';
				char25Damage -= char25Strength;
				if (char25Damage < 0) {
					char25Damage = 0;
				}
			}
		}
		function giveDamage25C() {
			if (char25.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char1Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps1 -= 1;
					if (MaxSteps1 <= 2) {
						MaxSteps1 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char1._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char1Damage += _root.Dmg;
				char1.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char2Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps2 -= 1;
					if (MaxSteps2 <= 2) {
						MaxSteps2 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char2._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char2Damage += _root.Dmg;
				char2.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char3Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps3 -= 1;
					if (MaxSteps3 <= 2) {
						MaxSteps3 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char3._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char3Damage += _root.Dmg;
				char3.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char4Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps4 -= 1;
					if (MaxSteps4 <= 2) {
						MaxSteps4 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char4._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char4Damage += _root.Dmg;
				char4.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char5Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps5 -= 1;
					if (MaxSteps5 <= 2) {
						MaxSteps5 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char5._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char5Damage += _root.Dmg;
				char5.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char6Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps6 -= 1;
					if (MaxSteps6 <= 2) {
						MaxSteps6 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char6._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char6Damage += _root.Dmg;
				char6.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char7Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps7 -= 1;
					if (MaxSteps7 <= 2) {
						MaxSteps7 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char7._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char7Damage += _root.Dmg;
				char7.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char8Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps8 -= 1;
					if (MaxSteps8 <= 2) {
						MaxSteps8 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char8._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char8Damage += _root.Dmg;
				char8.gotoAndPlay(10);
			}
			if (char25.reticle.hitTest(char9._x, char9._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (char9Resists == 'Shadow') {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				} else {
					MaxSteps9 -= 1;
					if (MaxSteps9 <= 2) {
						MaxSteps9 = 2;
					}
				}
				display = charName + ' deals ' + baseDmg + ' damage with Dark Breath!';
				if (char9._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Dark Breath!';
				}
				_root.char9Damage += _root.Dmg;
				char9.gotoAndPlay(10);
			}
			checkDeath();
		}
		function giveDamage25D() {
			if (char25.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char1Damage += Dmg;
				char1.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char2Damage += Dmg;
				char2.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char3Damage += Dmg;
				char3.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char4Damage += Dmg;
				char4.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char5Damage += Dmg;
				char5.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char6Damage += Dmg;
				char6.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char7Damage += Dmg;
				char7.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Shock Wave!';
				char8Damage += Dmg;
				char8.gotoAndPlay(11);
			}
			checkDeath();
		}
		function giveDamage25E() {
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char1._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char1Damage += Dmg;
			char1.gotoAndPlay(11);
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char2._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char2Damage += Dmg;
			char2.gotoAndPlay(11);
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char3._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char3Damage += Dmg;
			char3.gotoAndPlay(11);
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char4._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char4Damage += Dmg;
			char4.gotoAndPlay(11);
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char5._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char5Damage += Dmg;
			char5.gotoAndPlay(11);
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char6._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char6Damage += Dmg;
			char6.gotoAndPlay(11);
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char7._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char7Damage += Dmg;
			char7.gotoAndPlay(11);
			Dmg = 0.2 * char25Strength;
			Dmg = Math.round(Dmg);
			if (char25.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = 2 * char25Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Holy Blast!';
				if (char8._rotation == char25._rotation) {
					Dmg *= 1.5;
					Dmg = Math.round(Dmg);
					display = charName + ' deals ' + Dmg + ' backstab damage with Holy Blast!';
				}
			}
			char8Damage += Dmg;
			char8.gotoAndPlay(11);
			checkDeath();
		}
		function giveDamage25F() {
			if (char25.reticle.hitTest(char1._x, char1._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char1Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char1Damage += Dmg;
				char1.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char2._x, char2._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char2Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char2Damage += Dmg;
				char2.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char3._x, char3._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char3Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char3Damage += Dmg;
				char3.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char4._x, char4._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char4Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char4Damage += Dmg;
				char4.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char5._x, char5._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char5Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char5Damage += Dmg;
				char5.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char6._x, char6._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char6Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char6Damage += Dmg;
				char6.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char7._x, char7._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char7Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char7Damage += Dmg;
				char7.gotoAndPlay(11);
			}
			if (char25.reticle.hitTest(char8._x, char8._y, true)) {
				baseDmg = char25Strength;
				Dmg = baseDmg;
				if (elementType == char8Resists) {
					Dmg *= 0.5;
					Dmg = Math.round(Dmg);
				}
				display = charName + ' deals ' + baseDmg + ' damage with Fire Gate!';
				char8Damage += Dmg;
				char8.gotoAndPlay(11);
			}
			checkDeath();
		}
		function nelisAttack() {
			if (nelisAttackType == 'summon') {
				char25.gotoAndStop(2);
			} else {
				if (nelisAttackType == 'holy') {
					char25.gotoAndStop(5);
				} else {
					if (nelisAttackType == 'fire') {
						char25.gotoAndStop(13);
					}
				}
			}
		}
		function summonPhantoms() {
			if (char18Dead == true) {
				_root.attachMovie('phantom', 'char18', 4);
				char18Dead = false;
				if (hitWallLeft == false && hitCharLeft == false && hitBadLeft == false) {
					char18._x = char25._x - 50;
					char18._y = char25._y;
				} else {
					if (hitWallRight == false && hitCharRight == false && hitBadRight == false) {
						char18._x = char25._x + 50;
						char18._y = char25._y;
					} else {
						if (hitWallDown == false && hitCharDown == false && hitBadDown == false) {
							char18._x = char25._x;
							char18._y = char25._y + 50;
						} else {
							if (hitWallUp == false && hitCharUp == false && hitBadUp == false) {
								char18._x = char25._x;
								char18._y = char25._y - 50;
							} else {
								_root.char18.removeMovieClip();
								char18Dead = true;
							}
						}
					}
				}
				char18.gotoAndStop(6);
			}
			if (char19Dead == true) {
				_root.attachMovie('phantom', 'char19', 5);
				char19Dead = false;
				if (hitWallLeft == false && hitCharLeft == false && hitBadLeft == false) {
					char19._x = char25._x - 50;
					char19._y = char25._y;
				} else {
					if (hitWallRight == false && hitCharRight == false && hitBadRight == false) {
						char19._x = char25._x + 50;
						char19._y = char25._y;
					} else {
						if (hitWallDown == false && hitCharDown == false && hitBadDown == false) {
							char19._x = char25._x;
							char19._y = char25._y + 50;
						} else {
							if (hitWallUp == false && hitCharUp == false && hitBadUp == false) {
								char19._x = char25._x;
								char19._y = char25._y - 50;
							} else {
								_root.char19.removeMovieClip();
								char19Dead = true;
							}
						}
					}
				}
				char19.gotoAndStop(6);
			}
			if (char20Dead == true) {
				_root.attachMovie('phantom', 'char20', 6);
				char20Dead = false;
				if (hitWallLeft == false && hitCharLeft == false && hitBadLeft == false) {
					char20._x = char25._x - 50;
					char20._y = char25._y;
				} else {
					if (hitWallRight == false && hitCharRight == false && hitBadRight == false) {
						char20._x = char25._x + 50;
						char20._y = char25._y;
					} else {
						if (hitWallDown == false && hitCharDown == false && hitBadDown == false) {
							char20._x = char25._x;
							char20._y = char25._y + 50;
						} else {
							if (hitWallUp == false && hitCharUp == false && hitBadUp == false) {
								char20._x = char25._x;
								char20._y = char25._y - 50;
							} else {
								_root.char20.removeMovieClip();
								char20Dead = true;
							}
						}
					}
				}
				char20.gotoAndStop(6);
			}
			if (char21Dead == true) {
				_root.attachMovie('phantom', 'char21', 7);
				char21Dead = false;
				if (hitWallLeft == false && hitCharLeft == false && hitBadLeft == false) {
					char21._x = char25._x - 50;
					char21._y = char25._y;
				} else {
					if (hitWallRight == false && hitCharRight == false && hitBadRight == false) {
						char21._x = char25._x + 50;
						char21._y = char25._y;
					} else {
						if (hitWallDown == false && hitCharDown == false && hitBadDown == false) {
							char21._x = char25._x;
							char21._y = char25._y + 50;
						} else {
							if (hitWallUp == false && hitCharUp == false && hitBadUp == false) {
								char21._x = char25._x;
								char21._y = char25._y - 50;
							} else {
								_root.char21.removeMovieClip();
								char21Dead = true;
							}
						}
					}
				}
				char21.gotoAndStop(6);
			}
		}
		function shadowportChar1() {
			var v2 = 2;
			while (v2 < 26) {
				if (facing == 'left2' && _root['char' + v2].hitTest(char1._x - 100, char1._y, true)) {
					blocked = true;
				}
				if (facing == 'right2' && _root['char' + v2].hitTest(char1._x + 100, char1._y, true)) {
					blocked = true;
				}
				if (facing == 'up2' && _root['char' + v2].hitTest(char1._x, char1._y - 100, true)) {
					blocked = true;
				}
				if (facing == 'down2' && _root['char' + v2].hitTest(char1._x, char1._y + 100, true)) {
					blocked = true;
				}
				if (facing == 'left3' && _root['char' + v2].hitTest(char1._x - 150, char1._y, true)) {
					blocked = true;
				}
				if (facing == 'right3' && _root['char' + v2].hitTest(char1._x + 150, char1._y, true)) {
					blocked = true;
				}
				if (facing == 'up3' && _root['char' + v2].hitTest(char1._x, char1._y - 150, true)) {
					blocked = true;
				}
				if (facing == 'down3' && _root['char' + v2].hitTest(char1._x, char1._y + 150, true)) {
					blocked = true;
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char1._x - 100, char1._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char1._x + 100, char1._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char1._x, char1._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char1._x, char1._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char1._x - 150, char1._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char1._x + 150, char1._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char1._x, char1._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char1._x, char1._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char1._y += 100;
				char1.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char1._x += 100;
				char1.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char1._y -= 100;
				char1.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char1._x -= 100;
				char1.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char1._y += 150;
				char1.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char1._x += 150;
				char1.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char1._y -= 150;
				char1.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char1._x -= 150;
				char1.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char1.gotoAndStop(13);
			}
		}
		function shadowportChar2() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 != 2) {
					if (facing == 'left2' && _root['char' + v2].hitTest(char2._x - 100, char2._y, true)) {
						blocked = true;
					}
					if (facing == 'right2' && _root['char' + v2].hitTest(char2._x + 100, char2._y, true)) {
						blocked = true;
					}
					if (facing == 'up2' && _root['char' + v2].hitTest(char2._x, char2._y - 100, true)) {
						blocked = true;
					}
					if (facing == 'down2' && _root['char' + v2].hitTest(char2._x, char2._y + 100, true)) {
						blocked = true;
					}
					if (facing == 'left3' && _root['char' + v2].hitTest(char2._x - 150, char2._y, true)) {
						blocked = true;
					}
					if (facing == 'right3' && _root['char' + v2].hitTest(char2._x + 150, char2._y, true)) {
						blocked = true;
					}
					if (facing == 'up3' && _root['char' + v2].hitTest(char2._x, char2._y - 150, true)) {
						blocked = true;
					}
					if (facing == 'down3' && _root['char' + v2].hitTest(char2._x, char2._y + 150, true)) {
						blocked = true;
					}
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char2._x - 100, char2._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char2._x + 100, char2._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char2._x, char2._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char2._x, char2._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char2._x - 150, char2._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char2._x + 150, char2._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char2._x, char2._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char2._x, char2._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char2._y += 100;
				char2.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char2._x += 100;
				char2.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char2._y -= 100;
				char2.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char2._x -= 100;
				char2.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char2.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char2._y += 150;
				char2.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char2._x += 150;
				char2.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char2._y -= 150;
				char2.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char2._x -= 150;
				char2.gotoAndStop(13);
			}
		}
		function shadowportChar3() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 != 3) {
					if (facing == 'left2' && _root['char' + v2].hitTest(char3._x - 100, char3._y, true)) {
						blocked = true;
					}
					if (facing == 'right2' && _root['char' + v2].hitTest(char3._x + 100, char3._y, true)) {
						blocked = true;
					}
					if (facing == 'up2' && _root['char' + v2].hitTest(char3._x, char3._y - 100, true)) {
						blocked = true;
					}
					if (facing == 'down2' && _root['char' + v2].hitTest(char3._x, char3._y + 100, true)) {
						blocked = true;
					}
					if (facing == 'left3' && _root['char' + v2].hitTest(char3._x - 150, char3._y, true)) {
						blocked = true;
					}
					if (facing == 'right3' && _root['char' + v2].hitTest(char3._x + 150, char3._y, true)) {
						blocked = true;
					}
					if (facing == 'up3' && _root['char' + v2].hitTest(char3._x, char3._y - 150, true)) {
						blocked = true;
					}
					if (facing == 'down3' && _root['char' + v2].hitTest(char3._x, char3._y + 150, true)) {
						blocked = true;
					}
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char3._x - 100, char3._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char3._x + 100, char3._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char3._x, char3._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char3._x, char3._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char3._x - 150, char3._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char3._x + 150, char3._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char3._x, char3._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char3._x, char3._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char3._y += 100;
				char3.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char3._x += 100;
				char3.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char3._y -= 100;
				char3.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char3._x -= 100;
				char3.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char3._y += 150;
				char3.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char3._x += 150;
				char3.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char3._y -= 150;
				char3.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char3._x -= 150;
				char3.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char3.gotoAndStop(13);
			}
		}
		function shadowportChar4() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 != 4) {
					if (facing == 'left2' && _root['char' + v2].hitTest(char4._x - 100, char4._y, true)) {
						blocked = true;
					}
					if (facing == 'right2' && _root['char' + v2].hitTest(char4._x + 100, char4._y, true)) {
						blocked = true;
					}
					if (facing == 'up2' && _root['char' + v2].hitTest(char4._x, char4._y - 100, true)) {
						blocked = true;
					}
					if (facing == 'down2' && _root['char' + v2].hitTest(char4._x, char4._y + 100, true)) {
						blocked = true;
					}
					if (facing == 'left3' && _root['char' + v2].hitTest(char4._x - 150, char4._y, true)) {
						blocked = true;
					}
					if (facing == 'right3' && _root['char' + v2].hitTest(char4._x + 150, char4._y, true)) {
						blocked = true;
					}
					if (facing == 'up3' && _root['char' + v2].hitTest(char4._x, char4._y - 150, true)) {
						blocked = true;
					}
					if (facing == 'down3' && _root['char' + v2].hitTest(char4._x, char4._y + 150, true)) {
						blocked = true;
					}
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char4._x - 100, char4._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char4._x + 100, char4._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char4._x, char4._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char4._x, char4._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char4._x - 150, char4._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char4._x + 150, char4._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char4._x, char4._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char4._x, char4._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char4._y += 100;
				char4.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char4._x += 100;
				char4.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char4._y -= 100;
				char4.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char4._x -= 100;
				char4.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char4._y += 150;
				char4.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char4._x += 150;
				char4.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char4._y -= 150;
				char4.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char4._x -= 150;
				char4.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char4.gotoAndStop(13);
			}
		}
		function shadowportChar5() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 != 5) {
					if (facing == 'left2' && _root['char' + v2].hitTest(char5._x - 100, char5._y, true)) {
						blocked = true;
					}
					if (facing == 'right2' && _root['char' + v2].hitTest(char5._x + 100, char5._y, true)) {
						blocked = true;
					}
					if (facing == 'up2' && _root['char' + v2].hitTest(char5._x, char5._y - 100, true)) {
						blocked = true;
					}
					if (facing == 'down2' && _root['char' + v2].hitTest(char5._x, char5._y + 100, true)) {
						blocked = true;
					}
					if (facing == 'left3' && _root['char' + v2].hitTest(char5._x - 150, char5._y, true)) {
						blocked = true;
					}
					if (facing == 'right3' && _root['char' + v2].hitTest(char5._x + 150, char5._y, true)) {
						blocked = true;
					}
					if (facing == 'up3' && _root['char' + v2].hitTest(char5._x, char5._y - 150, true)) {
						blocked = true;
					}
					if (facing == 'down3' && _root['char' + v2].hitTest(char5._x, char5._y + 150, true)) {
						blocked = true;
					}
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char5._x - 100, char5._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char5._x + 100, char5._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char5._x, char5._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char5._x, char5._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char5._x - 150, char5._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char5._x + 150, char5._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char5._x, char5._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char5._x, char5._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char5._y += 100;
				char5.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char5._x += 100;
				char5.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char5._y -= 100;
				char5.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char5._x -= 100;
				char5.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char5._y += 150;
				char5.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char5._x += 150;
				char5.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char5._y -= 150;
				char5.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char5._x -= 150;
				char5.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char5.gotoAndStop(13);
			}
		}
		function shadowportChar6() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 != 6) {
					if (facing == 'left2' && _root['char' + v2].hitTest(char6._x - 100, char6._y, true)) {
						blocked = true;
					}
					if (facing == 'right2' && _root['char' + v2].hitTest(char6._x + 100, char6._y, true)) {
						blocked = true;
					}
					if (facing == 'up2' && _root['char' + v2].hitTest(char6._x, char6._y - 100, true)) {
						blocked = true;
					}
					if (facing == 'down2' && _root['char' + v2].hitTest(char6._x, char6._y + 100, true)) {
						blocked = true;
					}
					if (facing == 'left3' && _root['char' + v2].hitTest(char6._x - 150, char6._y, true)) {
						blocked = true;
					}
					if (facing == 'right3' && _root['char' + v2].hitTest(char6._x + 150, char6._y, true)) {
						blocked = true;
					}
					if (facing == 'up3' && _root['char' + v2].hitTest(char6._x, char6._y - 150, true)) {
						blocked = true;
					}
					if (facing == 'down3' && _root['char' + v2].hitTest(char6._x, char6._y + 150, true)) {
						blocked = true;
					}
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char6._x - 100, char6._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char6._x + 100, char6._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char6._x, char6._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char6._x, char6._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char6._x - 150, char6._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char6._x + 150, char6._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char6._x, char6._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char6._x, char6._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char6._y += 100;
				char6.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char6._x += 100;
				char6.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char6._y -= 100;
				char6.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char6._x -= 100;
				char6.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char6._y += 150;
				char6.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char6._x += 150;
				char6.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char6._y -= 150;
				char6.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char6._x -= 150;
				char6.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char6.gotoAndStop(13);
			}
		}
		function shadowportChar7() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 != 7) {
					if (facing == 'left2' && _root['char' + v2].hitTest(char7._x - 100, char7._y, true)) {
						blocked = true;
					}
					if (facing == 'right2' && _root['char' + v2].hitTest(char7._x + 100, char7._y, true)) {
						blocked = true;
					}
					if (facing == 'up2' && _root['char' + v2].hitTest(char7._x, char7._y - 100, true)) {
						blocked = true;
					}
					if (facing == 'down2' && _root['char' + v2].hitTest(char7._x, char7._y + 100, true)) {
						blocked = true;
					}
					if (facing == 'left3' && _root['char' + v2].hitTest(char7._x - 150, char7._y, true)) {
						blocked = true;
					}
					if (facing == 'right3' && _root['char' + v2].hitTest(char7._x + 150, char7._y, true)) {
						blocked = true;
					}
					if (facing == 'up3' && _root['char' + v2].hitTest(char7._x, char7._y - 150, true)) {
						blocked = true;
					}
					if (facing == 'down3' && _root['char' + v2].hitTest(char7._x, char7._y + 150, true)) {
						blocked = true;
					}
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char7._x - 100, char7._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char7._x + 100, char7._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char7._x, char7._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char7._x, char7._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char7._x - 150, char7._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char7._x + 150, char7._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char7._x, char7._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char7._x, char7._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char7._y += 100;
				char7.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char7._x += 100;
				char7.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char7._y -= 100;
				char7.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char7._x -= 100;
				char7.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char7._y += 150;
				char7.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char7._x += 150;
				char7.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char7._y -= 150;
				char7.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char7._x -= 150;
				char7.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char7.gotoAndStop(13);
			}
		}
		function shadowportChar8() {
			var v2 = 1;
			while (v2 < 26) {
				if (v2 != 8) {
					if (facing == 'left2' && _root['char' + v2].hitTest(char8._x - 100, char8._y, true)) {
						blocked = true;
					}
					if (facing == 'right2' && _root['char' + v2].hitTest(char8._x + 100, char8._y, true)) {
						blocked = true;
					}
					if (facing == 'up2' && _root['char' + v2].hitTest(char8._x, char8._y - 100, true)) {
						blocked = true;
					}
					if (facing == 'down2' && _root['char' + v2].hitTest(char8._x, char8._y + 100, true)) {
						blocked = true;
					}
					if (facing == 'left3' && _root['char' + v2].hitTest(char8._x - 150, char8._y, true)) {
						blocked = true;
					}
					if (facing == 'right3' && _root['char' + v2].hitTest(char8._x + 150, char8._y, true)) {
						blocked = true;
					}
					if (facing == 'up3' && _root['char' + v2].hitTest(char8._x, char8._y - 150, true)) {
						blocked = true;
					}
					if (facing == 'down3' && _root['char' + v2].hitTest(char8._x, char8._y + 150, true)) {
						blocked = true;
					}
				}
				++v2;
			}
			if (facing == 'left2' && subCollision.hitTest(char8._x - 100, char8._y, true)) {
				blocked = true;
			}
			if (facing == 'right2' && subCollision.hitTest(char8._x + 100, char8._y, true)) {
				blocked = true;
			}
			if (facing == 'up2' && subCollision.hitTest(char8._x, char8._y - 100, true)) {
				blocked = true;
			}
			if (facing == 'down2' && subCollision.hitTest(char8._x, char8._y + 100, true)) {
				blocked = true;
			}
			if (facing == 'left3' && subCollision.hitTest(char8._x - 150, char8._y, true)) {
				blocked = true;
			}
			if (facing == 'right3' && subCollision.hitTest(char8._x + 150, char8._y, true)) {
				blocked = true;
			}
			if (facing == 'up3' && subCollision.hitTest(char8._x, char8._y - 150, true)) {
				blocked = true;
			}
			if (facing == 'down3' && subCollision.hitTest(char8._x, char8._y + 150, true)) {
				blocked = true;
			}
			if (facing == 'down2' && !blocked) {
				char8._y += 100;
				char8.gotoAndStop(13);
			}
			if (facing == 'right2' && !blocked) {
				char8._x += 100;
				char8.gotoAndStop(13);
			}
			if (facing == 'up2' && !blocked) {
				char8._y -= 100;
				char8.gotoAndStop(13);
			}
			if (facing == 'left2' && !blocked) {
				char8._x -= 100;
				char8.gotoAndStop(13);
			}
			if (facing == 'down3' && !blocked) {
				char8._y += 150;
				char8.gotoAndStop(13);
			}
			if (facing == 'right3' && !blocked) {
				char8._x += 150;
				char8.gotoAndStop(13);
			}
			if (facing == 'up3' && !blocked) {
				char8._y -= 150;
				char8.gotoAndStop(13);
			}
			if (facing == 'left3' && !blocked) {
				char8._x -= 150;
				char8.gotoAndStop(13);
			}
			if (blocked == true) {
				display = _root.charName + ' can\'t shadowport onto an occupied space!';
				char8.gotoAndStop(13);
			}
		}
		function attack() {
			if (chosenAttack == 'mindblast') {
				charAtkDrain = mindBlastDrain;
			}
			if (chosenAttack == 'pyroblast') {
				charAtkDrain = pyroBlastDrain;
			}
			if (chosenAttack == 'pyrohail') {
				charAtkDrain = pyroHailDrain;
			}
			if (chosenAttack == 'shadowblast') {
				charAtkDrain = shadowBlastDrain;
			}
			if (chosenAttack == 'darkvortex') {
				charAtkDrain = darkVortexDrain;
			}
			if (chosenAttack == 'shadowport1') {
				charAtkDrain = shadowPort1Drain;
			}
			if (chosenAttack == 'shadowport2') {
				charAtkDrain = shadowPort2Drain;
			}
			if (chosenAttack == 'frostblast') {
				charAtkDrain = frostBlastDrain;
			}
			if (chosenAttack == 'firebreath') {
				charAtkDrain = fireBreathDrain;
			}
			if (chosenAttack == 'frostblast2') {
				charAtkDrain = frostBlast2Drain;
			}
			if (chosenAttack == 'mindshield') {
				charAtkDrain = mindShieldDrain;
			}
			if (chosenAttack == 'farshield') {
				charAtkDrain = farShieldDrain;
			}
			if (chosenAttack == 'megashield') {
				charAtkDrain = megaShieldDrain;
			}
			if (chosenAttack == 'bigshield') {
				charAtkDrain = bigShieldDrain;
			}
			if (chosenAttack == 'frostshield') {
				charAtkDrain = frostShieldDrain;
			}
			if (chosenAttack == 'feedback') {
				charAtkDrain = feedbackDrain;
			}
			if (chosenAttack == 'vengeance') {
				charAtkDrain = vengeanceDrain;
			}
			if (chosenAttack == 'fling') {
				charAtkDrain = flingDrain;
			}
			if (chosenAttack == 'trickshot') {
				charAtkDrain = trickShotDrain;
			}
			if (chosenAttack == 'whirlwind') {
				charAtkDrain = whirlwindDrain;
			}
			if (chosenAttack == 'snakeeyes') {
				charAtkDrain = snakeeyesDrain;
			}
			if (chosenAttack == 'steamengine') {
				charAtkDrain = steamEngineDrain;
			}
			if (chosenAttack == 'spinsaw') {
				charAtkDrain = spinSawDrain;
			}
			if (chosenAttack == 'melee') {
				charAtkDrain = 0;
			}
			if (chosenAttack == 'knife') {
				charAtkDrain = 0;
			}
			if (_root.moveTurn == 1) {
				if (char1._rotation == 0 && _root.subCollision.hitTest(char1._x, char1._y + 50, true)) {
					_root.blocked = true;
				}
				if (char1._rotation == -90 && _root.subCollision.hitTest(char1._x + 50, char1._y, true)) {
					_root.blocked = true;
				}
				if (char1._rotation == 180 && _root.subCollision.hitTest(char1._x, char1._y - 50, true)) {
					_root.blocked = true;
				}
				if (char1._rotation == 90 && _root.subCollision.hitTest(char1._x - 50, char1._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						char1.gotoAndStop(2);
						giveDamage1melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						char1.gotoAndStop(2);
						giveDamage1melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						_root.char1.gotoAndStop(7);
						giveDamage1melee();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char1.gotoAndStop(6);
						char1Drain += charAtkDrain;
						displayPsP();
						++MaxSteps1;
						if (charSteps == 0) {
							steps = MaxSteps1 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char1.gotoAndStop(6);
							giveDamage1fling();
							char1Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char1._rotation == 0 && _root.subCollision.hitTest(char1._x, char1._y + 100, true)) {
							_root.blocked = true;
						}
						if (char1._rotation == -90 && _root.subCollision.hitTest(char1._x + 100, char1._y, true)) {
							_root.blocked = true;
						}
						if (char1._rotation == 180 && _root.subCollision.hitTest(char1._x, char1._y - 100, true)) {
							_root.blocked = true;
						}
						if (char1._rotation == 90 && _root.subCollision.hitTest(char1._x - 100, char1._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char1.gotoAndStop(7);
							giveDamage1trickshot();
							char1Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char1.gotoAndStop(6);
						giveDamage1mindblast();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char1.gotoAndStop(7);
						giveDamage1mindshield();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char1.gotoAndStop(15);
						giveDamage1mindshield();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char1.gotoAndStop(12);
						giveDamage1bigshield();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char1.gotoAndStop(8);
						giveDamage1megashield();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char1.gotoAndStop(7);
						giveDamage1frostshield();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char1.gotoAndStop(8);
						giveDamage1frostblast();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char1.gotoAndStop(9);
						giveDamage1frostblast2();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char1.gotoAndStop(8);
							giveDamage1shadowblast();
							char1Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char1.gotoAndStop(9);
							giveDamage1Darkvortex();
							char1Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char1.gotoAndStop(8);
							giveDamage1pyroblast();
							char1Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char1.gotoAndStop(8);
						giveDamage1firebreath();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char1.gotoAndStop(13);
							giveDamage1pyrohail();
							char1Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char1.gotoAndStop(9);
							giveDamage1feedback();
							char1Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char1.gotoAndStop(6);
						giveDamage1whirlwind();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char1.gotoAndStop(6);
						giveDamage1snakeeyes();
						char1Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char1Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char1._rotation == 0) {
							facing = 'down2';
						}
						if (char1._rotation == -90) {
							facing = 'right2';
						}
						if (char1._rotation == 180) {
							facing = 'up2';
						}
						if (char1._rotation == 90) {
							facing = 'left2';
						}
						char1.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char1Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char1._rotation == 0) {
							facing = 'down3';
						}
						if (char1._rotation == -90) {
							facing = 'right3';
						}
						if (char1._rotation == 180) {
							facing = 'up3';
						}
						if (char1._rotation == 90) {
							facing = 'left3';
						}
						char1.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 2) {
				if (char2._rotation == 0 && _root.subCollision.hitTest(char2._x, char2._y + 50, true)) {
					_root.blocked = true;
				}
				if (char2._rotation == -90 && _root.subCollision.hitTest(char2._x + 50, char2._y, true)) {
					_root.blocked = true;
				}
				if (char2._rotation == 180 && _root.subCollision.hitTest(char2._x, char2._y - 50, true)) {
					_root.blocked = true;
				}
				if (char2._rotation == 90 && _root.subCollision.hitTest(char2._x - 50, char2._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						_root.char2.gotoAndStop(2);
						giveDamage2melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						_root.char2.gotoAndStop(2);
						giveDamage2melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						_root.char2.gotoAndStop(7);
						giveDamage2melee();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char2.gotoAndStop(6);
						char2Drain += charAtkDrain;
						displayPsP();
						++MaxSteps2;
						if (charSteps == 0) {
							steps = MaxSteps2 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char2.gotoAndStop(6);
							giveDamage2fling();
							char2Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char2._rotation == 0 && _root.subCollision.hitTest(char2._x, char2._y + 100, true)) {
							_root.blocked = true;
						}
						if (char2._rotation == -90 && _root.subCollision.hitTest(char2._x + 100, char2._y, true)) {
							_root.blocked = true;
						}
						if (char2._rotation == 180 && _root.subCollision.hitTest(char2._x, char2._y - 100, true)) {
							_root.blocked = true;
						}
						if (char2._rotation == 90 && _root.subCollision.hitTest(char2._x - 100, char2._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char2.gotoAndStop(7);
							giveDamage2trickshot();
							char2Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char2.gotoAndStop(6);
						giveDamage2mindblast();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char2.gotoAndStop(7);
						giveDamage2mindshield();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char2.gotoAndStop(15);
						giveDamage2mindshield();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char2.gotoAndStop(12);
						giveDamage2bigshield();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char2.gotoAndStop(8);
						giveDamage2megashield();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char2.gotoAndStop(7);
						giveDamage2frostshield();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char2.gotoAndStop(8);
						giveDamage2frostblast();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char2.gotoAndStop(9);
						giveDamage2frostblast2();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char2.gotoAndStop(8);
							giveDamage2shadowblast();
							char2Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char2.gotoAndStop(9);
							giveDamage2Darkvortex();
							char2Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char2.gotoAndStop(8);
							giveDamage2pyroblast();
							char2Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char2.gotoAndStop(8);
						giveDamage2firebreath();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char2.gotoAndStop(13);
							giveDamage2pyrohail();
							char2Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char2.gotoAndStop(9);
							giveDamage2feedback();
							char2Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char2.gotoAndStop(6);
						giveDamage2whirlwind();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char2.gotoAndStop(6);
						giveDamage2snakeeyes();
						char2Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char2Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char2._rotation == 0) {
							facing = 'down2';
						}
						if (char2._rotation == -90) {
							facing = 'right2';
						}
						if (char2._rotation == 180) {
							facing = 'up2';
						}
						if (char2._rotation == 90) {
							facing = 'left2';
						}
						char2.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char2Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char2._rotation == 0) {
							facing = 'down3';
						}
						if (char2._rotation == -90) {
							facing = 'right3';
						}
						if (char2._rotation == 180) {
							facing = 'up3';
						}
						if (char2._rotation == 90) {
							facing = 'left3';
						}
						char2.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 3) {
				if (char3._rotation == 0 && _root.subCollision.hitTest(char3._x, char3._y + 50, true)) {
					_root.blocked = true;
				}
				if (char3._rotation == -90 && _root.subCollision.hitTest(char3._x + 50, char3._y, true)) {
					_root.blocked = true;
				}
				if (char3._rotation == 180 && _root.subCollision.hitTest(char3._x, char3._y - 50, true)) {
					_root.blocked = true;
				}
				if (char3._rotation == 90 && _root.subCollision.hitTest(char3._x - 50, char3._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						_root.char3.gotoAndStop(2);
						giveDamage3melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						_root.char3.gotoAndStop(2);
						giveDamage3melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						_root.char3.gotoAndStop(7);
						giveDamage3melee();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char3.gotoAndStop(6);
						char3Drain += charAtkDrain;
						displayPsP();
						displaySteps();
						++MaxSteps3;
						if (charSteps == 0) {
							steps = MaxSteps3 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char3.gotoAndStop(6);
							giveDamage3fling();
							char3Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char3._rotation == 0 && _root.subCollision.hitTest(char3._x, char3._y + 100, true)) {
							_root.blocked = true;
						}
						if (char3._rotation == -90 && _root.subCollision.hitTest(char3._x + 100, char3._y, true)) {
							_root.blocked = true;
						}
						if (char3._rotation == 180 && _root.subCollision.hitTest(char3._x, char3._y - 100, true)) {
							_root.blocked = true;
						}
						if (char3._rotation == 90 && _root.subCollision.hitTest(char3._x - 100, char3._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char3.gotoAndStop(7);
							giveDamage3trickshot();
							char3Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char3.gotoAndStop(6);
						giveDamage3mindblast();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char3.gotoAndStop(7);
						giveDamage3mindshield();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char3.gotoAndStop(15);
						giveDamage3mindshield();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char3.gotoAndStop(12);
						giveDamage3bigshield();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char3.gotoAndStop(8);
						giveDamage3megashield();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char3.gotoAndStop(7);
						giveDamage3frostshield();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char3.gotoAndStop(8);
						giveDamage3frostblast();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char3.gotoAndStop(9);
						giveDamage3frostblast2();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char3.gotoAndStop(8);
							giveDamage3shadowblast();
							char3Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char3.gotoAndStop(9);
							giveDamage3Darkvortex();
							char3Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char3.gotoAndStop(8);
							giveDamage3pyroblast();
							char3Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char3.gotoAndStop(8);
						giveDamage3firebreath();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char3.gotoAndStop(13);
							giveDamage3pyrohail();
							char3Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char3.gotoAndStop(6);
						giveDamage3whirlwind();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char3.gotoAndStop(6);
						giveDamage3snakeeyes();
						char3Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char3.gotoAndStop(9);
							giveDamage3feedback();
							char3Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char3Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char3._rotation == 0) {
							facing = 'down2';
						}
						if (char3._rotation == -90) {
							facing = 'right2';
						}
						if (char3._rotation == 180) {
							facing = 'up2';
						}
						if (char3._rotation == 90) {
							facing = 'left2';
						}
						char3.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char3Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char3._rotation == 0) {
							facing = 'down3';
						}
						if (char3._rotation == -90) {
							facing = 'right3';
						}
						if (char3._rotation == 180) {
							facing = 'up3';
						}
						if (char3._rotation == 90) {
							facing = 'left3';
						}
						char3.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 4) {
				if (char4._rotation == 0 && _root.subCollision.hitTest(char4._x, char4._y + 50, true)) {
					_root.blocked = true;
				}
				if (char4._rotation == -90 && _root.subCollision.hitTest(char4._x + 50, char4._y, true)) {
					_root.blocked = true;
				}
				if (char4._rotation == 180 && _root.subCollision.hitTest(char4._x, char4._y - 50, true)) {
					_root.blocked = true;
				}
				if (char4._rotation == 90 && _root.subCollision.hitTest(char4._x - 50, char4._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						_root.char4.gotoAndStop(2);
						giveDamage4melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						_root.char4.gotoAndStop(2);
						giveDamage4melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						_root.char4.gotoAndStop(7);
						giveDamage4melee();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char4.gotoAndStop(6);
						char4Drain += charAtkDrain;
						displayPsP();
						++MaxSteps4;
						if (charSteps == 0) {
							steps = MaxSteps4 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(6);
							giveDamage4fling();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char4._rotation == 0 && _root.subCollision.hitTest(char4._x, char4._y + 100, true)) {
							_root.blocked = true;
						}
						if (char4._rotation == -90 && _root.subCollision.hitTest(char4._x + 100, char4._y, true)) {
							_root.blocked = true;
						}
						if (char4._rotation == 180 && _root.subCollision.hitTest(char4._x, char4._y - 100, true)) {
							_root.blocked = true;
						}
						if (char4._rotation == 90 && _root.subCollision.hitTest(char4._x - 100, char4._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(7);
							giveDamage4trickshot();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char4.gotoAndStop(6);
						giveDamage4mindblast();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char4.gotoAndStop(7);
						giveDamage4mindshield();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char4.gotoAndStop(15);
						giveDamage4mindshield();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char4.gotoAndStop(12);
						giveDamage4bigshield();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char4.gotoAndStop(8);
						giveDamage4megashield();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char4.gotoAndStop(7);
						giveDamage4frostshield();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char4.gotoAndStop(8);
						giveDamage4frostblast();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char4.gotoAndStop(9);
						giveDamage4frostblast2();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(8);
							giveDamage4shadowblast();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(9);
							giveDamage4Darkvortex();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(8);
							giveDamage4pyroblast();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char4.gotoAndStop(8);
						giveDamage4firebreath();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(13);
							giveDamage4pyrohail();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char4.gotoAndStop(6);
						giveDamage4whirlwind();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char4.gotoAndStop(6);
						giveDamage4snakeeyes();
						char4Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(9);
							giveDamage4feedback();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'vengeance') {
						if (_root.blocked == false) {
							_root.char4.gotoAndStop(14);
							giveDamage4vengeance();
							char4Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char4Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char4._rotation == 0) {
							facing = 'down2';
						}
						if (char4._rotation == -90) {
							facing = 'right2';
						}
						if (char4._rotation == 180) {
							facing = 'up2';
						}
						if (char4._rotation == 90) {
							facing = 'left2';
						}
						char4.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char4Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char4._rotation == 0) {
							facing = 'down3';
						}
						if (char4._rotation == -90) {
							facing = 'right3';
						}
						if (char4._rotation == 180) {
							facing = 'up3';
						}
						if (char4._rotation == 90) {
							facing = 'left3';
						}
						char4.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 5) {
				if (char5._rotation == 0 && _root.subCollision.hitTest(char5._x, char5._y + 50, true)) {
					_root.blocked = true;
				}
				if (char5._rotation == -90 && _root.subCollision.hitTest(char5._x + 50, char5._y, true)) {
					_root.blocked = true;
				}
				if (char5._rotation == 180 && _root.subCollision.hitTest(char5._x, char5._y - 50, true)) {
					_root.blocked = true;
				}
				if (char5._rotation == 90 && _root.subCollision.hitTest(char5._x - 50, char5._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						_root.char5.gotoAndStop(2);
						giveDamage5melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						_root.char5.gotoAndStop(2);
						giveDamage5melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						_root.char5.gotoAndStop(7);
						giveDamage5melee();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char5.gotoAndStop(6);
						char5Drain += charAtkDrain;
						displayPsP();
						++MaxSteps5;
						if (charSteps == 0) {
							steps = MaxSteps5 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char5.gotoAndStop(6);
							giveDamage5fling();
							char5Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char5._rotation == 0 && _root.subCollision.hitTest(char5._x, char5._y + 100, true)) {
							_root.blocked = true;
						}
						if (char5._rotation == -90 && _root.subCollision.hitTest(char5._x + 100, char5._y, true)) {
							_root.blocked = true;
						}
						if (char5._rotation == 180 && _root.subCollision.hitTest(char5._x, char5._y - 100, true)) {
							_root.blocked = true;
						}
						if (char5._rotation == 90 && _root.subCollision.hitTest(char5._x - 100, char5._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char5.gotoAndStop(7);
							giveDamage5trickshot();
							char5Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char5.gotoAndStop(6);
						giveDamage5mindblast();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char5.gotoAndStop(7);
						giveDamage5mindshield();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char5.gotoAndStop(15);
						giveDamage5mindshield();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char5.gotoAndStop(12);
						giveDamage5bigshield();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char5.gotoAndStop(8);
						giveDamage5megashield();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char5.gotoAndStop(7);
						giveDamage5frostshield();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char5.gotoAndStop(8);
						giveDamage5frostblast();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char5.gotoAndStop(9);
						giveDamage5frostblast2();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char5.gotoAndStop(8);
							giveDamage5shadowblast();
							char5Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char5.gotoAndStop(9);
							giveDamage5Darkvortex();
							char5Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char5.gotoAndStop(8);
							giveDamage5pyroblast();
							char5Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char5.gotoAndStop(8);
						giveDamage5firebreath();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char5.gotoAndStop(13);
							giveDamage5pyrohail();
							char5Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char5.gotoAndStop(6);
						giveDamage5whirlwind();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char5.gotoAndStop(6);
						giveDamage5snakeeyes();
						char5Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char5.gotoAndStop(9);
							giveDamage5feedback();
							char5Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char5Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char5._rotation == 0) {
							facing = 'down2';
						}
						if (char5._rotation == -90) {
							facing = 'right2';
						}
						if (char5._rotation == 180) {
							facing = 'up2';
						}
						if (char5._rotation == 90) {
							facing = 'left2';
						}
						char5.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char5Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char5._rotation == 0) {
							facing = 'down3';
						}
						if (char5._rotation == -90) {
							facing = 'right3';
						}
						if (char5._rotation == 180) {
							facing = 'up3';
						}
						if (char5._rotation == 90) {
							facing = 'left3';
						}
						char5.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 6) {
				if (char6._rotation == 0 && _root.subCollision.hitTest(char6._x, char6._y + 50, true)) {
					_root.blocked = true;
				}
				if (char6._rotation == -90 && _root.subCollision.hitTest(char6._x + 50, char6._y, true)) {
					_root.blocked = true;
				}
				if (char6._rotation == 180 && _root.subCollision.hitTest(char6._x, char6._y - 50, true)) {
					_root.blocked = true;
				}
				if (char6._rotation == 90 && _root.subCollision.hitTest(char6._x - 50, char6._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						char6.gotoAndStop(2);
						giveDamage6melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						char6.gotoAndStop(2);
						giveDamage6melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						char6.gotoAndStop(7);
						giveDamage6melee();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char6.gotoAndStop(6);
						char6Drain += charAtkDrain;
						displayPsP();
						++MaxSteps6;
						if (charSteps == 0) {
							steps = MaxSteps6 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char6.gotoAndStop(6);
							giveDamage6fling();
							char6Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char6._rotation == 0 && _root.subCollision.hitTest(char6._x, char6._y + 100, true)) {
							_root.blocked = true;
						}
						if (char6._rotation == -90 && _root.subCollision.hitTest(char6._x + 100, char6._y, true)) {
							_root.blocked = true;
						}
						if (char6._rotation == 180 && _root.subCollision.hitTest(char6._x, char6._y - 100, true)) {
							_root.blocked = true;
						}
						if (char6._rotation == 90 && _root.subCollision.hitTest(char6._x - 100, char6._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char6.gotoAndStop(7);
							giveDamage6trickshot();
							char6Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char6.gotoAndStop(6);
						giveDamage6mindblast();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char6.gotoAndStop(7);
						giveDamage6mindshield();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char6.gotoAndStop(15);
						giveDamage6mindshield();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char6.gotoAndStop(12);
						giveDamage6bigshield();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char6.gotoAndStop(8);
						giveDamage6megashield();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char6.gotoAndStop(7);
						giveDamage6frostshield();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char6.gotoAndStop(8);
						giveDamage6frostblast();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char6.gotoAndStop(9);
						giveDamage6frostblast2();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char6.gotoAndStop(8);
							giveDamage6shadowblast();
							char6Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char6.gotoAndStop(9);
							giveDamage6Darkvortex();
							char6Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char6.gotoAndStop(8);
							giveDamage6pyroblast();
							char6Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char6.gotoAndStop(8);
						giveDamage6firebreath();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char6.gotoAndStop(13);
							giveDamage6pyrohail();
							char6Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char6.gotoAndStop(6);
						giveDamage6whirlwind();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char6.gotoAndStop(6);
						giveDamage6snakeeyes();
						char6Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char6.gotoAndStop(9);
							giveDamage6feedback();
							char6Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char6Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char6._rotation == 0) {
							facing = 'down2';
						}
						if (char6._rotation == -90) {
							facing = 'right2';
						}
						if (char6._rotation == 180) {
							facing = 'up2';
						}
						if (char6._rotation == 90) {
							facing = 'left2';
						}
						char6.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char6Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char6._rotation == 0) {
							facing = 'down3';
						}
						if (char6._rotation == -90) {
							facing = 'right3';
						}
						if (char6._rotation == 180) {
							facing = 'up3';
						}
						if (char6._rotation == 90) {
							facing = 'left3';
						}
						char6.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 7) {
				if (char7._rotation == 0 && _root.subCollision.hitTest(char7._x, char7._y + 50, true)) {
					_root.blocked = true;
				}
				if (char7._rotation == -90 && _root.subCollision.hitTest(char7._x + 50, char7._y, true)) {
					_root.blocked = true;
				}
				if (char7._rotation == 180 && _root.subCollision.hitTest(char7._x, char7._y - 50, true)) {
					_root.blocked = true;
				}
				if (char7._rotation == 90 && _root.subCollision.hitTest(char7._x - 50, char7._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						char7.gotoAndStop(2);
						giveDamage7melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						char7.gotoAndStop(2);
						giveDamage7melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						char7.gotoAndStop(7);
						giveDamage7melee();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char7.gotoAndStop(6);
						char7Drain += charAtkDrain;
						displayPsP();
						++MaxSteps7;
						if (charSteps == 0) {
							steps = MaxSteps7 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char7.gotoAndStop(6);
							giveDamage7fling();
							char7Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char7._rotation == 0 && _root.subCollision.hitTest(char7._x, char7._y + 100, true)) {
							_root.blocked = true;
						}
						if (char7._rotation == -90 && _root.subCollision.hitTest(char7._x + 100, char7._y, true)) {
							_root.blocked = true;
						}
						if (char7._rotation == 180 && _root.subCollision.hitTest(char7._x, char7._y - 100, true)) {
							_root.blocked = true;
						}
						if (char7._rotation == 90 && _root.subCollision.hitTest(char7._x - 100, char7._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char7.gotoAndStop(7);
							giveDamage7trickshot();
							char7Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char7.gotoAndStop(6);
						giveDamage7mindblast();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char7.gotoAndStop(7);
						giveDamage7mindshield();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char7.gotoAndStop(15);
						giveDamage7mindshield();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char7.gotoAndStop(12);
						giveDamage7bigshield();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char7.gotoAndStop(8);
						giveDamage7megashield();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char7.gotoAndStop(7);
						giveDamage7frostshield();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char7.gotoAndStop(8);
						giveDamage7frostblast();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char7.gotoAndStop(9);
						giveDamage7frostblast2();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char7.gotoAndStop(8);
							giveDamage7shadowblast();
							char7Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char7.gotoAndStop(9);
							giveDamage7Darkvortex();
							char7Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char7.gotoAndStop(8);
							giveDamage7pyroblast();
							char7Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char7.gotoAndStop(8);
						giveDamage7firebreath();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char7.gotoAndStop(13);
							giveDamage7pyrohail();
							char7Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char7.gotoAndStop(6);
						giveDamage7whirlwind();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char7.gotoAndStop(6);
						giveDamage7snakeeyes();
						char7Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char7.gotoAndStop(9);
							giveDamage7feedback();
							char7Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char7Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char7._rotation == 0) {
							facing = 'down2';
						}
						if (char7._rotation == -90) {
							facing = 'right2';
						}
						if (char7._rotation == 180) {
							facing = 'up2';
						}
						if (char7._rotation == 90) {
							facing = 'left2';
						}
						char7.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char7Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char7._rotation == 0) {
							facing = 'down3';
						}
						if (char7._rotation == -90) {
							facing = 'right3';
						}
						if (char7._rotation == 180) {
							facing = 'up3';
						}
						if (char7._rotation == 90) {
							facing = 'left3';
						}
						char7.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 8) {
				if (char8._rotation == 0 && _root.subCollision.hitTest(char8._x, char8._y + 50, true)) {
					_root.blocked = true;
				}
				if (char8._rotation == -90 && _root.subCollision.hitTest(char8._x + 50, char8._y, true)) {
					_root.blocked = true;
				}
				if (char8._rotation == 180 && _root.subCollision.hitTest(char8._x, char8._y - 50, true)) {
					_root.blocked = true;
				}
				if (char8._rotation == 90 && _root.subCollision.hitTest(char8._x - 50, char8._y, true)) {
					_root.blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = _root.charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = _root.charName + ' misses!';
					if (chosenAttack == 'melee') {
						char8.gotoAndStop(2);
						giveDamage8melee();
						attacked = 1;
					}
					if (chosenAttack == 'knife') {
						char8.gotoAndStop(2);
						giveDamage8melee();
						attacked = 1;
					}
					if (chosenAttack == 'spinsaw') {
						char8.gotoAndStop(7);
						giveDamage8melee();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'steamengine') {
						char8.gotoAndStop(6);
						char8Drain += charAtkDrain;
						displayPsP();
						++MaxSteps8;
						if (charSteps == 0) {
							steps = MaxSteps8 - 1;
						}
						displaySteps();
						pspSpent += charAtkDrain;
						++speedIncreased;
						++steamEngineDrain;
						display = _root.charName + ' boosts speed!';
						attacked = 1;
					}
					if (chosenAttack == 'fling') {
						if (_root.blocked == false) {
							_root.char8.gotoAndStop(6);
							giveDamage8fling();
							char8Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'trickshot') {
						if (char8._rotation == 0 && _root.subCollision.hitTest(char8._x, char8._y + 100, true)) {
							_root.blocked = true;
						}
						if (char8._rotation == -90 && _root.subCollision.hitTest(char8._x + 100, char8._y, true)) {
							_root.blocked = true;
						}
						if (char8._rotation == 180 && _root.subCollision.hitTest(char8._x, char8._y - 100, true)) {
							_root.blocked = true;
						}
						if (char8._rotation == 90 && _root.subCollision.hitTest(char8._x - 100, char8._y, true)) {
							_root.blocked = true;
						}
						if (_root.blocked == false) {
							_root.char8.gotoAndStop(7);
							giveDamage8trickshot();
							char8Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'mindblast') {
						_root.char8.gotoAndStop(6);
						giveDamage8mindblast();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						_root.char8.gotoAndStop(7);
						giveDamage8mindshield();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'farshield') {
						_root.char8.gotoAndStop(15);
						giveDamage8mindshield();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'bigshield') {
						_root.char8.gotoAndStop(12);
						giveDamage8bigshield();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'megashield') {
						_root.char8.gotoAndStop(8);
						giveDamage8megashield();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostshield') {
						_root.char8.gotoAndStop(7);
						giveDamage8frostshield();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast') {
						_root.char8.gotoAndStop(8);
						giveDamage8frostblast();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'frostblast2') {
						_root.char8.gotoAndStop(9);
						giveDamage8frostblast2();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'shadowblast') {
						if (_root.blocked == false) {
							_root.char8.gotoAndStop(8);
							giveDamage8shadowblast();
							char8Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'darkvortex') {
						if (_root.blocked == false) {
							_root.char8.gotoAndStop(9);
							giveDamage8Darkvortex();
							char8Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'pyroblast') {
						if (_root.blocked == false) {
							_root.char8.gotoAndStop(8);
							giveDamage8pyroblast();
							char8Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'firebreath') {
						_root.char8.gotoAndStop(8);
						giveDamage8firebreath();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'pyrohail') {
						if (_root.blocked == false) {
							_root.char8.gotoAndStop(13);
							giveDamage8pyrohail();
							char8Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'whirlwind') {
						_root.char8.gotoAndStop(6);
						giveDamage8whirlwind();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'snakeeyes') {
						_root.char8.gotoAndStop(6);
						giveDamage8snakeeyes();
						char8Drain += charAtkDrain;
						displayPsP();
						attacked = 1;
					}
					if (chosenAttack == 'feedback') {
						if (_root.blocked == false) {
							_root.char8.gotoAndStop(9);
							giveDamage8feedback();
							char8Drain += charAtkDrain;
							displayPsP();
							attacked = 1;
						}
						if (_root.blocked == true) {
							display = 'Cannot attack through walls!';
							_root.blocked = false;
						}
					}
					if (chosenAttack == 'shadowport1') {
						blocked = false;
						char8Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char8._rotation == 0) {
							facing = 'down2';
						}
						if (char8._rotation == -90) {
							facing = 'right2';
						}
						if (char8._rotation == 180) {
							facing = 'up2';
						}
						if (char8._rotation == 90) {
							facing = 'left2';
						}
						char8.gotoAndStop(12);
					}
					if (chosenAttack == 'shadowport2') {
						blocked = false;
						char8Drain += charAtkDrain;
						displayPsP();
						pspSpent += charAtkDrain;
						attacked = 1;
						display = _root.charName + ' shadowports!';
						if (char8._rotation == 0) {
							facing = 'down3';
						}
						if (char8._rotation == -90) {
							facing = 'right3';
						}
						if (char8._rotation == 180) {
							facing = 'up3';
						}
						if (char8._rotation == 90) {
							facing = 'left3';
						}
						char8.gotoAndStop(12);
					}
				}
			}
			if (_root.moveTurn == 9) {
				if (chosenAttack == 'mindblast') {
					char9.gotoAndStop(6);
					giveDamage9mindblast();
					char9Drain += charAtkDrain;
					displayPsP();
					attacked = 1;
				}
			}
			if (moveTurn == 16) {
				if (char16AttackType1 == 'darkbreath') {
					char16.gotoAndStop(2);
					giveDamage16C();
				} else {
					if (char16AttackType1 !== 'megashield' && char16AttackType1 !== 'bigshield') {
						char16.gotoAndStop(2);
						giveDamage16();
					} else {
						char16.gotoAndStop(8);
						giveDamage16B();
					}
				}
			}
			if (moveTurn == 17) {
				if (char17AttackType1 !== 'megashield' && char17AttackType1 !== 'bigshield') {
					char17.gotoAndStop(2);
					giveDamage17();
				} else {
					char17.gotoAndStop(8);
					giveDamage17B();
				}
			}
			if (moveTurn == 18) {
				if (char18AttackType1 !== 'megashield' && char18AttackType1 !== 'bigshield') {
					char18.gotoAndStop(2);
					giveDamage18();
				} else {
					char18.gotoAndStop(8);
					giveDamage18B();
				}
			}
			if (moveTurn == 19) {
				if (char19AttackType1 !== 'megashield' && char19AttackType1 !== 'bigshield') {
					char19.gotoAndStop(2);
					giveDamage19();
				} else {
					char19.gotoAndStop(8);
					giveDamage19B();
				}
			}
			if (moveTurn == 20) {
				if (char20AttackType1 !== 'megashield' && char20AttackType1 !== 'bigshield') {
					char20.gotoAndStop(2);
					giveDamage20();
				} else {
					char20.gotoAndStop(8);
					giveDamage20B();
				}
			}
			if (moveTurn == 21) {
				if (char21AttackType1 !== 'megashield' && char21AttackType1 !== 'bigshield') {
					char21.gotoAndStop(2);
					giveDamage21();
				} else {
					char21.gotoAndStop(8);
					giveDamage21B();
				}
			}
			if (moveTurn == 22) {
				if (char22AttackType1 == 'darkbreath') {
					char22.gotoAndStop(2);
					giveDamage22C();
				} else {
					if (char22AttackType1 !== 'megashield' && char22AttackType1 !== 'bigshield') {
						char22.gotoAndStop(2);
						giveDamage22();
					} else {
						char22.gotoAndStop(8);
						giveDamage22B();
					}
				}
			}
			if (moveTurn == 23) {
				if (char23AttackType1 == 'darkbreath') {
					char23.gotoAndStop(2);
					giveDamage23C();
				} else {
					if (char23AttackType1 !== 'megashield' && char23AttackType1 !== 'bigshield') {
						char23.gotoAndStop(2);
						giveDamage23();
					} else {
						char23.gotoAndStop(8);
						giveDamage23B();
					}
				}
			}
			if (moveTurn == 24) {
				if (char24AttackType1 !== 'megashield' && char24AttackType1 !== 'bigshield') {
					char24.gotoAndStop(2);
					giveDamage24();
				} else {
					char24.gotoAndStop(8);
					giveDamage24B();
				}
			}
			if (moveTurn == 25) {
				if (char25AttackType1 == 'shockwave') {
					char25.gotoAndStop(2);
					giveDamage25D();
				} else {
					if (char25AttackType1 !== 'megashield' && char25AttackType1 !== 'bigshield') {
						char25.gotoAndStop(2);
						giveDamage25();
					} else {
						char25.gotoAndStop(8);
						giveDamage25B();
					}
				}
			}
		}
		function checkDeath() {
			if (char1Damage >= MaxHP1 && !char1Dead) {
				totalDead += 1;
				char1Dead = true;
				_root.char1.gotoAndStop(4);
			}
			if (char2Damage >= MaxHP2 && !char2Dead) {
				totalDead += 1;
				char2Dead = true;
				_root.char2.gotoAndStop(4);
			}
			if (char3Damage >= MaxHP3 && !char3Dead) {
				totalDead += 1;
				char3Dead = true;
				_root.char3.gotoAndStop(4);
			}
			if (char4Damage >= MaxHP4 && !char4Dead) {
				totalDead += 1;
				char4Dead = true;
				_root.char4.gotoAndStop(4);
			}
			if (char5Damage >= MaxHP5 && !char5Dead) {
				totalDead += 1;
				char5Dead = true;
				_root.char5.gotoAndStop(4);
			}
			if (char6Damage >= MaxHP6 && !char6Dead) {
				totalDead += 1;
				char6Dead = true;
				_root.char6.gotoAndStop(4);
			}
			if (char7Damage >= MaxHP7 && !char7Dead) {
				totalDead += 1;
				char7Dead = true;
				_root.char7.gotoAndStop(4);
			}
			if (char8Damage >= MaxHP8 && !char8Dead) {
				totalDead += 1;
				char8Dead = true;
				_root.char8.gotoAndStop(4);
			}
			if (char9Damage >= MaxHP9 && !char9Dead) {
				totalDead += 1;
				char9Dead = true;
				_root.char9.gotoAndStop(4);
			}
			if (char16Damage >= MaxHP16 && !char16Dead) {
				char16Dead = true;
				_root.char16.gotoAndStop(4);
			}
			if (char17Damage >= MaxHP17 && !char17Dead) {
				char17Dead = true;
				_root.char17.gotoAndStop(4);
			}
			if (char18Damage >= MaxHP18 && !char18Dead) {
				char18Dead = true;
				_root.char18.gotoAndStop(4);
			}
			if (char19Damage >= MaxHP19 && !char19Dead) {
				char19Dead = true;
				_root.char19.gotoAndStop(4);
			}
			if (char20Damage >= MaxHP20 && !char20Dead) {
				char20Dead = true;
				_root.char20.gotoAndStop(4);
			}
			if (char21Damage >= MaxHP21 && !char21Dead) {
				char21Dead = true;
				_root.char21.gotoAndStop(4);
			}
			if (char22Damage >= MaxHP22 && !char22Dead) {
				char22Dead = true;
				_root.char22.gotoAndStop(4);
			}
			if (char23Damage >= MaxHP23 && !char23Dead) {
				char23Dead = true;
				_root.char23.gotoAndStop(4);
			}
			if (char24Damage >= MaxHP24 && !char24Dead) {
				char24Dead = true;
				_root.char24.gotoAndStop(4);
			}
			if (char25Damage >= MaxHP25 && !char25Dead) {
				char25Dead = true;
				_root.char25.gotoAndStop(4);
			}
			checkedForDead = true;
		}
		function undoMove() {
			if (_root.moveTurn == 1) {
				_root.char1._rotation = 0;
				_root.char1._x = _root.startX;
				_root.char1._y = _root.startY;
				_root.steps = 0;
				char1Drain -= pspSpent;
				MaxSteps1 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 2) {
				_root.char2._rotation = 0;
				_root.char2._x = _root.startX;
				_root.char2._y = _root.startY;
				_root.steps = 0;
				char2Drain -= pspSpent;
				MaxSteps2 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 3) {
				_root.char3._rotation = 0;
				_root.char3._x = _root.startX;
				_root.char3._y = _root.startY;
				_root.steps = 0;
				char3Drain -= pspSpent;
				MaxSteps3 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 4) {
				_root.char4._rotation = 0;
				_root.char4._x = _root.startX;
				_root.char4._y = _root.startY;
				_root.steps = 0;
				char4Drain -= pspSpent;
				MaxSteps4 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 5) {
				_root.char5._rotation = 0;
				_root.char5._x = _root.startX;
				_root.char5._y = _root.startY;
				_root.steps = 0;
				char5Drain -= pspSpent;
				MaxSteps5 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 6) {
				_root.char6._rotation = 0;
				_root.char6._x = _root.startX;
				_root.char6._y = _root.startY;
				_root.steps = 0;
				char6Drain -= pspSpent;
				MaxSteps6 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 7) {
				_root.char7._rotation = 0;
				_root.char7._x = _root.startX;
				_root.char7._y = _root.startY;
				_root.steps = 0;
				char7Drain -= pspSpent;
				MaxSteps7 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 8) {
				_root.char8._rotation = 0;
				_root.char8._x = _root.startX;
				_root.char8._y = _root.startY;
				_root.steps = 0;
				char8Drain -= pspSpent;
				MaxSteps8 -= speedIncreased;
				steamEngineDrain -= speedIncreased;
				displayPsP();
				pspSpent = 0;
				speedIncreased = 0;
			}
			if (_root.moveTurn == 9) {
				_root.char9._rotation = 0;
				_root.char9._x = _root.startX;
				_root.char9._y = _root.startY;
				_root.steps = 0;
			}
			if (_root.moveTurn == 10) {
				_root.char10._rotation = 0;
				_root.char10._x = _root.startX;
				_root.char10._y = _root.startY;
				_root.steps = 0;
			}
			if (_root.moveTurn == 11) {
				_root.char11._rotation = 0;
				_root.char11._x = _root.startX;
				_root.char11._y = _root.startY;
				_root.steps = 0;
			}
			if (_root.moveTurn == 12) {
				_root.char12._rotation = 0;
				_root.char12._x = _root.startX;
				_root.char12._y = _root.startY;
				_root.steps = 0;
			}
			if (_root.moveTurn == 13) {
				_root.char13._rotation = 0;
				_root.char13._x = _root.startX;
				_root.char13._y = _root.startY;
				_root.steps = 0;
			}
			if (_root.moveTurn == 14) {
				_root.char14._rotation = 0;
				_root.char14._x = _root.startX;
				_root.char14._y = _root.startY;
				_root.steps = 0;
			}
			if (_root.moveTurn == 15) {
				_root.char15._rotation = 0;
				_root.char15._x = _root.startX;
				_root.char15._y = _root.startY;
				_root.steps = 0;
			}
		}
		function rotateCW1() {
			char1._rotation += 90;
		}
		function rotateCW2() {
			char2._rotation += 90;
		}
		function rotateCW3() {
			char3._rotation += 90;
		}
		function rotateCW4() {
			char4._rotation += 90;
		}
		function rotateCW5() {
			char5._rotation += 90;
		}
		function rotateCW6() {
			char6._rotation += 90;
		}
		function rotateCW7() {
			char7._rotation += 90;
		}
		function rotateCW8() {
			char8._rotation += 90;
		}
		function rotateCW9() {
			char9._rotation += 90;
		}
		function rotateCCW1() {
			char1._rotation -= 90;
		}
		function rotateCCW2() {
			char2._rotation -= 90;
		}
		function rotateCCW3() {
			char3._rotation -= 90;
		}
		function rotateCCW4() {
			char4._rotation -= 90;
		}
		function rotateCCW5() {
			char5._rotation -= 90;
		}
		function rotateCCW6() {
			char6._rotation -= 90;
		}
		function rotateCCW7() {
			char7._rotation -= 90;
		}
		function rotateCCW8() {
			char8._rotation -= 90;
		}
		function rotateCCW9() {
			char9._rotation -= 90;
		}
		function clearBattlefield() {
			_root.char1.swapDepths(28);
			_root.char2.swapDepths(29);
			_root.char3.swapDepths(30);
			_root.char4.swapDepths(31);
			_root.char5.swapDepths(32);
			_root.char6.swapDepths(33);
			_root.char7.swapDepths(34);
			_root.char8.swapDepths(35);
			_root.char9.swapDepths(36);
			_root.char16.swapDepths(37);
			_root.char17.swapDepths(38);
			_root.char18.swapDepths(39);
			_root.char19.swapDepths(40);
			_root.char20.swapDepths(41);
			_root.char21.swapDepths(42);
			_root.char22.swapDepths(43);
			_root.char23.swapDepths(44);
			_root.char24.swapDepths(45);
			_root.char25.swapDepths(46);
			_root.char1.removeMovieClip();
			_root.char2.removeMovieClip();
			_root.char3.removeMovieClip();
			_root.char4.removeMovieClip();
			_root.char5.removeMovieClip();
			_root.char6.removeMovieClip();
			_root.char7.removeMovieClip();
			_root.char8.removeMovieClip();
			_root.char9.removeMovieClip();
			_root.char10.removeMovieClip();
			_root.char11.removeMovieClip();
			_root.char12.removeMovieClip();
			_root.char13.removeMovieClip();
			_root.char14.removeMovieClip();
			_root.char15.removeMovieClip();
			_root.char16.removeMovieClip();
			_root.char17.removeMovieClip();
			_root.char18.removeMovieClip();
			_root.char19.removeMovieClip();
			_root.char20.removeMovieClip();
			_root.char21.removeMovieClip();
			_root.char22.removeMovieClip();
			_root.char23.removeMovieClip();
			_root.char24.removeMovieClip();
			_root.char25.removeMovieClip();
			_root.Overhead.removeMovieClip();
			_root.Darkness_opacity50.removeMovieClip();
			_root.victoryBox.removeMovieClip();
			_root.defeatBox.removeMovieClip();
			_root.SafetyBonusGUI.removeMovieClip();
			if (whichBattle !== 'townfight01' && whichBattle !== 'townfight02' && whichBattle !== 'townfight03') {
				if (whichBattle !== 'mission05B' && whichBattle !== 'mission05C' && whichBattle !== 'mission05D' && whichBattle !== 'mission05E' && whichBattle !== 'mission05F') {
					if (char1Dead == true) {
						if (slot1 == 'Darkling') {
							darklingDead = true;
						}
						if (slot1 == 'Shadowboxer') {
							shadowboxerDead = true;
						}
						if (slot1 == 'Festus') {
							festusDead = true;
						}
						if (slot1 == 'Niven') {
							nivenDead = true;
						}
						if (slot1 == 'Flint') {
							flintDead = true;
						}
						if (slot1 == 'Helena') {
							helenaDead = true;
						}
						if (slot1 == 'Grotius') {
							grotiusDead = true;
						}
						if (slot1 == 'Anya') {
							anyaDead = true;
						}
						if (slot1 == 'Guy') {
							guyDead = true;
						}
						if (slot1 == 'Dorgon') {
							dorgonDead = true;
						}
						if (slot1 == 'Gamblin\' Jack') {
							jackDead = true;
						}
						if (slot1 == 'Luca') {
							lucaDead = true;
						}
						if (slot1 == 'Magellan') {
							magellanDead = true;
						}
						if (slot1 == 'Xerxes') {
							xerxesDead = true;
						}
					}
					if (char2Dead == true) {
						if (slot2 == 'Darkling') {
							darklingDead = true;
						}
						if (slot2 == 'Shadowboxer') {
							shadowboxerDead = true;
						}
						if (slot2 == 'Festus') {
							festusDead = true;
						}
						if (slot2 == 'Niven') {
							nivenDead = true;
						}
						if (slot2 == 'Flint') {
							flintDead = true;
						}
						if (slot2 == 'Helena') {
							helenaDead = true;
						}
						if (slot2 == 'Grotius') {
							grotiusDead = true;
						}
						if (slot2 == 'Anya') {
							anyaDead = true;
						}
						if (slot2 == 'Guy') {
							guyDead = true;
						}
						if (slot2 == 'Dorgon') {
							dorgonDead = true;
						}
						if (slot2 == 'Gamblin\' Jack') {
							jackDead = true;
						}
						if (slot2 == 'Luca') {
							lucaDead = true;
						}
						if (slot2 == 'Magellan') {
							magellanDead = true;
						}
						if (slot2 == 'Xerxes') {
							xerxesDead = true;
						}
					}
					if (char3Dead == true) {
						if (slot3 == 'Darkling') {
							darklingDead = true;
						}
						if (slot3 == 'Shadowboxer') {
							shadowboxerDead = true;
						}
						if (slot3 == 'Festus') {
							festusDead = true;
						}
						if (slot3 == 'Niven') {
							nivenDead = true;
						}
						if (slot3 == 'Flint') {
							flintDead = true;
						}
						if (slot3 == 'Helena') {
							helenaDead = true;
						}
						if (slot3 == 'Grotius') {
							grotiusDead = true;
						}
						if (slot3 == 'Anya') {
							anyaDead = true;
						}
						if (slot3 == 'Guy') {
							guyDead = true;
						}
						if (slot3 == 'Dorgon') {
							dorgonDead = true;
						}
						if (slot3 == 'Gamblin\' Jack') {
							jackDead = true;
						}
						if (slot3 == 'Luca') {
							lucaDead = true;
						}
						if (slot3 == 'Magellan') {
							magellanDead = true;
						}
						if (slot3 == 'Xerxes') {
							xerxesDead = true;
						}
					}
					if (char5Dead == true) {
						if (slot5 == 'Darkling') {
							darklingDead = true;
						}
						if (slot5 == 'Shadowboxer') {
							shadowboxerDead = true;
						}
						if (slot5 == 'Festus') {
							festusDead = true;
						}
						if (slot5 == 'Niven') {
							nivenDead = true;
						}
						if (slot5 == 'Flint') {
							flintDead = true;
						}
						if (slot5 == 'Helena') {
							helenaDead = true;
						}
						if (slot5 == 'Grotius') {
							grotiusDead = true;
						}
						if (slot5 == 'Anya') {
							anyaDead = true;
						}
						if (slot5 == 'Guy') {
							guyDead = true;
						}
						if (slot5 == 'Dorgon') {
							dorgonDead = true;
						}
						if (slot5 == 'Gamblin\' Jack') {
							jackDead = true;
						}
						if (slot5 == 'Luca') {
							lucaDead = true;
						}
						if (slot5 == 'Magellan') {
							magellanDead = true;
						}
						if (slot5 == 'Xerxes') {
							xerxesDead = true;
						}
					}
					if (char6Dead == true) {
						if (slot6 == 'Darkling') {
							darklingDead = true;
						}
						if (slot6 == 'Shadowboxer') {
							shadowboxerDead = true;
						}
						if (slot6 == 'Festus') {
							festusDead = true;
						}
						if (slot6 == 'Niven') {
							nivenDead = true;
						}
						if (slot6 == 'Flint') {
							flintDead = true;
						}
						if (slot6 == 'Helena') {
							helenaDead = true;
						}
						if (slot6 == 'Grotius') {
							grotiusDead = true;
						}
						if (slot6 == 'Anya') {
							anyaDead = true;
						}
						if (slot6 == 'Guy') {
							guyDead = true;
						}
						if (slot6 == 'Dorgon') {
							dorgonDead = true;
						}
						if (slot6 == 'Gamblin\' Jack') {
							jackDead = true;
						}
						if (slot6 == 'Luca') {
							lucaDead = true;
						}
						if (slot6 == 'Magellan') {
							magellanDead = true;
						}
						if (slot6 == 'Xerxes') {
							xerxesDead = true;
						}
					}
					if (char7Dead == true) {
						if (slot7 == 'Darkling') {
							darklingDead = true;
						}
						if (slot7 == 'Shadowboxer') {
							shadowboxerDead = true;
						}
						if (slot7 == 'Festus') {
							festusDead = true;
						}
						if (slot7 == 'Niven') {
							nivenDead = true;
						}
						if (slot7 == 'Flint') {
							flintDead = true;
						}
						if (slot7 == 'Helena') {
							helenaDead = true;
						}
						if (slot7 == 'Grotius') {
							grotiusDead = true;
						}
						if (slot7 == 'Anya') {
							anyaDead = true;
						}
						if (slot7 == 'Guy') {
							guyDead = true;
						}
						if (slot7 == 'Dorgon') {
							dorgonDead = true;
						}
						if (slot7 == 'Gamblin\' Jack') {
							jackDead = true;
						}
						if (slot7 == 'Luca') {
							lucaDead = true;
						}
						if (slot7 == 'Magellan') {
							magellanDead = true;
						}
						if (slot7 == 'Xerxes') {
							xerxesDead = true;
						}
					}
					if (char8Dead == true) {
						if (slot8 == 'Darkling') {
							darklingDead = true;
						}
						if (slot8 == 'Shadowboxer') {
							shadowboxerDead = true;
						}
						if (slot8 == 'Festus') {
							festusDead = true;
						}
						if (slot8 == 'Niven') {
							nivenDead = true;
						}
						if (slot8 == 'Flint') {
							flintDead = true;
						}
						if (slot8 == 'Helena') {
							helenaDead = true;
						}
						if (slot8 == 'Grotius') {
							grotiusDead = true;
						}
						if (slot8 == 'Anya') {
							anyaDead = true;
						}
						if (slot8 == 'Guy') {
							guyDead = true;
						}
						if (slot8 == 'Dorgon') {
							dorgonDead = true;
						}
						if (slot8 == 'Gamblin\' Jack') {
							jackDead = true;
						}
						if (slot8 == 'Luca') {
							lucaDead = true;
						}
						if (slot8 == 'Magellan') {
							magellanDead = true;
						}
						if (slot8 == 'Xerxes') {
							xerxesDead = true;
						}
					}
				}
			}
		}
		function enemyMove() {
			if (moveTurn == 16) {
				enemyMove_16();
			}
			if (moveTurn == 17) {
				enemyMove_17();
			}
			if (moveTurn == 18) {
				enemyMove_18();
			}
			if (moveTurn == 19) {
				enemyMove_19();
			}
			if (moveTurn == 20) {
				enemyMove_20();
			}
			if (moveTurn == 21) {
				enemyMove_21();
			}
			if (moveTurn == 22) {
				enemyMove_22();
			}
			if (moveTurn == 23) {
				enemyMove_23();
			}
			if (moveTurn == 24) {
				enemyMove_24();
			}
			if (moveTurn == 25) {
				enemyMove_25();
			}
		}
		function enemyMoveB() {
			if (moveTurn == 16) {
				enemyMove_16B();
			}
			if (moveTurn == 17) {
				enemyMove_17B();
			}
			if (moveTurn == 18) {
				enemyMove_18B();
			}
			if (moveTurn == 19) {
				enemyMove_19B();
			}
			if (moveTurn == 20) {
				enemyMove_20B();
			}
			if (moveTurn == 21) {
				enemyMove_21B();
			}
			if (moveTurn == 22) {
				enemyMove_22B();
			}
			if (moveTurn == 23) {
				enemyMove_23B();
			}
			if (moveTurn == 24) {
				enemyMove_24B();
			}
			if (moveTurn == 25) {
				enemyMove_25B();
			}
		}
		function enemyMove_16() {
			if (char4._x == char16._x && char4._y < char16._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char16._y -= 100;
				char16._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char16._x && char4._y > char16._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char16._y += 100;
				char16._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && char4._y == char16._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char16._x += 100;
				char16._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && char4._y == char16._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char16._x -= 100;
				char16._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && char4._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char16._x -= 50;
				char16._y -= 50;
				char16._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && char4._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char16._x -= 50;
				char16._y -= 50;
				char16._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && char4._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char16._x -= 50;
				char16._y += 50;
				char16._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && char4._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char16._x -= 50;
				char16._y += 50;
				char16._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && char4._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char16._x += 50;
				char16._y -= 50;
				char16._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && char4._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char16._x += 50;
				char16._y -= 50;
				char16._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && char4._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char16._x += 50;
				char16._y += 50;
				char16._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && char4._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char16._x += 50;
				char16._y += 50;
				char16._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char16._x -= 50;
				char16._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char16._x += 50;
				char16._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char16._y -= 50;
				char16._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char16._y += 50;
				char16._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char16._y -= 50;
				char16._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char16._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char16._y += 50;
				char16._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char16._y -= 50;
				char16._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char16._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char16._y += 50;
				char16._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char16._x -= 50;
				char16._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char16._x += 50;
				char16._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char16._x -= 50;
				char16._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char16._x += 50;
				char16._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_17() {
			if (char4._x == char17._x && char4._y < char17._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char17._y -= 100;
				char17._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char17._x && char4._y > char17._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char17._y += 100;
				char17._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && char4._y == char17._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char17._x += 100;
				char17._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && char4._y == char17._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char17._x -= 100;
				char17._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && char4._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char17._x -= 50;
				char17._y -= 50;
				char17._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && char4._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char17._x -= 50;
				char17._y -= 50;
				char17._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && char4._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char17._x -= 50;
				char17._y += 50;
				char17._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && char4._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char17._x -= 50;
				char17._y += 50;
				char17._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && char4._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char17._x += 50;
				char17._y -= 50;
				char17._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && char4._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char17._x += 50;
				char17._y -= 50;
				char17._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && char4._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char17._x += 50;
				char17._y += 50;
				char17._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && char4._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char17._x += 50;
				char17._y += 50;
				char17._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char17._x -= 50;
				char17._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char17._x += 50;
				char17._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char17._y -= 50;
				char17._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char17._y += 50;
				char17._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char17._y -= 50;
				char17._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char17._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char17._y += 50;
				char17._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char17._y -= 50;
				char17._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char17._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char17._y += 50;
				char17._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char17._x -= 50;
				char17._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char17._x += 50;
				char17._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char17._x -= 50;
				char17._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char17._x += 50;
				char17._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_18() {
			if (char4._x == char18._x && char4._y < char18._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char18._y -= 100;
				char18._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char18._x && char4._y > char18._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char18._y += 100;
				char18._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && char4._y == char18._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char18._x += 100;
				char18._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && char4._y == char18._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char18._x -= 100;
				char18._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && char4._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char18._x -= 50;
				char18._y -= 50;
				char18._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && char4._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char18._x -= 50;
				char18._y -= 50;
				char18._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && char4._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char18._x -= 50;
				char18._y += 50;
				char18._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && char4._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char18._x -= 50;
				char18._y += 50;
				char18._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && char4._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char18._x += 50;
				char18._y -= 50;
				char18._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && char4._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char18._x += 50;
				char18._y -= 50;
				char18._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && char4._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char18._x += 50;
				char18._y += 50;
				char18._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && char4._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char18._x += 50;
				char18._y += 50;
				char18._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char18._x -= 50;
				char18._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char18._x += 50;
				char18._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char18._y -= 50;
				char18._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char18._y += 50;
				char18._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char18._y -= 50;
				char18._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char18._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char18._y += 50;
				char18._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char18._y -= 50;
				char18._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char18._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char18._y += 50;
				char18._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char18._x -= 50;
				char18._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char18._x += 50;
				char18._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char18._x -= 50;
				char18._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char18._x += 50;
				char18._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_19() {
			if (char4._x == char19._x && char4._y < char19._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char19._y -= 100;
				char19._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char19._x && char4._y > char19._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char19._y += 100;
				char19._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && char4._y == char19._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char19._x += 100;
				char19._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && char4._y == char19._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char19._x -= 100;
				char19._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && char4._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char19._x -= 50;
				char19._y -= 50;
				char19._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && char4._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char19._x -= 50;
				char19._y -= 50;
				char19._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && char4._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char19._x -= 50;
				char19._y += 50;
				char19._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && char4._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char19._x -= 50;
				char19._y += 50;
				char19._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && char4._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char19._x += 50;
				char19._y -= 50;
				char19._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && char4._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char19._x += 50;
				char19._y -= 50;
				char19._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && char4._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char19._x += 50;
				char19._y += 50;
				char19._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && char4._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char19._x += 50;
				char19._y += 50;
				char19._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char19._x -= 50;
				char19._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char19._x += 50;
				char19._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char19._y -= 50;
				char19._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char19._y += 50;
				char19._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char19._y -= 50;
				char19._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char19._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char19._y += 50;
				char19._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char19._y -= 50;
				char19._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char19._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char19._y += 50;
				char19._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char19._x -= 50;
				char19._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char19._x += 50;
				char19._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char19._x -= 50;
				char19._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char19._x += 50;
				char19._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_20() {
			if (char4._x == char20._x && char4._y < char20._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char20._y -= 100;
				char20._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char20._x && char4._y > char20._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char20._y += 100;
				char20._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && char4._y == char20._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char20._x += 100;
				char20._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && char4._y == char20._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char20._x -= 100;
				char20._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && char4._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char20._x -= 50;
				char20._y -= 50;
				char20._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && char4._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char20._x -= 50;
				char20._y -= 50;
				char20._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && char4._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char20._x -= 50;
				char20._y += 50;
				char20._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && char4._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char20._x -= 50;
				char20._y += 50;
				char20._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && char4._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char20._x += 50;
				char20._y -= 50;
				char20._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && char4._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char20._x += 50;
				char20._y -= 50;
				char20._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && char4._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char20._x += 50;
				char20._y += 50;
				char20._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && char4._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char20._x += 50;
				char20._y += 50;
				char20._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char20._x -= 50;
				char20._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char20._x += 50;
				char20._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char20._y -= 50;
				char20._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char20._y += 50;
				char20._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char20._y -= 50;
				char20._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char20._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char20._y += 50;
				char20._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char20._y -= 50;
				char20._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char20._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char20._y += 50;
				char20._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char20._x -= 50;
				char20._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char20._x += 50;
				char20._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char20._x -= 50;
				char20._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char20._x += 50;
				char20._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_21() {
			if (char4._x == char21._x && char4._y < char21._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char21._y -= 100;
				char21._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char21._x && char4._y > char21._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char21._y += 100;
				char21._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && char4._y == char21._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char21._x += 100;
				char21._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && char4._y == char21._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char21._x -= 100;
				char21._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && char4._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char21._x -= 50;
				char21._y -= 50;
				char21._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && char4._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char21._x -= 50;
				char21._y -= 50;
				char21._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && char4._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char21._x -= 50;
				char21._y += 50;
				char21._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && char4._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char21._x -= 50;
				char21._y += 50;
				char21._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && char4._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char21._x += 50;
				char21._y -= 50;
				char21._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && char4._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char21._x += 50;
				char21._y -= 50;
				char21._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && char4._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char21._x += 50;
				char21._y += 50;
				char21._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && char4._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char21._x += 50;
				char21._y += 50;
				char21._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char21._x -= 50;
				char21._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char21._x += 50;
				char21._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char21._y -= 50;
				char21._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char21._y += 50;
				char21._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char21._y -= 50;
				char21._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char21._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char21._y += 50;
				char21._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char21._y -= 50;
				char21._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char21._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char21._y += 50;
				char21._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char21._x -= 50;
				char21._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char21._x += 50;
				char21._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char21._x -= 50;
				char21._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char21._x += 50;
				char21._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_22() {
			if (char4._x == char22._x && char4._y < char22._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char22._y -= 100;
				char22._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char22._x && char4._y > char22._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char22._y += 100;
				char22._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && char4._y == char22._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char22._x += 100;
				char22._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && char4._y == char22._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char22._x -= 100;
				char22._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && char4._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char22._x -= 50;
				char22._y -= 50;
				char22._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && char4._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char22._x -= 50;
				char22._y -= 50;
				char22._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && char4._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char22._x -= 50;
				char22._y += 50;
				char22._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && char4._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char22._x -= 50;
				char22._y += 50;
				char22._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && char4._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char22._x += 50;
				char22._y -= 50;
				char22._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && char4._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char22._x += 50;
				char22._y -= 50;
				char22._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && char4._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char22._x += 50;
				char22._y += 50;
				char22._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && char4._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char22._x += 50;
				char22._y += 50;
				char22._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char22._x -= 50;
				char22._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char22._x += 50;
				char22._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char22._y -= 50;
				char22._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char22._y += 50;
				char22._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char22._y -= 50;
				char22._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char22._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char22._y += 50;
				char22._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char22._y -= 50;
				char22._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char22._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char22._y += 50;
				char22._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char22._x -= 50;
				char22._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char22._x += 50;
				char22._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char22._x -= 50;
				char22._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char22._x += 50;
				char22._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_23() {
			if (char4._x == char23._x && char4._y < char23._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char23._y -= 100;
				char23._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char23._x && char4._y > char23._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char23._y += 100;
				char23._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && char4._y == char23._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char23._x += 100;
				char23._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && char4._y == char23._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char23._x -= 100;
				char23._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && char4._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char23._x -= 50;
				char23._y -= 50;
				char23._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && char4._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char23._x -= 50;
				char23._y -= 50;
				char23._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && char4._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char23._x -= 50;
				char23._y += 50;
				char23._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && char4._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char23._x -= 50;
				char23._y += 50;
				char23._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && char4._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char23._x += 50;
				char23._y -= 50;
				char23._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && char4._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char23._x += 50;
				char23._y -= 50;
				char23._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && char4._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char23._x += 50;
				char23._y += 50;
				char23._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && char4._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char23._x += 50;
				char23._y += 50;
				char23._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char23._x -= 50;
				char23._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char23._x += 50;
				char23._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char23._y -= 50;
				char23._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char23._y += 50;
				char23._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char23._y -= 50;
				char23._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char23._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char23._y += 50;
				char23._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char23._y -= 50;
				char23._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char23._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char23._y += 50;
				char23._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char23._x -= 50;
				char23._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char23._x += 50;
				char23._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char23._x -= 50;
				char23._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char23._x += 50;
				char23._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_24() {
			if (char4._x == char24._x && char4._y < char24._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char24._y -= 100;
				char24._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char24._x && char4._y > char24._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char24._y += 100;
				char24._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && char4._y == char24._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char24._x += 100;
				char24._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && char4._y == char24._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char24._x -= 100;
				char24._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && char4._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char24._x -= 50;
				char24._y -= 50;
				char24._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && char4._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char24._x -= 50;
				char24._y -= 50;
				char24._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && char4._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char24._x -= 50;
				char24._y += 50;
				char24._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && char4._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char24._x -= 50;
				char24._y += 50;
				char24._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && char4._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char24._x += 50;
				char24._y -= 50;
				char24._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && char4._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char24._x += 50;
				char24._y -= 50;
				char24._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && char4._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char24._x += 50;
				char24._y += 50;
				char24._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && char4._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char24._x += 50;
				char24._y += 50;
				char24._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char24._x -= 50;
				char24._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char24._x += 50;
				char24._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char24._y -= 50;
				char24._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char24._y += 50;
				char24._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char24._y -= 50;
				char24._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char24._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char24._y += 50;
				char24._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char24._y -= 50;
				char24._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char24._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char24._y += 50;
				char24._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char24._x -= 50;
				char24._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char24._x += 50;
				char24._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char24._x -= 50;
				char24._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char24._x += 50;
				char24._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_25() {
			if (char4._x == char25._x && char4._y < char25._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char25._y -= 100;
				char25._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x == char25._x && char4._y > char25._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char25._y += 100;
				char25._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && char4._y == char25._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char25._x += 100;
				char25._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && char4._y == char25._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char25._x -= 100;
				char25._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && char4._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char25._x -= 50;
				char25._y -= 50;
				char25._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && char4._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char25._x -= 50;
				char25._y -= 50;
				char25._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && char4._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char25._x -= 50;
				char25._y += 50;
				char25._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && char4._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char25._x -= 50;
				char25._y += 50;
				char25._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && char4._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char25._x += 50;
				char25._y -= 50;
				char25._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && char4._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char25._x += 50;
				char25._y -= 50;
				char25._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && char4._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char25._x += 50;
				char25._y += 50;
				char25._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && char4._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char25._x += 50;
				char25._y += 50;
				char25._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char25._x -= 50;
				char25._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char25._x += 50;
				char25._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char25._y -= 50;
				char25._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char25._y += 50;
				char25._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char25._y -= 50;
				char25._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x < char25._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char25._y += 50;
				char25._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char25._y -= 50;
				char25._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._x > char25._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char25._y += 50;
				char25._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char25._x -= 50;
				char25._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char25._x += 50;
				char25._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char25._x -= 50;
				char25._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char4._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char25._x += 50;
				char25._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_16B() {
			if (char9._x == char16._x && char9._y < char16._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char16._y -= 100;
				char16._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char16._x && char9._y > char16._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char16._y += 100;
				char16._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && char9._y == char16._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char16._x += 100;
				char16._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && char9._y == char16._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char16._x -= 100;
				char16._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && char9._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char16._x -= 50;
				char16._y -= 50;
				char16._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && char9._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char16._x -= 50;
				char16._y -= 50;
				char16._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && char9._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char16._x -= 50;
				char16._y += 50;
				char16._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && char9._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char16._x -= 50;
				char16._y += 50;
				char16._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && char9._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char16._x += 50;
				char16._y -= 50;
				char16._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && char9._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char16._x += 50;
				char16._y -= 50;
				char16._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && char9._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char16._x += 50;
				char16._y += 50;
				char16._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && char9._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char16._x += 50;
				char16._y += 50;
				char16._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char16._x -= 50;
				char16._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char16._x += 50;
				char16._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char16._y -= 50;
				char16._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char16._y += 50;
				char16._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char16._y -= 50;
				char16._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char16._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char16._y += 50;
				char16._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char16._y -= 50;
				char16._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char16._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char16._y += 50;
				char16._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char16._x -= 50;
				char16._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char16._x += 50;
				char16._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char16._x -= 50;
				char16._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char16._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char16._x += 50;
				char16._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_17B() {
			if (char9._x == char17._x && char9._y < char17._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char17._y -= 100;
				char17._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char17._x && char9._y > char17._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char17._y += 100;
				char17._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && char9._y == char17._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char17._x += 100;
				char17._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && char9._y == char17._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char17._x -= 100;
				char17._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && char9._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char17._x -= 50;
				char17._y -= 50;
				char17._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && char9._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char17._x -= 50;
				char17._y -= 50;
				char17._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && char9._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char17._x -= 50;
				char17._y += 50;
				char17._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && char9._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char17._x -= 50;
				char17._y += 50;
				char17._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && char9._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char17._x += 50;
				char17._y -= 50;
				char17._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && char9._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char17._x += 50;
				char17._y -= 50;
				char17._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && char9._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char17._x += 50;
				char17._y += 50;
				char17._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && char9._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char17._x += 50;
				char17._y += 50;
				char17._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char17._x -= 50;
				char17._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char17._x += 50;
				char17._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char17._y -= 50;
				char17._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char17._y += 50;
				char17._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char17._y -= 50;
				char17._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char17._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char17._y += 50;
				char17._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char17._y -= 50;
				char17._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char17._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char17._y += 50;
				char17._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char17._x -= 50;
				char17._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char17._x += 50;
				char17._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char17._x -= 50;
				char17._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char17._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char17._x += 50;
				char17._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_18B() {
			if (char9._x == char18._x && char9._y < char18._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char18._y -= 100;
				char18._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char18._x && char9._y > char18._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char18._y += 100;
				char18._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && char9._y == char18._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char18._x += 100;
				char18._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && char9._y == char18._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char18._x -= 100;
				char18._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && char9._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char18._x -= 50;
				char18._y -= 50;
				char18._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && char9._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char18._x -= 50;
				char18._y -= 50;
				char18._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && char9._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char18._x -= 50;
				char18._y += 50;
				char18._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && char9._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char18._x -= 50;
				char18._y += 50;
				char18._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && char9._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char18._x += 50;
				char18._y -= 50;
				char18._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && char9._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char18._x += 50;
				char18._y -= 50;
				char18._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && char9._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char18._x += 50;
				char18._y += 50;
				char18._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && char9._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char18._x += 50;
				char18._y += 50;
				char18._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char18._x -= 50;
				char18._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char18._x += 50;
				char18._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char18._y -= 50;
				char18._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char18._y += 50;
				char18._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char18._y -= 50;
				char18._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char18._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char18._y += 50;
				char18._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char18._y -= 50;
				char18._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char18._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char18._y += 50;
				char18._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char18._x -= 50;
				char18._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char18._x += 50;
				char18._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char18._x -= 50;
				char18._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char18._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char18._x += 50;
				char18._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_19B() {
			if (char9._x == char19._x && char9._y < char19._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char19._y -= 100;
				char19._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char19._x && char9._y > char19._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char19._y += 100;
				char19._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && char9._y == char19._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char19._x += 100;
				char19._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && char9._y == char19._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char19._x -= 100;
				char19._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && char9._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char19._x -= 50;
				char19._y -= 50;
				char19._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && char9._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char19._x -= 50;
				char19._y -= 50;
				char19._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && char9._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char19._x -= 50;
				char19._y += 50;
				char19._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && char9._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char19._x -= 50;
				char19._y += 50;
				char19._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && char9._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char19._x += 50;
				char19._y -= 50;
				char19._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && char9._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char19._x += 50;
				char19._y -= 50;
				char19._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && char9._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char19._x += 50;
				char19._y += 50;
				char19._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && char9._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char19._x += 50;
				char19._y += 50;
				char19._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char19._x -= 50;
				char19._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char19._x += 50;
				char19._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char19._y -= 50;
				char19._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char19._y += 50;
				char19._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char19._y -= 50;
				char19._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char19._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char19._y += 50;
				char19._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char19._y -= 50;
				char19._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char19._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char19._y += 50;
				char19._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char19._x -= 50;
				char19._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char19._x += 50;
				char19._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char19._x -= 50;
				char19._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char19._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char19._x += 50;
				char19._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_20B() {
			if (char9._x == char20._x && char9._y < char20._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char20._y -= 100;
				char20._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char20._x && char9._y > char20._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char20._y += 100;
				char20._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && char9._y == char20._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char20._x += 100;
				char20._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && char9._y == char20._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char20._x -= 100;
				char20._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && char9._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char20._x -= 50;
				char20._y -= 50;
				char20._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && char9._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char20._x -= 50;
				char20._y -= 50;
				char20._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && char9._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char20._x -= 50;
				char20._y += 50;
				char20._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && char9._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char20._x -= 50;
				char20._y += 50;
				char20._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && char9._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char20._x += 50;
				char20._y -= 50;
				char20._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && char9._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char20._x += 50;
				char20._y -= 50;
				char20._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && char9._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char20._x += 50;
				char20._y += 50;
				char20._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && char9._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char20._x += 50;
				char20._y += 50;
				char20._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char20._x -= 50;
				char20._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char20._x += 50;
				char20._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char20._y -= 50;
				char20._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char20._y += 50;
				char20._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char20._y -= 50;
				char20._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char20._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char20._y += 50;
				char20._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char20._y -= 50;
				char20._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char20._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char20._y += 50;
				char20._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char20._x -= 50;
				char20._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char20._x += 50;
				char20._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char20._x -= 50;
				char20._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char20._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char20._x += 50;
				char20._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_21B() {
			if (char9._x == char21._x && char9._y < char21._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char21._y -= 100;
				char21._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char21._x && char9._y > char21._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char21._y += 100;
				char21._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && char9._y == char21._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char21._x += 100;
				char21._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && char9._y == char21._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char21._x -= 100;
				char21._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && char9._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char21._x -= 50;
				char21._y -= 50;
				char21._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && char9._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char21._x -= 50;
				char21._y -= 50;
				char21._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && char9._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char21._x -= 50;
				char21._y += 50;
				char21._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && char9._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char21._x -= 50;
				char21._y += 50;
				char21._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && char9._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char21._x += 50;
				char21._y -= 50;
				char21._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && char9._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char21._x += 50;
				char21._y -= 50;
				char21._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && char9._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char21._x += 50;
				char21._y += 50;
				char21._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && char9._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char21._x += 50;
				char21._y += 50;
				char21._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char21._x -= 50;
				char21._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char21._x += 50;
				char21._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char21._y -= 50;
				char21._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char21._y += 50;
				char21._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char21._y -= 50;
				char21._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char21._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char21._y += 50;
				char21._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char21._y -= 50;
				char21._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char21._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char21._y += 50;
				char21._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char21._x -= 50;
				char21._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char21._x += 50;
				char21._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char21._x -= 50;
				char21._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char21._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char21._x += 50;
				char21._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_22B() {
			if (char9._x == char22._x && char9._y < char22._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char22._y -= 100;
				char22._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char22._x && char9._y > char22._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char22._y += 100;
				char22._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && char9._y == char22._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char22._x += 100;
				char22._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && char9._y == char22._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char22._x -= 100;
				char22._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && char9._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char22._x -= 50;
				char22._y -= 50;
				char22._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && char9._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char22._x -= 50;
				char22._y -= 50;
				char22._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && char9._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char22._x -= 50;
				char22._y += 50;
				char22._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && char9._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char22._x -= 50;
				char22._y += 50;
				char22._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && char9._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char22._x += 50;
				char22._y -= 50;
				char22._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && char9._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char22._x += 50;
				char22._y -= 50;
				char22._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && char9._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char22._x += 50;
				char22._y += 50;
				char22._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && char9._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char22._x += 50;
				char22._y += 50;
				char22._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char22._x -= 50;
				char22._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char22._x += 50;
				char22._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char22._y -= 50;
				char22._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char22._y += 50;
				char22._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char22._y -= 50;
				char22._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char22._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char22._y += 50;
				char22._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char22._y -= 50;
				char22._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char22._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char22._y += 50;
				char22._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char22._x -= 50;
				char22._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char22._x += 50;
				char22._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char22._x -= 50;
				char22._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char22._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char22._x += 50;
				char22._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_23B() {
			if (char9._x == char23._x && char9._y < char23._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char23._y -= 100;
				char23._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char23._x && char9._y > char23._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char23._y += 100;
				char23._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && char9._y == char23._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char23._x += 100;
				char23._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && char9._y == char23._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char23._x -= 100;
				char23._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && char9._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char23._x -= 50;
				char23._y -= 50;
				char23._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && char9._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char23._x -= 50;
				char23._y -= 50;
				char23._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && char9._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char23._x -= 50;
				char23._y += 50;
				char23._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && char9._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char23._x -= 50;
				char23._y += 50;
				char23._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && char9._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char23._x += 50;
				char23._y -= 50;
				char23._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && char9._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char23._x += 50;
				char23._y -= 50;
				char23._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && char9._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char23._x += 50;
				char23._y += 50;
				char23._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && char9._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char23._x += 50;
				char23._y += 50;
				char23._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char23._x -= 50;
				char23._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char23._x += 50;
				char23._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char23._y -= 50;
				char23._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char23._y += 50;
				char23._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char23._y -= 50;
				char23._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char23._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char23._y += 50;
				char23._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char23._y -= 50;
				char23._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char23._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char23._y += 50;
				char23._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char23._x -= 50;
				char23._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char23._x += 50;
				char23._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char23._x -= 50;
				char23._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char23._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char23._x += 50;
				char23._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_24B() {
			if (char9._x == char24._x && char9._y < char24._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char24._y -= 100;
				char24._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char24._x && char9._y > char24._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char24._y += 100;
				char24._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && char9._y == char24._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char24._x += 100;
				char24._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && char9._y == char24._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char24._x -= 100;
				char24._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && char9._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char24._x -= 50;
				char24._y -= 50;
				char24._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && char9._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char24._x -= 50;
				char24._y -= 50;
				char24._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && char9._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char24._x -= 50;
				char24._y += 50;
				char24._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && char9._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char24._x -= 50;
				char24._y += 50;
				char24._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && char9._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char24._x += 50;
				char24._y -= 50;
				char24._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && char9._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char24._x += 50;
				char24._y -= 50;
				char24._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && char9._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char24._x += 50;
				char24._y += 50;
				char24._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && char9._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char24._x += 50;
				char24._y += 50;
				char24._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char24._x -= 50;
				char24._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char24._x += 50;
				char24._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char24._y -= 50;
				char24._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char24._y += 50;
				char24._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char24._y -= 50;
				char24._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char24._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char24._y += 50;
				char24._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char24._y -= 50;
				char24._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char24._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char24._y += 50;
				char24._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char24._x -= 50;
				char24._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char24._x += 50;
				char24._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char24._x -= 50;
				char24._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char24._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char24._x += 50;
				char24._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		function enemyMove_25B() {
			if (char9._x == char25._x && char9._y < char25._y && shouldAttack == 0 && moved == 0 && !hitCharUp && !hitBadUp && !hitWallUp && !hitCharUp2 && !hitBadUp2 && !hitWallUp2) {
				char25._y -= 100;
				char25._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x == char25._x && char9._y > char25._y && shouldAttack == 0 && moved == 0 && !hitCharDown && !hitBadDown && !hitWallDown && !hitCharDown2 && !hitBadDown2 && !hitWallDown2) {
				char25._y += 100;
				char25._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && char9._y == char25._y && shouldAttack == 0 && moved == 0 && !hitCharRight && !hitBadRight && !hitWallRight && !hitCharRight2 && !hitBadRight2 && !hitWallRight2) {
				char25._x += 100;
				char25._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && char9._y == char25._y && shouldAttack == 0 && moved == 0 && !hitCharLeft && !hitBadLeft && !hitWallLeft && !hitCharLeft2 && !hitBadLeft2 && !hitWallLeft2) {
				char25._x -= 100;
				char25._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && char9._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char25._x -= 50;
				char25._y -= 50;
				char25._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && char9._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpLeft == false && hitBadUpLeft == false && hitWallUpLeft == false) {
				char25._x -= 50;
				char25._y -= 50;
				char25._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && char9._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char25._x -= 50;
				char25._y += 50;
				char25._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && char9._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownLeft == false && hitBadDownLeft == false && hitWallDownLeft == false) {
				char25._x -= 50;
				char25._y += 50;
				char25._rotation = 90;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && char9._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char25._x += 50;
				char25._y -= 50;
				char25._rotation = 180;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && char9._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false && hitCharUpRight == false && hitBadUpRight == false && hitWallUpRight == false) {
				char25._x += 50;
				char25._y -= 50;
				char25._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && char9._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char25._x += 50;
				char25._y += 50;
				char25._rotation = 0;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && char9._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false && hitCharDownRight == false && hitBadDownRight == false && hitWallDownRight == false) {
				char25._x += 50;
				char25._y += 50;
				char25._rotation = 270;
				steps += 2;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char25._x -= 50;
				char25._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char25._x += 50;
				char25._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char25._y -= 50;
				char25._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char25._y += 50;
				char25._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char25._y -= 50;
				char25._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x < char25._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char25._y += 50;
				char25._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && shouldAttack == 0 && moved == 0 && hitCharUp == false && hitBadUp == false && hitWallUp == false) {
				char25._y -= 50;
				char25._rotation = 180;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._x > char25._x && shouldAttack == 0 && moved == 0 && hitCharDown == false && hitBadDown == false && hitWallDown == false) {
				char25._y += 50;
				char25._rotation = 0;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char25._x -= 50;
				char25._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y < char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char25._x += 50;
				char25._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharLeft == false && hitBadLeft == false && hitWallLeft == false) {
				char25._x -= 50;
				char25._rotation = 90;
				steps += 1;
				displaySteps();
				moved = 1;
			}
			if (char9._y > char25._y && shouldAttack == 0 && moved == 0 && hitCharRight == false && hitBadRight == false && hitWallRight == false) {
				char25._x += 50;
				char25._rotation = 270;
				steps += 1;
				displaySteps();
				moved = 1;
			}
		}
		stop();
		stopAllSounds();
		_root.kongregateServices.connect();
		stop();
		var myMenu = new ContextMenu();
		myMenu.hideBuiltInItems();
		var copyrightNotice = new ContextMenuItem('Â© 2007 Sinister Design', gotoMySite);
		var mySiteLink = new ContextMenuItem('Need help?', getHelp);
		myMenu.customItems.push(mySiteLink, copyrightNotice);
		_root.menu = myMenu;
	}
	movieClip 42	{
		frame 60 {
			stop();
		}
	}
	instance playButton of movieClip 42	{
		onClipEvent (release) {
			_root.gotoAndStop('playIntros');
		}
		onClipEvent (rollOver) {
			gotoAndStop(61);
		}
		onClipEvent (rollOut) {
			gotoAndStop(60);
		}
	}
	frame 5 {
		stop();
	}
	movieClip 44	{
	}
	movieClip 47	{
	}
	movieClip 49	{
	}
	movieClip 51	{
	}
	movieClip 65	{
	}
	movieClip 66	{
		frame 1 {
			stop();
		}
		instance of movieClip 65	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 69	{
	}
	movieClip 70	{
	}
	movieClip 72	{
		frame 160 {
			_root.display = '';
			_root.canEndTurn = true;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 73	{
		frame 104 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 74	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 89	{
	}
	movieClip 96	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 100	{
	}
	movieClip 114	{
	}
	movieClip 115	{
		frame 1 {
			stop();
		}
		instance of movieClip 114	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 124	{
		frame 37 {
			stop();
		}
	}
	movieClip 130	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 138	{
		frame 35 {
			stop();
		}
	}
	movieClip 144	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 166	{
	}
	movieClip 176	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 177	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 178	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 189	{
	}
	movieClip 191	{
	}
	movieClip 192	{
		frame 69 {
			stop();
		}
	}
	movieClip 198	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 210	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 211 anya {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 213	{
	}
	movieClip 216	{
	}
	movieClip 217	{
	}
	movieClip 219	{
	}
	movieClip 220	{
	}
	movieClip 222	{
	}
	movieClip 236	{
	}
	movieClip 237	{
		frame 1 {
			stop();
		}
		instance of movieClip 236	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 239	{
	}
	movieClip 241	{
	}
	movieClip 242	{
	}
	movieClip 243	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 244	{
		frame 114 {
			stop();
		}
	}
	movieClip 245	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 246	{
	}
	movieClip 247	{
	}
	movieClip 249	{
	}
	movieClip 250	{
	}
	movieClip 252	{
	}
	movieClip 253	{
	}
	movieClip 255	{
	}
	movieClip 258	{
	}
	movieClip 259	{
		frame 1 {
			stop();
		}
		instance of movieClip 258	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 261	{
	}
	movieClip 263	{
	}
	movieClip 269	{
	}
	movieClip 273	{
	}
	movieClip 277	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 278	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 279	{
		frame 110 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 280 guardRedFem {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 282	{
	}
	movieClip 284	{
	}
	movieClip 286	{
	}
	movieClip 288	{
	}
	movieClip 302	{
	}
	movieClip 303	{
		frame 1 {
			stop();
		}
		instance of movieClip 302	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 305	{
	}
	movieClip 306	{
	}
	movieClip 307	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 308	{
		frame 114 {
			stop();
		}
	}
	movieClip 309	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 310	{
	}
	movieClip 311	{
	}
	movieClip 313	{
	}
	movieClip 315	{
	}
	movieClip 321	{
	}
	movieClip 322	{
		frame 1 {
			stop();
		}
		instance of movieClip 321	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 324	{
	}
	movieClip 326	{
	}
	movieClip 327	{
	}
	movieClip 328	{
	}
	movieClip 332	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 333	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 334	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 335	{
		frame 110 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 336	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 337 guardWhiteCape {
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 339	{
	}
	movieClip 340	{
	}
	movieClip 341	{
		frame 104 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 342	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 354	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 366	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 368	{
	}
	movieClip 369	{
	}
	movieClip 370	{
	}
	movieClip 378	{
	}
	movieClip 392	{
		frame 30 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 31 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 32 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 33 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 34 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 35 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 36 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 37 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 38 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 40 {
			_root._x = 0;
			_root._y = 0;
		}
	}
	movieClip 393	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 394	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 395	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 397	{
	}
	movieClip 423	{
		frame 60 {
			stop();
		}
	}
	movieClip 424	{
		frame 28 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 29 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 30 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 31 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 32 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 33 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 34 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 35 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 36 {
			_root._x += random(5) + 12;
			_root._y += random(5) + 12;
		}
		frame 37 {
			_root._x -= random(5) + 12;
			_root._y -= random(5) + 12;
		}
		frame 38 {
			_root._x += random(5) + 12;
			_root._y += random(5) + 12;
		}
		frame 39 {
			_root._x -= random(5) + 12;
			_root._y -= random(5) + 12;
		}
		frame 40 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 76 {
			stop();
		}
	}
	movieClip 425	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 426 guy {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 428	{
	}
	movieClip 430	{
	}
	movieClip 432	{
	}
	movieClip 433	{
	}
	movieClip 434	{
		frame 104 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 435	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 447	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 459	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 460	{
	}
	movieClip 461	{
	}
	movieClip 462	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 474	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 475	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 476	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 488	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 489	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 507	{
	}
	movieClip 508	{
		frame 30 {
			stop();
		}
	}
	movieClip 511	{
		frame 28 {
			stop();
		}
	}
	movieClip 539	{
		frame 62 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 63 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 64 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 65 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 66 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 67 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 68 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 69 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 70 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 71 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 72 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 73 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 74 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 75 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 76 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 77 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 78 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 79 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 80 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 81 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 82 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 83 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 84 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 85 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 86 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 87 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 88 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 89 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 90 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 91 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 92 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 93 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 94 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 95 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 96 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 97 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 98 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 99 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 100 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 101 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 102 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 103 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 104 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 105 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 107 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 120 {
			stop();
		}
	}
	movieClip 549	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 550 mainChar {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 570	{
	}
	movieClip 581	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 588	{
		frame 15 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 635	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 679	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 723	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 767	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 786	{
		frame 74 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 803	{
		frame 74 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 847	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 848 shadowlingBlueGood {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 9 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 867	{
	}
	movieClip 878	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 884	{
		frame 15 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 929	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 973	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 996	{
	}
	movieClip 1006	{
		frame 30 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 31 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 32 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 33 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 34 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 35 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 36 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 37 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 38 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 40 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 80 {
			stop();
		}
	}
	movieClip 1039	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1061	{
	}
	movieClip 1064	{
	}
	movieClip 1067	{
	}
	movieClip 1071	{
		frame 110 {
			stop();
		}
	}
	movieClip 1097	{
		frame 160 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1115	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1133	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1134 shadowlingRedGood {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 9 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 1161	{
		frame 30 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 31 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 32 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 33 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 34 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 35 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 36 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 37 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 38 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 40 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 80 {
			stop();
		}
	}
	movieClip 1192	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1212	{
	}
	movieClip 1254	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1282	{
	}
	movieClip 1295	{
		frame 126 {
			stop();
			if (_root.moveTurn == 1) {
				_root.shadowportChar1();
			}
			if (_root.moveTurn == 2) {
				_root.shadowportChar2();
			}
			if (_root.moveTurn == 3) {
				_root.shadowportChar3();
			}
			if (_root.moveTurn == 4) {
				_root.shadowportChar4();
			}
			if (_root.moveTurn == 5) {
				_root.shadowportChar5();
			}
			if (_root.moveTurn == 6) {
				_root.shadowportChar6();
			}
			if (_root.moveTurn == 7) {
				_root.shadowportChar7();
			}
			if (_root.moveTurn == 8) {
				_root.shadowportChar8();
			}
		}
	}
	movieClip 1306	{
		frame 60 {
			_root.attacked = 0;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1307 shadowlingRedSmallGood {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 1309	{
	}
	movieClip 1313	{
	}
	movieClip 1315	{
	}
	movieClip 1317	{
	}
	movieClip 1319	{
	}
	movieClip 1320	{
	}
	movieClip 1321	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 1322	{
	}
	movieClip 1325	{
	}
	movieClip 1335	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1345	{
	}
	movieClip 1348	{
	}
	movieClip 1349	{
		frame 35 {
			stop();
		}
	}
	movieClip 1350	{
		frame 35 {
			stop();
		}
	}
	movieClip 1356	{
		frame 110 {
			stop();
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1389	{
		frame 79 {
			stop();
		}
	}
	movieClip 1390	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1425	{
		frame 79 {
			stop();
		}
	}
	movieClip 1426	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1427	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1428	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1429 spriggatWhiteGood {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 9 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 1430	{
		frame 145 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 1432	{
		frame 40 {
			_root.display = '';
			_root.attacked = 3;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1444	{
		frame 116 {
			stop();
			_root.attacked = 1;
			_root.changeturns();
		}
	}
	movieClip 1446	{
	}
	movieClip 1447	{
	}
	movieClip 1448	{
		frame 150 {
			stop();
			_root.shownHearts = false;
			_parent._parent.gotoAndStop(1);
		}
	}
	movieClip 1449	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 1450	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1458	{
	}
	movieClip 1460	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1461	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 1462	{
		frame 12 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1465	{
	}
	movieClip 1471	{
	}
	movieClip 1472	{
	}
	movieClip 1480	{
		frame 111 {
			_root.attacked = 0;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1482	{
	}
	movieClip 1484	{
	}
	movieClip 1486	{
	}
	movieClip 1490	{
		frame 70 {
			stop();
		}
	}
	movieClip 1491	{
		frame 140 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1493	{
	}
	movieClip 1515	{
		frame 79 {
			stop();
		}
		frame 79 {
			stop();
		}
	}
	movieClip 1516	{
		frame 140 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1517	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1518	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1519 stoneGolemGood {
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 1533	{
	}
	movieClip 1534	{
		frame 1 {
			stop();
		}
		instance of movieClip 1533	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 1535	{
	}
	movieClip 1536	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1537	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1549	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1561	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1562	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1574	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1575	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1576 Fem01_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 1578	{
	}
	movieClip 1579	{
		frame 1 {
			stop();
		}
		instance of movieClip 236	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 1580	{
	}
	movieClip 1581	{
		frame 160 {
			_root.display = '';
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1582	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1583	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1595	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1607	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1608	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1620	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1621	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1622 Fem01_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1623	{
	}
	movieClip 1624	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1625	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1637	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1649	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1650	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1662	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1663	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1664 Fem02_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1665	{
	}
	movieClip 1666	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1667	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1679	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1691	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1692	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1704	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1705	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1706 Fem02_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1708	{
	}
	movieClip 1709	{
	}
	movieClip 1710	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1711	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1723	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1735	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1736	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1748	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1749	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1750 Fem03_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1751	{
	}
	movieClip 1752	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1753	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1765	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1777	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1778	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1790	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1791	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1792 Fem03_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1793	{
	}
	movieClip 1794	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1795	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1807	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1819	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1820	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1832	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1833	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1834 Man01_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1835	{
	}
	movieClip 1836	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1837	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1849	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1861	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1862	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1874	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1875	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1876 Man01_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1878	{
	}
	movieClip 1879	{
	}
	movieClip 1880	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1881	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1893	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1905	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1906	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1918	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1919	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1920 Man02_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1921	{
	}
	movieClip 1922	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1923	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1935	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1947	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1948	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1960	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1961	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1962 Man02_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 1963	{
	}
	movieClip 1964	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 1965	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1977	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1989	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 1990	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2002	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2003	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2004 Man04_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 2005	{
	}
	movieClip 2006	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 2007	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2019	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2031	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2032	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2044	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2045	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2046 Man04_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 2049	{
	}
	movieClip 2050	{
	}
	movieClip 2051	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 2052	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2064	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2076	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2077	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2089	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2090	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2091 Man06_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 2110	{
	}
	movieClip 2113	{
	}
	movieClip 2118	{
	}
	movieClip 2149	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2159	{
		frame 90 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 2165	{
		frame 15 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2204	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2243	{
		frame 144 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2260	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2277	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2278 shadowlingKniferGood {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 2280	{
	}
	movieClip 2281	{
	}
	movieClip 2282	{
		frame 104 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 2283	{
		frame 10 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2295	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2307	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2308	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2320	{
		frame 145 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2321	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2322 Man06_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 2331	{
		frame 90 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 2375	{
		frame 144 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2419	{
		frame 144 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2436	{
		frame 74 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2437 Shdwlng_Multi_ROOT_p1 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 2446	{
		frame 90 {
			stop();
			_root.removeDeadMulti();
		}
	}
	movieClip 2490	{
		frame 144 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2534	{
		frame 144 {
			_root.changeturnsMulti();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2551	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 2552 Shdwlng_Multi_ROOT_p2 {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 2555 Map_MechBase {
	}
	movieClip 2563	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2564 Map_MsgBox {
		instance of movieClip 2563	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
				} else {
					this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
				}
				_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
				_global.Behaviors.Sound.MenuSelect.start(0, 1);
				_root.leveling = false;
				_root.mapMsgBox.removeMovieClip();
			}
		}
	}
	movieClip 2566	{
	}
	movieClip 2568	{
	}
	movieClip 2569	{
		frame 34 {
			stop();
		}
	}
	movieClip 2574	{
	}
	movieClip 2576	{
		frame 106 {
			stop();
			_root.drawn = true;
			_root.forceDisplayCards();
		}
	}
	movieClip 2581	{
	}
	movieClip 2582	{
	}
	movieClip 2586	{
	}
	movieClip 2588	{
	}
	movieClip 2589	{
	}
	movieClip 2594	{
	}
	movieClip 2596	{
	}
	movieClip 2599	{
	}
	movieClip 2602	{
	}
	movieClip 2607	{
	}
	movieClip 2610	{
	}
	movieClip 2615	{
	}
	movieClip 2618	{
	}
	movieClip 2622	{
	}
	movieClip 2623	{
	}
	movieClip 2626	{
	}
	movieClip 2629	{
	}
	movieClip 2634	{
	}
	movieClip 2637	{
	}
	movieClip 2641	{
	}
	movieClip 2644	{
	}
	movieClip 2648	{
	}
	movieClip 2651	{
	}
	movieClip 2654	{
	}
	movieClip 2657	{
	}
	movieClip 2660	{
	}
	movieClip 2663	{
	}
	movieClip 2666	{
	}
	movieClip 2669	{
	}
	movieClip 2672	{
	}
	movieClip 2675	{
	}
	movieClip 2678	{
	}
	movieClip 2679 _Card_ROOT {
	}
	movieClip 2682 Map_Lowlands {
	}
	button 2687 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
			_root.currView = 'hero';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStats');
		}
	}
	button 2691 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuOptions');
		}
	}
	button 2696 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuCharacters');
		}
	}
	button 2708 {
		on (release) {
			_root.playMenuSelect();
			_quality = 'HIGH';
			_root.saveDisplay = 'High visual quality set.';
		}
	}
	button 2711 {
		on (release) {
			_root.playMenuSelect();
			_quality = 'MEDIUM';
			_root.saveDisplay = 'Medium visual quality set.';
		}
	}
	button 2714 {
		on (release) {
			_root.playMenuSelect();
			_quality = 'LOW';
			_root.saveDisplay = 'Low visual quality set.';
		}
	}
	button 2718 {
		on (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuSaveSlots');
		}
	}
	button 2722 {
		on (press) {
			_root.playMenuSelect();
			_root.quitGame();
			_root.saveDisplay = 'Bye!';
		}
	}
	button 2726 {
		on (release) {
			_root.playMenuSelect();
			_root.gameDifficulty = 'brutal';
			_root.saveDisplay = 'Brutal difficulty set.';
		}
	}
	button 2730 {
		on (release) {
			_root.playMenuSelect();
			_root.gameDifficulty = 'hard';
			_root.saveDisplay = 'Hard difficulty set.';
		}
	}
	button 2734 {
		on (release) {
			_root.playMenuSelect();
			_root.gameDifficulty = 'normal';
			_root.saveDisplay = 'Normal difficulty set.';
		}
	}
	movieClip 2740	{
		frame 1 {
			stop();
		}
	}
	button 2743 {
		on (release) {
			_root.playMenuSelect();
			_root.gameDifficulty = 'easy';
			_root.saveDisplay = 'Easy difficulty set.';
		}
	}
	movieClip 2750	{
		frame 1 {
			stop();
		}
	}
	movieClip 2760	{
	}
	movieClip 2764	{
	}
	button 2768 {
		on (press) {
			_root.saveSlot = 1;
			_root.loadGame();
			_root.playMenuSelect();
		}
	}
	button 2769 {
		on (press) {
			_root.saveSlot = 2;
			_root.loadGame();
			_root.playMenuSelect();
		}
	}
	movieClip 2774	{
	}
	button 2775 {
		on (press) {
			_root.saveSlot = 0;
			_root.loadGame();
			_root.playMenuSelect();
		}
	}
	button 2779 {
		on (press) {
			_root.saveSlot = 1;
			_root.playMenuSelect();
			_root.recordSaveData();
			_root.saveGame();
		}
	}
	button 2780 {
		on (press) {
			_root.saveSlot = 2;
			_root.playMenuSelect();
			_root.recordSaveData();
			_root.saveGame();
		}
	}
	movieClip 2818	{
	}
	movieClip 2820	{
	}
	button 2828 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'darkling';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdarkling');
		}
	}
	movieClip 2831	{
	}
	button 2832 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'shadowboxer';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsshadowboxer');
		}
	}
	movieClip 2834	{
	}
	button 2835 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'festus';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsfestus');
		}
	}
	movieClip 2838	{
	}
	button 2839 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'niven';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsniven');
		}
	}
	movieClip 2842	{
	}
	button 2843 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'flint';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsflint');
		}
	}
	movieClip 2846	{
	}
	button 2847 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'helena';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatshelena');
		}
	}
	movieClip 2850	{
	}
	button 2851 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'grotius';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsgrotius');
		}
	}
	movieClip 2854	{
	}
	button 2855 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'anya';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsanya');
		}
	}
	movieClip 2857	{
	}
	button 2858 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'guy';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsguy');
		}
	}
	movieClip 2861	{
	}
	button 2862 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'dorgon';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsdorgon');
		}
	}
	movieClip 2865	{
	}
	button 2866 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'jack';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsjack');
		}
	}
	movieClip 2868	{
	}
	button 2869 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'luca';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsluca');
		}
	}
	movieClip 2872	{
	}
	button 2873 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'magellan';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsmagellan');
		}
	}
	movieClip 2876	{
	}
	button 2877 {
		on (press) {
			_root.playMenuClick();
			_root.currView = 'xerxes';
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuStatsxerxes');
		}
	}
	movieClip 2879	{
	}
	movieClip 2882	{
	}
	movieClip 2886	{
	}
	movieClip 2890	{
		frame 1 {
			stop();
		}
	}
	movieClip 2891	{
		instance of movieClip 2890	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.slot1 = 'none';
				_parent._parent.updateRoster();
			}
		}
	}
	movieClip 2893	{
		instance of movieClip 2890	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.slot8 = 'none';
				_parent._parent.updateRoster();
			}
		}
	}
	movieClip 2895	{
		instance of movieClip 2890	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.slot7 = 'none';
				_parent._parent.updateRoster();
			}
		}
	}
	movieClip 2897	{
		instance of movieClip 2890	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.slot6 = 'none';
				_parent._parent.updateRoster();
			}
		}
	}
	movieClip 2899	{
		instance of movieClip 2890	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.slot5 = 'none';
				_parent._parent.updateRoster();
			}
		}
	}
	movieClip 2901	{
		instance of movieClip 2890	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.slot3 = 'none';
				_parent._parent.updateRoster();
			}
		}
	}
	movieClip 2903	{
		instance of movieClip 2890	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.slot2 = 'none';
				_parent._parent.updateRoster();
			}
		}
	}
	movieClip 2911	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2914	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2916	{
	}
	movieClip 2928	{
	}
	movieClip 2930	{
	}
	movieClip 2932	{
	}
	movieClip 2934	{
	}
	movieClip 2936	{
	}
	movieClip 2938	{
	}
	movieClip 2940	{
	}
	movieClip 2942	{
	}
	movieClip 2944	{
	}
	movieClip 2946	{
	}
	movieClip 2948	{
	}
	movieClip 2950	{
	}
	movieClip 2952	{
	}
	movieClip 2954	{
	}
	movieClip 2971	{
	}
	movieClip 3016	{
	}
	movieClip 3093	{
	}
	movieClip 3108	{
	}
	movieClip 3144	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
			if (_root.musicOn == true) {
				muteMusicButton.gotoAndStop(1);
			}
			if (_root.musicOn == false) {
				muteMusicButton.gotoAndStop(3);
			}
			if (_root.shadowsOn == false) {
				shadowButton.gotoAndStop(1);
			}
			if (_root.shadowsOn == true) {
				shadowButton.gotoAndStop(3);
			}
		}
		instance muteMusicButton of movieClip 2740	{
			onClipEvent (press) {
				if (_root.musicOn == true) {
					this.gotoAndStop(4);
					_root.musicOn = false;
					_root.saveDisplay = 'Music now set to Off.';
					stopAllSounds();
				} else {
					if (_root.musicOn == false) {
						this.gotoAndStop(2);
						_root.saveDisplay = 'Music now set to On.';
						_root.musicOn = true;
						_root.unmute();
					}
				}
				_root.playMenuSelect();
			}
			onClipEvent (rollOver) {
				if (_root.musicOn == true) {
					this.gotoAndStop(2);
				}
				if (_root.musicOn == false) {
					this.gotoAndStop(4);
				}
			}
			onClipEvent (rollOut, dragOut) {
				if (_root.musicOn == true) {
					this.gotoAndStop(1);
				}
				if (_root.musicOn == false) {
					this.gotoAndStop(3);
				}
			}
		}
		instance shadowButton of movieClip 2750	{
			onClipEvent (press) {
				if (_root.shadowsOn == true) {
					this.gotoAndStop(2);
					_root.shadowsOn = false;
					_root.saveDisplay = 'Shadows now set to Off.';
				} else {
					if (_root.shadowsOn == false) {
						this.gotoAndStop(4);
						_root.saveDisplay = 'Shadows now set to On.';
						_root.shadowsOn = true;
					}
				}
				_root.playMenuSelect();
			}
			onClipEvent (rollOver) {
				if (_root.shadowsOn == false) {
					this.gotoAndStop(2);
				}
				if (_root.shadowsOn == true) {
					this.gotoAndStop(4);
				}
			}
			onClipEvent (rollOut, dragOut) {
				if (_root.shadowsOn == true) {
					this.gotoAndStop(3);
				}
				if (_root.shadowsOn == false) {
					this.gotoAndStop(1);
				}
			}
		}
		frame 4 {
			stop();
			atk1 = 'Mind Blast';
			if (_root.mainCharAttackType2 == 'mindshield') {
				atk2 = 'Mind Shield';
			}
			if (_root.mainCharAttackType2 == 'bigshield') {
				atk2 = 'Big Shield';
			}
			if (_root.mainCharAttackType3 == 'pyroblast') {
				atk3 = 'Pyro Blast';
			}
			if (_root.mainCharAttackType3 == 'pyrohail') {
				atk3 = 'Pyro Hail';
			}
			if (_root.mainCharAttackType4 == 'feedback') {
				atk4 = 'Feedback';
			}
			if (_root.mainCharAttackType4 == 'vengeance') {
				atk4 = 'Vengeance';
			}
		}
		instance of movieClip 2820	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.viewNextChar();
			}
		}
		frame 5 {
			stop();
			skullDarkling._visible = false;
			skullShadowboxer._visible = false;
			skullFestus._visible = false;
			skullNiven._visible = false;
			skullFlint._visible = false;
			skullHelena._visible = false;
			skullGrotius._visible = false;
			skullAnya._visible = false;
			skullGuy._visible = false;
			skullDorgon._visible = false;
			skullJack._visible = false;
			skullLuca._visible = false;
			skullMagellan._visible = false;
			skullXerxes._visible = false;
			viewchar1._visible = false;
			viewchar2._visible = false;
			viewchar3._visible = false;
			viewchar5._visible = false;
			viewchar6._visible = false;
			viewchar7._visible = false;
			viewchar8._visible = false;
			viewchar9._visible = false;
			viewchar10._visible = false;
			viewchar11._visible = false;
			viewchar12._visible = false;
			viewchar13._visible = false;
			viewchar14._visible = false;
			viewchar15._visible = false;
			if (_root.gotDarkling == true) {
				viewchar1._visible = true;
				if (_root.darklingDead == true) {
					skullDarkling._visible = true;
				}
			}
			if (_root.gotShadowboxer == true) {
				viewchar2._visible = true;
				if (_root.shadowboxerDead == true) {
					skullShadowboxer._visible = true;
				}
			}
			if (_root.gotFestus == true) {
				viewchar3._visible = true;
				if (_root.festusDead == true) {
					skullFestus._visible = true;
				}
			}
			if (_root.gotNiven == true) {
				viewchar5._visible = true;
				if (_root.nivenDead == true) {
					skullNiven._visible = true;
				}
			}
			if (_root.gotFlint == true) {
				viewchar6._visible = true;
				if (_root.flintDead == true) {
					skullFlint._visible = true;
				}
			}
			if (_root.gotHelena == true) {
				viewchar7._visible = true;
				if (_root.helenaDead == true) {
					skullHelena._visible = true;
				}
			}
			if (_root.gotGrotius == true) {
				viewchar8._visible = true;
				if (_root.grotiusDead == true) {
					skullGrotius._visible = true;
				}
			}
			if (_root.gotAnya == true) {
				viewchar9._visible = true;
				if (_root.anyaDead == true) {
					skullAnya._visible = true;
				}
			}
			if (_root.gotGuy == true) {
				viewchar10._visible = true;
				if (_root.guyDead == true) {
					skullGuy._visible = true;
				}
			}
			if (_root.gotDorgon == true) {
				viewchar11._visible = true;
				if (_root.dorgonDead == true) {
					skullDorgon._visible = true;
				}
			}
			if (_root.gotJack == true) {
				viewchar12._visible = true;
				if (_root.jackDead == true) {
					skullJack._visible = true;
				}
			}
			if (_root.gotLuca == true) {
				viewchar13._visible = true;
				if (_root.lucaDead == true) {
					skullLuca._visible = true;
				}
			}
			if (_root.gotMagellan == true) {
				viewchar14._visible = true;
				if (_root.magellanDead == true) {
					skullMagellan._visible = true;
				}
			}
			if (_root.gotXerxes == true) {
				viewchar15._visible = true;
				if (_root.xerxesDead == true) {
					skullXerxes._visible = true;
				}
			}
		}
		frame 6 {
			function updateRoster() {
				teamSlot5Open = false;
				teamSlot6Open = false;
				teamSlot7Open = false;
				teamSlot8Open = false;
				teamSlot5._visible = false;
				teamSlot6._visible = false;
				teamSlot7._visible = false;
				teamSlot8._visible = false;
				if (_root.mainCharPersonality > 6) {
					teamSlot5Open = true;
					teamSlot5._visible = true;
				}
				if (_root.mainCharPersonality <= 6) {
					_root.slot5 = 'none';
					_root.slot6 = 'none';
					_root.slot7 = 'none';
					_root.slot8 = 'none';
				}
				if (_root.mainCharPersonality > 9) {
					teamSlot6Open = true;
					teamSlot6._visible = true;
				}
				if (_root.mainCharPersonality <= 9) {
					_root.slot6 = 'none';
					_root.slot7 = 'none';
					_root.slot8 = 'none';
				}
				if (_root.mainCharPersonality > 11) {
					teamSlot7Open = true;
					teamSlot7._visible = true;
				}
				if (_root.mainCharPersonality <= 11) {
					_root.slot7 = 'none';
					_root.slot8 = 'none';
				}
				if (_root.mainCharPersonality > 14) {
					teamSlot8Open = true;
					teamSlot8._visible = true;
				}
				if (_root.mainCharPersonality <= 14) {
					_root.slot8 = 'none';
				}
				viewchar1._visible = false;
				viewchar1._x = 220.9;
				viewchar1._y = 40;
				viewchar2._visible = false;
				viewchar2._x = 220.9;
				viewchar2._y = 58;
				viewchar3._visible = false;
				viewchar3._x = 220.9;
				viewchar3._y = 76;
				viewchar5._visible = false;
				viewchar5._x = 220.9;
				viewchar5._y = 94;
				viewchar6._visible = false;
				viewchar6._x = 220.9;
				viewchar6._y = 112;
				viewchar7._visible = false;
				viewchar7._x = 220.9;
				viewchar7._y = 130;
				viewchar8._visible = false;
				viewchar8._x = 220.9;
				viewchar8._y = 148;
				viewchar9._visible = false;
				viewchar9._x = 220.9;
				viewchar9._y = 166;
				viewchar10._visible = false;
				viewchar10._x = 220.9;
				viewchar10._y = 184;
				viewchar11._visible = false;
				viewchar11._x = 220.9;
				viewchar11._y = 202;
				viewchar12._visible = false;
				viewchar12._x = 220.9;
				viewchar12._y = 220;
				viewchar13._visible = false;
				viewchar13._x = 220.9;
				viewchar13._y = 238;
				viewchar14._visible = false;
				viewchar14._x = 220.9;
				viewchar14._y = 256;
				viewchar15._visible = false;
				viewchar15._x = 220.9;
				viewchar15._y = 274;
				if (_root.gotDarkling == true && _root.slot1 !== 'Darkling' && _root.slot2 !== 'Darkling' && _root.slot3 !== 'Darkling' && _root.slot8 !== 'Darkling' && _root.slot5 !== 'Darkling' && _root.slot6 !== 'Darkling' && _root.slot7 !== 'Darkling') {
					viewchar1._visible = true;
				}
				if (_root.gotShadowboxer == true && _root.slot1 !== 'Shadowboxer' && _root.slot2 !== 'Shadowboxer' && _root.slot3 !== 'Shadowboxer' && _root.slot8 !== 'Shadowboxer' && _root.slot5 !== 'Shadowboxer' && _root.slot6 !== 'Shadowboxer' && _root.slot7 !== 'Shadowboxer') {
					viewchar2._visible = true;
				}
				if (_root.gotFestus == true && _root.slot1 !== 'Festus' && _root.slot2 !== 'Festus' && _root.slot3 !== 'Festus' && _root.slot8 !== 'Festus' && _root.slot5 !== 'Festus' && _root.slot6 !== 'Festus' && _root.slot7 !== 'Festus') {
					viewchar3._visible = true;
				}
				if (_root.gotNiven == true && _root.slot1 !== 'Niven' && _root.slot2 !== 'Niven' && _root.slot3 !== 'Niven' && _root.slot8 !== 'Niven' && _root.slot5 !== 'Niven' && _root.slot6 !== 'Niven' && _root.slot7 !== 'Niven') {
					viewchar5._visible = true;
				}
				if (_root.gotFlint == true && _root.slot1 !== 'Flint' && _root.slot2 !== 'Flint' && _root.slot3 !== 'Flint' && _root.slot8 !== 'Flint' && _root.slot5 !== 'Flint' && _root.slot6 !== 'Flint' && _root.slot7 !== 'Flint') {
					viewchar6._visible = true;
				}
				if (_root.gotHelena == true && _root.slot1 !== 'Helena' && _root.slot2 !== 'Helena' && _root.slot3 !== 'Helena' && _root.slot8 !== 'Helena' && _root.slot5 !== 'Helena' && _root.slot6 !== 'Helena' && _root.slot7 !== 'Helena') {
					viewchar7._visible = true;
				}
				if (_root.gotGrotius == true && _root.slot1 !== 'Grotius' && _root.slot2 !== 'Grotius' && _root.slot3 !== 'Grotius' && _root.slot8 !== 'Grotius' && _root.slot5 !== 'Grotius' && _root.slot6 !== 'Grotius' && _root.slot7 !== 'Grotius') {
					viewchar8._visible = true;
				}
				if (_root.gotAnya == true && _root.slot1 !== 'Anya' && _root.slot2 !== 'Anya' && _root.slot3 !== 'Anya' && _root.slot8 !== 'Anya' && _root.slot5 !== 'Anya' && _root.slot6 !== 'Anya' && _root.slot7 !== 'Anya') {
					viewchar9._visible = true;
				}
				if (_root.gotGuy == true && _root.slot1 !== 'Guy' && _root.slot2 !== 'Guy' && _root.slot3 !== 'Guy' && _root.slot8 !== 'Guy' && _root.slot5 !== 'Guy' && _root.slot6 !== 'Guy' && _root.slot7 !== 'Guy') {
					viewchar10._visible = true;
				}
				if (_root.gotDorgon == true && _root.slot1 !== 'Dorgon' && _root.slot2 !== 'Dorgon' && _root.slot3 !== 'Dorgon' && _root.slot8 !== 'Dorgon' && _root.slot5 !== 'Dorgon' && _root.slot6 !== 'Dorgon' && _root.slot7 !== 'Dorgon') {
					viewchar11._visible = true;
				}
				if (_root.gotJack == true && _root.slot1 !== 'Gamblin\' Jack' && _root.slot2 !== 'Gamblin\' Jack' && _root.slot3 !== 'Gamblin\' Jack' && _root.slot8 !== 'Gamblin\' Jack' && _root.slot5 !== 'Gamblin\' Jack' && _root.slot6 !== 'Gamblin\' Jack' && _root.slot7 !== 'Gamblin\' Jack') {
					viewchar12._visible = true;
				}
				if (_root.gotLuca == true && _root.slot1 !== 'Luca' && _root.slot2 !== 'Luca' && _root.slot3 !== 'Luca' && _root.slot8 !== 'Luca' && _root.slot5 !== 'Luca' && _root.slot6 !== 'Luca' && _root.slot7 !== 'Luca') {
					viewchar13._visible = true;
				}
				if (_root.gotMagellan == true && _root.slot1 !== 'Magellan' && _root.slot2 !== 'Magellan' && _root.slot3 !== 'Magellan' && _root.slot8 !== 'Magellan' && _root.slot5 !== 'Magellan' && _root.slot6 !== 'Magellan' && _root.slot7 !== 'Magellan') {
					viewchar14._visible = true;
				}
				if (_root.gotXerxes == true && _root.slot1 !== 'Xerxes' && _root.slot2 !== 'Xerxes' && _root.slot3 !== 'Xerxes' && _root.slot8 !== 'Xerxes' && _root.slot5 !== 'Xerxes' && _root.slot6 !== 'Xerxes' && _root.slot7 !== 'Xerxes') {
					viewchar15._visible = true;
				}
			}
			function showFormation() {
				if (_root.formation == 1) {
					checkmark._y = 51;
				}
				if (_root.formation == 2) {
					checkmark._y = 85;
				}
			}
			updateRoster();
			showFormation();
			stop();
			viewchar1.onPress = function () {
				viewchar1.startDrag();
			};
			viewchar1.onRelease = function () {
				viewchar1.stopDrag();
				if (viewchar1.hitTest(teamSlot1) && !viewchar1.hitTest(teamSlot2)) {
					_root.slot1 = 'Darkling';
				}
				if (viewchar1.hitTest(teamSlot2) && !viewchar1.hitTest(teamSlot1) && !viewchar1.hitTest(teamSlot3)) {
					_root.slot2 = 'Darkling';
				}
				if (viewchar1.hitTest(teamSlot3) && !viewchar1.hitTest(teamSlot2)) {
					_root.slot3 = 'Darkling';
				}
				if (teamSlot5Open == true && viewchar1.hitTest(teamSlot5) && !viewchar1.hitTest(teamSlot6)) {
					_root.slot5 = 'Darkling';
				}
				if (teamSlot6Open == true && viewchar1.hitTest(teamSlot6) && !viewchar1.hitTest(teamSlot5) && !viewchar1.hitTest(teamSlot7)) {
					_root.slot6 = 'Darkling';
				}
				if (teamSlot7Open == true && viewchar1.hitTest(teamSlot7) && !viewchar1.hitTest(teamSlot6) && !viewchar1.hitTest(teamSlot8)) {
					_root.slot7 = 'Darkling';
				}
				if (teamSlot8Open == true && viewchar1.hitTest(teamSlot8) && !viewchar1.hitTest(teamSlot7)) {
					_root.slot8 = 'Darkling';
				}
				updateRoster();
			};
			viewchar2.onPress = function () {
				viewchar2.startDrag();
			};
			viewchar2.onRelease = function () {
				viewchar2.stopDrag();
				if (viewchar2.hitTest(teamSlot1) && !viewchar2.hitTest(teamSlot2)) {
					_root.slot1 = 'Shadowboxer';
				}
				if (viewchar2.hitTest(teamSlot2) && !viewchar2.hitTest(teamSlot1) && !viewchar2.hitTest(teamSlot3)) {
					_root.slot2 = 'Shadowboxer';
				}
				if (viewchar2.hitTest(teamSlot3) && !viewchar2.hitTest(teamSlot2)) {
					_root.slot3 = 'Shadowboxer';
				}
				if (teamSlot5Open == true && viewchar2.hitTest(teamSlot5) && !viewchar2.hitTest(teamSlot6)) {
					_root.slot5 = 'Shadowboxer';
				}
				if (teamSlot6Open == true && viewchar2.hitTest(teamSlot6) && !viewchar2.hitTest(teamSlot5) && !viewchar2.hitTest(teamSlot7)) {
					_root.slot6 = 'Shadowboxer';
				}
				if (teamSlot7Open == true && viewchar2.hitTest(teamSlot7) && !viewchar2.hitTest(teamSlot6) && !viewchar2.hitTest(teamSlot8)) {
					_root.slot7 = 'Shadowboxer';
				}
				if (teamSlot8Open == true && viewchar2.hitTest(teamSlot8) && !viewchar2.hitTest(teamSlot7)) {
					_root.slot8 = 'Shadowboxer';
				}
				updateRoster();
			};
			viewchar3.onPress = function () {
				viewchar3.startDrag();
			};
			viewchar3.onRelease = function () {
				viewchar3.stopDrag();
				if (viewchar3.hitTest(teamSlot1) && !viewchar3.hitTest(teamSlot2)) {
					_root.slot1 = 'Festus';
				}
				if (viewchar3.hitTest(teamSlot2) && !viewchar3.hitTest(teamSlot1) && !viewchar3.hitTest(teamSlot3)) {
					_root.slot2 = 'Festus';
				}
				if (viewchar3.hitTest(teamSlot3) && !viewchar3.hitTest(teamSlot2)) {
					_root.slot3 = 'Festus';
				}
				if (teamSlot5Open == true && viewchar3.hitTest(teamSlot5) && !viewchar3.hitTest(teamSlot6)) {
					_root.slot5 = 'Festus';
				}
				if (teamSlot6Open == true && viewchar3.hitTest(teamSlot6) && !viewchar3.hitTest(teamSlot5) && !viewchar3.hitTest(teamSlot7)) {
					_root.slot6 = 'Festus';
				}
				if (teamSlot7Open == true && viewchar3.hitTest(teamSlot7) && !viewchar3.hitTest(teamSlot6) && !viewchar3.hitTest(teamSlot8)) {
					_root.slot7 = 'Festus';
				}
				if (teamSlot8Open == true && viewchar3.hitTest(teamSlot8) && !viewchar3.hitTest(teamSlot7)) {
					_root.slot8 = 'Festus';
				}
				updateRoster();
			};
			viewchar5.onPress = function () {
				viewchar5.startDrag();
			};
			viewchar5.onRelease = function () {
				viewchar5.stopDrag();
				if (viewchar5.hitTest(teamSlot1) && !viewchar5.hitTest(teamSlot2)) {
					_root.slot1 = 'Niven';
				}
				if (viewchar5.hitTest(teamSlot2) && !viewchar5.hitTest(teamSlot1) && !viewchar5.hitTest(teamSlot3)) {
					_root.slot2 = 'Niven';
				}
				if (viewchar5.hitTest(teamSlot3) && !viewchar5.hitTest(teamSlot2)) {
					_root.slot3 = 'Niven';
				}
				if (teamSlot5Open == true && viewchar5.hitTest(teamSlot5) && !viewchar5.hitTest(teamSlot6)) {
					_root.slot5 = 'Niven';
				}
				if (teamSlot6Open == true && viewchar5.hitTest(teamSlot6) && !viewchar5.hitTest(teamSlot5) && !viewchar5.hitTest(teamSlot7)) {
					_root.slot6 = 'Niven';
				}
				if (teamSlot7Open == true && viewchar5.hitTest(teamSlot7) && !viewchar5.hitTest(teamSlot6) && !viewchar5.hitTest(teamSlot8)) {
					_root.slot7 = 'Niven';
				}
				if (teamSlot8Open == true && viewchar5.hitTest(teamSlot8) && !viewchar5.hitTest(teamSlot7)) {
					_root.slot8 = 'Niven';
				}
				updateRoster();
			};
			viewchar6.onPress = function () {
				viewchar6.startDrag();
			};
			viewchar6.onRelease = function () {
				viewchar6.stopDrag();
				if (viewchar6.hitTest(teamSlot1) && !viewchar6.hitTest(teamSlot2)) {
					_root.slot1 = 'Flint';
				}
				if (viewchar6.hitTest(teamSlot2) && !viewchar6.hitTest(teamSlot1) && !viewchar6.hitTest(teamSlot3)) {
					_root.slot2 = 'Flint';
				}
				if (viewchar6.hitTest(teamSlot3) && !viewchar6.hitTest(teamSlot2)) {
					_root.slot3 = 'Flint';
				}
				if (teamSlot5Open == true && viewchar6.hitTest(teamSlot5) && !viewchar6.hitTest(teamSlot6)) {
					_root.slot5 = 'Flint';
				}
				if (teamSlot6Open == true && viewchar6.hitTest(teamSlot6) && !viewchar6.hitTest(teamSlot5) && !viewchar6.hitTest(teamSlot7)) {
					_root.slot6 = 'Flint';
				}
				if (teamSlot7Open == true && viewchar6.hitTest(teamSlot7) && !viewchar6.hitTest(teamSlot6) && !viewchar6.hitTest(teamSlot8)) {
					_root.slot7 = 'Flint';
				}
				if (teamSlot8Open == true && viewchar6.hitTest(teamSlot8) && !viewchar6.hitTest(teamSlot7)) {
					_root.slot8 = 'Flint';
				}
				updateRoster();
			};
			viewchar7.onPress = function () {
				viewchar7.startDrag();
			};
			viewchar7.onRelease = function () {
				viewchar7.stopDrag();
				if (viewchar7.hitTest(teamSlot1) && !viewchar7.hitTest(teamSlot2)) {
					_root.slot1 = 'Helena';
				}
				if (viewchar7.hitTest(teamSlot2) && !viewchar7.hitTest(teamSlot1) && !viewchar7.hitTest(teamSlot3)) {
					_root.slot2 = 'Helena';
				}
				if (viewchar7.hitTest(teamSlot3) && !viewchar7.hitTest(teamSlot2)) {
					_root.slot3 = 'Helena';
				}
				if (teamSlot5Open == true && viewchar7.hitTest(teamSlot5) && !viewchar7.hitTest(teamSlot6)) {
					_root.slot5 = 'Helena';
				}
				if (teamSlot6Open == true && viewchar7.hitTest(teamSlot6) && !viewchar7.hitTest(teamSlot5) && !viewchar7.hitTest(teamSlot7)) {
					_root.slot6 = 'Helena';
				}
				if (teamSlot7Open == true && viewchar7.hitTest(teamSlot7) && !viewchar7.hitTest(teamSlot6) && !viewchar7.hitTest(teamSlot8)) {
					_root.slot7 = 'Helena';
				}
				if (teamSlot8Open == true && viewchar7.hitTest(teamSlot8) && !viewchar7.hitTest(teamSlot7)) {
					_root.slot8 = 'Helena';
				}
				updateRoster();
			};
			viewchar8.onPress = function () {
				viewchar8.startDrag();
			};
			viewchar8.onRelease = function () {
				viewchar8.stopDrag();
				if (viewchar8.hitTest(teamSlot1) && !viewchar8.hitTest(teamSlot2)) {
					_root.slot1 = 'Grotius';
				}
				if (viewchar8.hitTest(teamSlot2) && !viewchar8.hitTest(teamSlot1) && !viewchar8.hitTest(teamSlot3)) {
					_root.slot2 = 'Grotius';
				}
				if (viewchar8.hitTest(teamSlot3) && !viewchar8.hitTest(teamSlot2)) {
					_root.slot3 = 'Grotius';
				}
				if (teamSlot5Open == true && viewchar8.hitTest(teamSlot5) && !viewchar8.hitTest(teamSlot6)) {
					_root.slot5 = 'Grotius';
				}
				if (teamSlot6Open == true && viewchar8.hitTest(teamSlot6) && !viewchar8.hitTest(teamSlot5) && !viewchar8.hitTest(teamSlot7)) {
					_root.slot6 = 'Grotius';
				}
				if (teamSlot7Open == true && viewchar8.hitTest(teamSlot7) && !viewchar8.hitTest(teamSlot6) && !viewchar8.hitTest(teamSlot8)) {
					_root.slot7 = 'Grotius';
				}
				if (teamSlot8Open == true && viewchar8.hitTest(teamSlot8) && !viewchar8.hitTest(teamSlot7)) {
					_root.slot8 = 'Grotius';
				}
				updateRoster();
			};
			viewchar9.onPress = function () {
				viewchar9.startDrag();
			};
			viewchar9.onRelease = function () {
				viewchar9.stopDrag();
				if (viewchar9.hitTest(teamSlot1) && !viewchar9.hitTest(teamSlot2)) {
					_root.slot1 = 'Anya';
				}
				if (viewchar9.hitTest(teamSlot2) && !viewchar9.hitTest(teamSlot1) && !viewchar9.hitTest(teamSlot3)) {
					_root.slot2 = 'Anya';
				}
				if (viewchar9.hitTest(teamSlot3) && !viewchar9.hitTest(teamSlot2)) {
					_root.slot3 = 'Anya';
				}
				if (teamSlot5Open == true && viewchar9.hitTest(teamSlot5) && !viewchar9.hitTest(teamSlot6)) {
					_root.slot5 = 'Anya';
				}
				if (teamSlot6Open == true && viewchar9.hitTest(teamSlot6) && !viewchar9.hitTest(teamSlot5) && !viewchar9.hitTest(teamSlot7)) {
					_root.slot6 = 'Anya';
				}
				if (teamSlot7Open == true && viewchar9.hitTest(teamSlot7) && !viewchar9.hitTest(teamSlot6) && !viewchar9.hitTest(teamSlot8)) {
					_root.slot7 = 'Anya';
				}
				if (teamSlot8Open == true && viewchar9.hitTest(teamSlot8) && !viewchar9.hitTest(teamSlot7)) {
					_root.slot8 = 'Anya';
				}
				updateRoster();
			};
			viewchar10.onPress = function () {
				viewchar10.startDrag();
			};
			viewchar10.onRelease = function () {
				viewchar10.stopDrag();
				if (viewchar10.hitTest(teamSlot1) && !viewchar10.hitTest(teamSlot2)) {
					_root.slot1 = 'Guy';
				}
				if (viewchar10.hitTest(teamSlot2) && !viewchar10.hitTest(teamSlot1) && !viewchar10.hitTest(teamSlot3)) {
					_root.slot2 = 'Guy';
				}
				if (viewchar10.hitTest(teamSlot3) && !viewchar10.hitTest(teamSlot2)) {
					_root.slot3 = 'Guy';
				}
				if (teamSlot5Open == true && viewchar10.hitTest(teamSlot5) && !viewchar10.hitTest(teamSlot6)) {
					_root.slot5 = 'Guy';
				}
				if (teamSlot6Open == true && viewchar10.hitTest(teamSlot6) && !viewchar10.hitTest(teamSlot5) && !viewchar10.hitTest(teamSlot7)) {
					_root.slot6 = 'Guy';
				}
				if (teamSlot7Open == true && viewchar10.hitTest(teamSlot7) && !viewchar10.hitTest(teamSlot6) && !viewchar10.hitTest(teamSlot8)) {
					_root.slot7 = 'Guy';
				}
				if (teamSlot8Open == true && viewchar10.hitTest(teamSlot8) && !viewchar10.hitTest(teamSlot7)) {
					_root.slot8 = 'Guy';
				}
				updateRoster();
			};
			viewchar11.onPress = function () {
				viewchar11.startDrag();
			};
			viewchar11.onRelease = function () {
				viewchar11.stopDrag();
				if (viewchar11.hitTest(teamSlot1) && !viewchar11.hitTest(teamSlot2)) {
					_root.slot1 = 'Dorgon';
				}
				if (viewchar11.hitTest(teamSlot2) && !viewchar11.hitTest(teamSlot1) && !viewchar11.hitTest(teamSlot3)) {
					_root.slot2 = 'Dorgon';
				}
				if (viewchar11.hitTest(teamSlot3) && !viewchar11.hitTest(teamSlot2)) {
					_root.slot3 = 'Dorgon';
				}
				if (teamSlot5Open == true && viewchar11.hitTest(teamSlot5) && !viewchar11.hitTest(teamSlot6)) {
					_root.slot5 = 'Dorgon';
				}
				if (teamSlot6Open == true && viewchar11.hitTest(teamSlot6) && !viewchar11.hitTest(teamSlot5) && !viewchar11.hitTest(teamSlot7)) {
					_root.slot6 = 'Dorgon';
				}
				if (teamSlot7Open == true && viewchar11.hitTest(teamSlot7) && !viewchar11.hitTest(teamSlot6) && !viewchar11.hitTest(teamSlot8)) {
					_root.slot7 = 'Dorgon';
				}
				if (teamSlot8Open == true && viewchar11.hitTest(teamSlot8) && !viewchar11.hitTest(teamSlot7)) {
					_root.slot8 = 'Dorgon';
				}
				updateRoster();
			};
			viewchar12.onPress = function () {
				viewchar12.startDrag();
			};
			viewchar12.onRelease = function () {
				viewchar12.stopDrag();
				if (viewchar12.hitTest(teamSlot1) && !viewchar12.hitTest(teamSlot2)) {
					_root.slot1 = 'Gamblin\' Jack';
				}
				if (viewchar12.hitTest(teamSlot2) && !viewchar12.hitTest(teamSlot1) && !viewchar12.hitTest(teamSlot3)) {
					_root.slot2 = 'Gamblin\' Jack';
				}
				if (viewchar12.hitTest(teamSlot3) && !viewchar12.hitTest(teamSlot2)) {
					_root.slot3 = 'Gamblin\' Jack';
				}
				if (teamSlot5Open == true && viewchar12.hitTest(teamSlot5) && !viewchar12.hitTest(teamSlot6)) {
					_root.slot5 = 'Gamblin\' Jack';
				}
				if (teamSlot6Open == true && viewchar12.hitTest(teamSlot6) && !viewchar12.hitTest(teamSlot5) && !viewchar12.hitTest(teamSlot7)) {
					_root.slot6 = 'Gamblin\' Jack';
				}
				if (teamSlot7Open == true && viewchar12.hitTest(teamSlot7) && !viewchar12.hitTest(teamSlot6) && !viewchar12.hitTest(teamSlot8)) {
					_root.slot7 = 'Gamblin\' Jack';
				}
				if (teamSlot8Open == true && viewchar12.hitTest(teamSlot8) && !viewchar12.hitTest(teamSlot7)) {
					_root.slot8 = 'Gamblin\' Jack';
				}
				updateRoster();
			};
			viewchar13.onPress = function () {
				viewchar13.startDrag();
			};
			viewchar13.onRelease = function () {
				viewchar13.stopDrag();
				if (viewchar13.hitTest(teamSlot1) && !viewchar13.hitTest(teamSlot2)) {
					_root.slot1 = 'Luca';
				}
				if (viewchar13.hitTest(teamSlot2) && !viewchar13.hitTest(teamSlot1) && !viewchar13.hitTest(teamSlot3)) {
					_root.slot2 = 'Luca';
				}
				if (viewchar13.hitTest(teamSlot3) && !viewchar13.hitTest(teamSlot2)) {
					_root.slot3 = 'Luca';
				}
				if (teamSlot5Open == true && viewchar13.hitTest(teamSlot5) && !viewchar13.hitTest(teamSlot6)) {
					_root.slot5 = 'Luca';
				}
				if (teamSlot6Open == true && viewchar13.hitTest(teamSlot6) && !viewchar13.hitTest(teamSlot5) && !viewchar13.hitTest(teamSlot7)) {
					_root.slot6 = 'Luca';
				}
				if (teamSlot7Open == true && viewchar13.hitTest(teamSlot7) && !viewchar13.hitTest(teamSlot6) && !viewchar13.hitTest(teamSlot8)) {
					_root.slot7 = 'Luca';
				}
				if (teamSlot8Open == true && viewchar13.hitTest(teamSlot8) && !viewchar13.hitTest(teamSlot7)) {
					_root.slot8 = 'Luca';
				}
				updateRoster();
			};
			viewchar14.onPress = function () {
				viewchar14.startDrag();
			};
			viewchar14.onRelease = function () {
				viewchar14.stopDrag();
				if (viewchar14.hitTest(teamSlot1) && !viewchar14.hitTest(teamSlot2)) {
					_root.slot1 = 'Magellan';
				}
				if (viewchar14.hitTest(teamSlot2) && !viewchar14.hitTest(teamSlot1) && !viewchar14.hitTest(teamSlot3)) {
					_root.slot2 = 'Magellan';
				}
				if (viewchar14.hitTest(teamSlot3) && !viewchar14.hitTest(teamSlot2)) {
					_root.slot3 = 'Magellan';
				}
				if (teamSlot5Open == true && viewchar14.hitTest(teamSlot5) && !viewchar14.hitTest(teamSlot6)) {
					_root.slot5 = 'Magellan';
				}
				if (teamSlot6Open == true && viewchar14.hitTest(teamSlot6) && !viewchar14.hitTest(teamSlot5) && !viewchar14.hitTest(teamSlot7)) {
					_root.slot6 = 'Magellan';
				}
				if (teamSlot7Open == true && viewchar14.hitTest(teamSlot7) && !viewchar14.hitTest(teamSlot6) && !viewchar14.hitTest(teamSlot8)) {
					_root.slot7 = 'Magellan';
				}
				if (teamSlot8Open == true && viewchar14.hitTest(teamSlot8) && !viewchar14.hitTest(teamSlot7)) {
					_root.slot8 = 'Magellan';
				}
				updateRoster();
			};
			viewchar15.onPress = function () {
				viewchar15.startDrag();
			};
			viewchar15.onRelease = function () {
				viewchar15.stopDrag();
				if (viewchar15.hitTest(teamSlot1) && !viewchar15.hitTest(teamSlot2)) {
					_root.slot1 = 'Xerxes';
				}
				if (viewchar15.hitTest(teamSlot2) && !viewchar15.hitTest(teamSlot1) && !viewchar15.hitTest(teamSlot3)) {
					_root.slot2 = 'Xerxes';
				}
				if (viewchar15.hitTest(teamSlot3) && !viewchar15.hitTest(teamSlot2)) {
					_root.slot3 = 'Xerxes';
				}
				if (teamSlot5Open == true && viewchar15.hitTest(teamSlot5) && !viewchar15.hitTest(teamSlot6)) {
					_root.slot5 = 'Xerxes';
				}
				if (teamSlot6Open == true && viewchar15.hitTest(teamSlot6) && !viewchar15.hitTest(teamSlot5) && !viewchar15.hitTest(teamSlot7)) {
					_root.slot6 = 'Xerxes';
				}
				if (teamSlot7Open == true && viewchar15.hitTest(teamSlot7) && !viewchar15.hitTest(teamSlot6) && !viewchar15.hitTest(teamSlot8)) {
					_root.slot7 = 'Xerxes';
				}
				if (teamSlot8Open == true && viewchar15.hitTest(teamSlot8) && !viewchar15.hitTest(teamSlot7)) {
					_root.slot8 = 'Xerxes';
				}
				updateRoster();
			};
		}
		instance of movieClip 2911	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuSelect();
				_root.formation = 1;
				_parent.showFormation();
			}
		}
		instance of movieClip 2914	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuSelect();
				_root.formation = 2;
				_parent.showFormation();
			}
		}
		frame 7 {
			stop();
			if (_root.darklingAttackType4 == 'shadowblast') {
				atk4 = 'Shadow Blast';
			}
			if (_root.darklingAttackType4 == 'feedback') {
				atk4 = 'Feedback';
				_root.darklingPBLevel = 1;
			}
			if (_root.darklingAttackType4 == 'none') {
				atk4 = '???';
			}
		}
		instance of movieClip 2820	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.viewNextChar();
			}
		}
		instance of movieClip 2971	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.viewPrevChar();
			}
		}
		frame 8 {
			stop();
			if (_root.shadowboxerAttackType3 == 'darkvortex') {
				atk3 = 'Dark Vortex';
			}
			if (_root.shadowboxerAttackType3 == 'none') {
				atk3 = '???';
			}
		}
		instance of movieClip 2971	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.viewPrevChar();
			}
		}
		frame 9 {
			stop();
			if (_root.festusAttackType4 == 'bigshield') {
				atk4Level = _root.festusMSLevel;
			} else {
				atk4Level = 0;
			}
			if (_root.festusAttackType3 == 'megashield') {
				atk3Level = _root.festusMSLevel;
			} else {
				atk3Level = 0;
			}
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 12 {
			stop();
		}
		frame 13 {
			stop();
		}
		frame 14 {
			stop();
			if (_root.anyaAttackType4 == 'bigshield') {
				atk4Level = _root.anyaMSLevel;
			} else {
				atk4Level = 0;
			}
			if (_root.anyaAttackType3 == 'megashield') {
				atk3Level = _root.anyaMSLevel;
			} else {
				atk3Level = 0;
			}
		}
		frame 15 {
			stop();
		}
		frame 16 {
			stop();
		}
		frame 17 {
			stop();
		}
		frame 18 {
			stop();
		}
		frame 19 {
			stop();
		}
		frame 20 {
			stop();
		}
	}
	button 3148 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
			_root.ingameMenu.ingameMenuDisplay.gotoAndStop('MenuTeamSwap');
		}
	}
	movieClip 3149 inGameMenu {
	}
	movieClip 3150	{
	}
	movieClip 3153	{
	}
	movieClip 3160	{
	}
	movieClip 3163	{
	}
	movieClip 3166	{
	}
	movieClip 3169	{
	}
	movieClip 3172	{
	}
	movieClip 3175	{
	}
	movieClip 3178	{
	}
	movieClip 3181	{
	}
	movieClip 3184	{
	}
	movieClip 3185	{
		frame 1 {
			stop();
		}
	}
	movieClip 3189	{
	}
	movieClip 3191	{
	}
	movieClip 3193	{
	}
	movieClip 3195	{
	}
	movieClip 3197	{
	}
	movieClip 3205	{
	}
	movieClip 3206	{
	}
	movieClip 3207	{
	}
	movieClip 3208	{
	}
	movieClip 3209	{
	}
	movieClip 3210	{
	}
	movieClip 3211	{
	}
	movieClip 3212	{
	}
	movieClip 3213	{
	}
	movieClip 3214	{
	}
	movieClip 3215	{
	}
	movieClip 3216	{
	}
	movieClip 3217	{
	}
	movieClip 3218	{
	}
	movieClip 3219	{
	}
	movieClip 3227	{
		frame 1 {
			stop();
		}
	}
	movieClip 3231	{
		frame 1 {
			stop();
		}
	}
	movieClip 3235	{
		frame 1 {
			stop();
		}
	}
	movieClip 3237	{
	}
	movieClip 3239 conv_Box {
		frame 1 {
			stop();
			_root.ConvBox.Clarifier._visible = false;
		}
		instance of movieClip 3150	{
			onClipEvent (press, rollOver) {
				_root.ConvBox.Clarifier._visible = true;
			}
			onClipEvent (rollOut, dragOut) {
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton1 of movieClip 3189	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply1 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 1;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply1 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton2 of movieClip 3191	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply2 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 2;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply2 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton3 of movieClip 3193	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply3 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 3;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply3 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton4 of movieClip 3195	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply4 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 4;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply4 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		frame 2 {
			stop();
			_root.ConvBox.Clarifier._visible = false;
		}
		frame 5 {
			function hideButtons() {
				upgrader1._visible = false;
				upgrader2._visible = false;
				upgrader3._visible = false;
				upgrader5._visible = false;
				upgrader6._visible = false;
				upgrader7._visible = false;
				upgrader8._visible = false;
				upgrader9._visible = false;
				upgrader10._visible = false;
				upgrader11._visible = false;
				upgrader12._visible = false;
				upgrader13._visible = false;
				upgrader14._visible = false;
				upgrader15._visible = false;
				power1._visible = false;
				def1._visible = false;
				power2._visible = false;
				def2._visible = false;
				power3._visible = false;
				def3._visible = false;
				str5._visible = false;
				power5._visible = false;
				def5._visible = false;
				str6._visible = false;
				def6._visible = false;
				str7._visible = false;
				power7._visible = false;
				def7._visible = false;
				power8._visible = false;
				def8._visible = false;
				power9._visible = false;
				def9._visible = false;
				power10._visible = false;
				def10._visible = false;
				str11._visible = false;
				power11._visible = false;
				def11._visible = false;
				str12._visible = false;
				power12._visible = false;
				def12._visible = false;
				power13._visible = false;
				def13._visible = false;
				power14._visible = false;
				def14._visible = false;
				power15._visible = false;
				def15._visible = false;
			}
			function showButtons() {
				if (_root.leveling == false) {
					if (_root.gotDarkling == true) {
						power1._visible = true;
						def1._visible = true;
						upgrader1._visible = true;
					}
					if (_root.gotShadowboxer == true) {
						power2._visible = true;
						def2._visible = true;
						upgrader2._visible = true;
					}
					if (_root.gotFestus == true) {
						power3._visible = true;
						def3._visible = true;
						upgrader3._visible = true;
					}
					if (_root.gotNiven == true) {
						str5._visible = true;
						power5._visible = true;
						def5._visible = true;
						upgrader5._visible = true;
					}
					if (_root.gotFlint == true) {
						str6._visible = true;
						def6._visible = true;
						upgrader6._visible = true;
					}
					if (_root.gotHelena == true) {
						str7._visible = true;
						power7._visible = true;
						def7._visible = true;
						upgrader7._visible = true;
					}
					if (_root.gotGrotius == true) {
						power8._visible = true;
						def8._visible = true;
						upgrader8._visible = true;
					}
					if (_root.gotAnya == true) {
						power9._visible = true;
						def9._visible = true;
						upgrader9._visible = true;
					}
					if (_root.gotGuy == true) {
						power10._visible = true;
						def10._visible = true;
						upgrader10._visible = true;
					}
					if (_root.gotDorgon == true) {
						str11._visible = true;
						power11._visible = true;
						def11._visible = true;
						upgrader11._visible = true;
					}
					if (_root.gotJack == true) {
						str12._visible = true;
						power12._visible = true;
						def12._visible = true;
						upgrader12._visible = true;
					}
					if (_root.gotLuca == true) {
						power13._visible = true;
						def13._visible = true;
						upgrader13._visible = true;
					}
					if (_root.gotMagellan == true) {
						power14._visible = true;
						def14._visible = true;
						upgrader14._visible = true;
					}
					if (_root.gotXerxes == true) {
						power15._visible = true;
						def15._visible = true;
						upgrader15._visible = true;
					}
				}
			}
			stop();
			portraitFinder.gotoAndStop(50);
			hideButtons();
			showButtons();
			_root.ConvBox.power1.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold! ';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.darklingPsyPower;
					++_root.darklingPsP;
					_root.trainingText2 = 'Level: ' + _root.darklingPsyPower + '';
					_root.trainingCost = 25 * _root.darklingPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.darklingPsyPower == 5 && _root.darklingPsyDefense >= 4) {
						_root.leveler = 'Darkling1';
						_root.newSkill();
					}
					if (_root.darklingPsyPower == 6 && _root.darklingPsyDefense >= 6) {
						_root.leveler = 'Darkling2';
						_root.newSkill();
					}
					if (_root.darklingAttackType4 !== 'feedback' && _root.darklingPsyPower == 8) {
						_root.leveler = 'Darkling5';
						_root.newSkill();
					}
					if (_root.darklingAttackType4 == 'shadowblast' && _root.darklingPsyPower == 10) {
						_root.leveler = 'Darkling6';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.def1.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold! ';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.darklingPsyDefense;
					_root.darklingHP += 2;
					++_root.darklingPsP;
					_root.trainingText2 = 'Level: ' + _root.darklingPsyDefense + '';
					_root.trainingCost = 25 * _root.darklingPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.darklingPsyPower >= 5 && _root.darklingPsyDefense == 4) {
						_root.leveler = 'Darkling1';
						_root.newSkill();
					}
					if (_root.darklingPsyPower >= 6 && _root.darklingPsyDefense == 6) {
						_root.leveler = 'Darkling2';
						_root.newSkill();
					}
					if (_root.leveler !== 'Darkling2' && _root.darklingAttackType4 !== 'shadowblast' && _root.darklingPsyDefense == 8) {
						_root.leveler = 'Darkling3';
						_root.newSkill();
					}
					if (_root.leveler !== 'Darkling2' && _root.darklingPsyDefense == 10) {
						_root.leveler = 'Darkling4';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.power2.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.shadowboxerPsyPower;
					++_root.shadowboxerPsP;
					_root.trainingText2 = 'Level: ' + _root.shadowboxerPsyPower + '';
					_root.trainingCost = 25 * _root.shadowboxerPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.shadowboxerPsyPower == 8) {
						_root.leveler = 'Shadowboxer1';
						_root.newSkill();
					}
					if (_root.shadowboxerPsyPower == 10) {
						_root.leveler = 'Shadowboxer2';
						_root.newSkill();
					}
					if (_root.shadowboxerPsyPower == 15) {
						_root.leveler = 'Shadowboxer3';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.def2.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.shadowboxerPsyDefense;
					_root.shadowboxerHP += 2;
					++_root.shadowboxerPsP;
					_root.trainingText2 = 'Level: ' + _root.shadowboxerPsyDefense + '';
					_root.trainingCost = 25 * _root.shadowboxerPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.shadowboxerPsyDefense == 7) {
						_root.leveler = 'Shadowboxer4';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.power3.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.festusPsyPower;
					++_root.festusPsP;
					_root.trainingText2 = 'Level: ' + _root.festusPsyPower + '';
					_root.trainingCost = 25 * _root.festusPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.def3.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.festusPsyDefense;
					_root.festusHP += 2;
					++_root.festusPsP;
					_root.trainingText2 = 'Level: ' + _root.festusPsyDefense + '';
					_root.trainingCost = 25 * _root.festusPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.festusPsyDefense == 8) {
						_root.leveler = 'Festus1';
						_root.newSkill();
					}
					if (_root.festusPsyDefense == 10) {
						_root.leveler = 'Festus2';
						_root.newSkill();
					}
					if (_root.festusPsyDefense == 13) {
						_root.leveler = 'Festus3';
						_root.newSkill();
					}
					if (_root.festusPsyDefense == 15) {
						_root.leveler = 'Festus4';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.str5.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.nivenStrength;
					_root.trainingText2 = 'Level: ' + _root.nivenStrength + '';
					_root.trainingCost = 25 * _root.nivenStrength;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.power5.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.nivenPsyPower;
					++_root.nivenPsP;
					_root.trainingText2 = 'Level: ' + _root.nivenPsyPower + '';
					_root.trainingCost = 25 * _root.nivenPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.nivenPsyPower == 3) {
						_root.leveler = 'Niven1';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.def5.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.nivenPsyDefense;
					_root.nivenHP += 2;
					++_root.nivenPsP;
					_root.trainingText2 = 'Level: ' + _root.nivenPsyDefense + '';
					_root.trainingCost = 25 * _root.nivenPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.str6.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.flintStrength;
					_root.trainingText2 = 'Level: ' + _root.flintStrength + '';
					_root.trainingCost = 25 * _root.flintStrength;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.def6.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.flintPsyDefense;
					_root.flintHP += 2;
					_root.trainingText2 = 'Level: ' + _root.flintPsyDefense + '';
					_root.trainingCost = 25 * _root.flintPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.str7.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.helenaStrength;
					_root.trainingText2 = 'Level: ' + _root.helenaStrength + '';
					_root.trainingCost = 25 * _root.helenaStrength;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.power7.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.helenaPsyPower;
					++_root.helenaPsP;
					_root.trainingText2 = 'Level: ' + _root.helenaPsyPower + '';
					_root.trainingCost = 25 * _root.helenaPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.helenaPsyPower == 5) {
						_root.leveler = 'Helena1';
						_root.newSkill();
					}
					if (_root.helenaPsyPower == 7) {
						_root.leveler = 'Helena2';
						_root.newSkill();
					}
					if (_root.helenaPsyPower == 9) {
						_root.leveler = 'Helena3';
						_root.newSkill();
					}
					if (_root.helenaPsyPower == 12) {
						_root.leveler = 'Helena4';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.def7.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.helenaPsyDefense;
					_root.helenaHP += 2;
					++_root.helenaPsP;
					_root.trainingText2 = 'Level: ' + _root.helenaPsyDefense + '';
					_root.trainingCost = 25 * _root.helenaPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.power8.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.grotiusPsyPower;
					++_root.grotiusPsP;
					_root.trainingText2 = 'Level: ' + _root.grotiusPsyPower + '';
					_root.trainingCost = 25 * _root.grotiusPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.grotiusPsyPower == 9) {
						_root.leveler = 'Grotius1';
						_root.newSkill();
					}
					if (_root.grotiusPsyPower >= 12 && _root.grotiusAttackType3 !== 'frostblast2') {
						_root.leveler = 'Grotius2';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.def8.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.grotiusPsyDefense;
					_root.grotiusHP += 2;
					++_root.grotiusPsP;
					_root.trainingText2 = 'Level: ' + _root.grotiusPsyDefense + '';
					_root.trainingCost = 25 * _root.grotiusPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.grotiusPsyDefense >= 9 && _root.grotiusPsyDefense < 12 && _root.grotiusAttackType4 !== 'frostshield') {
						_root.leveler = 'Grotius3';
						_root.newSkill();
					}
					if (_root.grotiusPsyDefense == 12) {
						_root.leveler = 'Grotius4';
						_root.newSkill();
					}
					if (_root.grotiusPsyDefense == 16) {
						_root.leveler = 'Grotius5';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.power9.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.anyaPsyPower;
					++_root.anyaPsP;
					_root.trainingText2 = 'Level: ' + _root.anyaPsyPower + '';
					_root.trainingCost = 25 * _root.anyaPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.def9.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.anyaPsyDefense;
					_root.anyaHP += 2;
					++_root.anyaPsP;
					_root.trainingText2 = 'Level: ' + _root.anyaPsyDefense + '';
					_root.trainingCost = 25 * _root.anyaPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.anyaPsyDefense == 9) {
						_root.leveler = 'Anya1';
						_root.newSkill();
					}
					if (_root.anyaPsyDefense == 11) {
						_root.leveler = 'Anya2';
						_root.newSkill();
					}
					if (_root.anyaPsyDefense == 13) {
						_root.leveler = 'Anya3';
						_root.newSkill();
					}
					if (_root.anyaPsyDefense == 15) {
						_root.leveler = 'Anya4';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.power10.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.guyPsyPower;
					++_root.guyPsP;
					_root.trainingText2 = 'Level: ' + _root.guyPsyPower + '';
					_root.trainingCost = 25 * _root.guyPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.guyPsyPower == 9) {
						_root.leveler = 'Guy1';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.def10.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.guyPsyDefense;
					_root.guyHP += 2;
					++_root.guyPsP;
					_root.trainingText2 = 'Level: ' + _root.guyPsyDefense + '';
					_root.trainingCost = 25 * _root.guyPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.guyPsyDefense == 7) {
						_root.leveler = 'Guy4';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.str11.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.dorgonStrength;
					_root.trainingText2 = 'Level: ' + _root.dorgonStrength + '';
					_root.trainingCost = 25 * _root.dorgonStrength;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.power11.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.dorgonPsyPower;
					++_root.dorgonPsP;
					_root.trainingText2 = 'Level: ' + _root.dorgonPsyPower + '';
					_root.trainingCost = 25 * _root.dorgonPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.def11.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.dorgonPsyDefense;
					_root.dorgonHP += 2;
					++_root.dorgonPsP;
					_root.trainingText2 = 'Level: ' + _root.dorgonPsyDefense + '';
					_root.trainingCost = 25 * _root.dorgonPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.str12.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.jackStrength;
					_root.trainingText2 = 'Level: ' + _root.jackStrength + '';
					_root.trainingCost = 25 * _root.jackStrength;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.power12.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.jackPsyPower;
					++_root.jackPsP;
					_root.trainingText2 = 'Level: ' + _root.jackPsyPower + '';
					_root.trainingCost = 25 * _root.jackPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.jackPsyPower == 3) {
						_root.leveler = 'Jack1';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.def12.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.jackPsyDefense;
					_root.jackHP += 2;
					++_root.jackPsP;
					_root.trainingText2 = 'Level: ' + _root.jackPsyDefense + '';
					_root.trainingCost = 25 * _root.jackPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
					if (_root.jackPsyDefense == 6) {
						_root.leveler = 'Jack2';
						_root.newSkill();
					}
					if (_root.jackPsyDefense == 10) {
						_root.leveler = 'Jack3';
						_root.newSkill();
					}
				}
			};
			_root.ConvBox.power13.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.lucaPsyPower;
					++_root.lucaPsP;
					_root.trainingText2 = 'Level: ' + _root.lucaPsyPower + '';
					_root.trainingCost = 25 * _root.lucaPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.def13.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.lucaPsyDefense;
					_root.lucaHP += 2;
					++_root.lucaPsP;
					_root.trainingText2 = 'Level: ' + _root.lucaPsyDefense + '';
					_root.trainingCost = 25 * _root.lucaPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.power14.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.magellanPsyPower;
					++_root.magellanPsP;
					_root.trainingText2 = 'Level: ' + _root.magellanPsyPower + '';
					_root.trainingCost = 25 * _root.magellanPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.def14.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.magellanPsyDefense;
					_root.magellanHP += 2;
					++_root.magellanPsP;
					_root.trainingText2 = 'Level: ' + _root.magellanPsyDefense + '';
					_root.trainingCost = 25 * _root.magellanPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.power15.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.xerxesPsyPower;
					++_root.xerxesPsP;
					_root.trainingText2 = 'Level: ' + _root.xerxesPsyPower + '';
					_root.trainingCost = 25 * _root.xerxesPsyPower;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.def15.onPress = function () {
				if (_root.money < _root.trainingCost) {
					_root.trainingText3 = 'Not enough gold!';
				}
				if (_root.money >= _root.trainingCost) {
					_root.money -= _root.trainingCost;
					++_root.xerxesPsyDefense;
					_root.xerxesHP += 2;
					++_root.xerxesPsP;
					_root.trainingText2 = 'Level: ' + _root.xerxesPsyDefense + '';
					_root.trainingCost = 25 * _root.xerxesPsyDefense;
					_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
				}
			};
			_root.ConvBox.upgrader1.onRollOver = function () {
				portraitFinder.gotoAndStop(2);
			};
			_root.ConvBox.upgrader1.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power1.onRollOver = function () {
				portraitFinder.gotoAndStop(2);
				_root.ConvBox.power1.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.darklingPsyPower + '';
				_root.trainingCost = 25 * _root.darklingPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def1.onRollOver = function () {
				portraitFinder.gotoAndStop(2);
				_root.ConvBox.def1.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.darklingPsyDefense + '';
				_root.trainingCost = 25 * _root.darklingPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power1.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power1.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def1.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def1.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader2.onRollOver = function () {
				portraitFinder.gotoAndStop(3);
			};
			_root.ConvBox.upgrader2.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power2.onRollOver = function () {
				portraitFinder.gotoAndStop(3);
				_root.ConvBox.power2.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.shadowboxerPsyPower + '';
				_root.trainingCost = 25 * _root.shadowboxerPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def2.onRollOver = function () {
				portraitFinder.gotoAndStop(3);
				_root.ConvBox.def2.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.shadowboxerPsyDefense + '';
				_root.trainingCost = 25 * _root.shadowboxerPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power2.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power2.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def2.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def2.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader3.onRollOver = function () {
				portraitFinder.gotoAndStop(4);
			};
			_root.ConvBox.upgrader3.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power3.onRollOver = function () {
				portraitFinder.gotoAndStop(4);
				_root.ConvBox.power3.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.festusPsyPower + '';
				_root.trainingCost = 25 * _root.festusPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def3.onRollOver = function () {
				portraitFinder.gotoAndStop(4);
				_root.ConvBox.def3.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.festusPsyDefense + '';
				_root.trainingCost = 25 * _root.festusPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power3.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power3.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def3.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def3.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader5.onRollOver = function () {
				portraitFinder.gotoAndStop(5);
			};
			_root.ConvBox.upgrader5.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.str5.onRollOver = function () {
				portraitFinder.gotoAndStop(5);
				_root.ConvBox.str5.gotoAndStop(2);
				_root.trainingText1 = 'Type: Knife Skill';
				_root.trainingText2 = 'Level: ' + _root.nivenStrength + '';
				_root.trainingCost = 25 * _root.nivenStrength;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power5.onRollOver = function () {
				portraitFinder.gotoAndStop(5);
				_root.ConvBox.power5.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.nivenPsyPower + '';
				_root.trainingCost = 25 * _root.nivenPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def5.onRollOver = function () {
				portraitFinder.gotoAndStop(5);
				_root.ConvBox.def5.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.nivenPsyDefense + '';
				_root.trainingCost = 25 * _root.nivenPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.str5.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.str5.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power5.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power5.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def5.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def5.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader6.onRollOver = function () {
				portraitFinder.gotoAndStop(6);
			};
			_root.ConvBox.upgrader6.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.str6.onRollOver = function () {
				portraitFinder.gotoAndStop(6);
				_root.ConvBox.str6.gotoAndStop(2);
				_root.trainingText1 = 'Type: Brute Strength';
				_root.trainingText2 = 'Level: ' + _root.flintStrength + '';
				_root.trainingCost = 25 * _root.flintStrength;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def6.onRollOver = function () {
				portraitFinder.gotoAndStop(6);
				_root.ConvBox.def6.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.flintPsyDefense + '';
				_root.trainingCost = 25 * _root.flintPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.str6.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.str6.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def6.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def6.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader7.onRollOver = function () {
				portraitFinder.gotoAndStop(7);
			};
			_root.ConvBox.upgrader7.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.str7.onRollOver = function () {
				portraitFinder.gotoAndStop(7);
				_root.ConvBox.str7.gotoAndStop(2);
				_root.trainingText1 = 'Type: Sword Skill';
				_root.trainingText2 = 'Level: ' + _root.helenaStrength + '';
				_root.trainingCost = 25 * _root.helenaStrength;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power7.onRollOver = function () {
				portraitFinder.gotoAndStop(7);
				_root.ConvBox.power7.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.helenaPsyPower + '';
				_root.trainingCost = 25 * _root.helenaPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def7.onRollOver = function () {
				portraitFinder.gotoAndStop(7);
				_root.ConvBox.def7.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.helenaPsyDefense + '';
				_root.trainingCost = 25 * _root.helenaPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.str7.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.str7.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power7.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power7.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def7.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def7.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader8.onRollOver = function () {
				portraitFinder.gotoAndStop(8);
			};
			_root.ConvBox.upgrader8.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power8.onRollOver = function () {
				portraitFinder.gotoAndStop(8);
				_root.ConvBox.power8.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.grotiusPsyPower + '';
				_root.trainingCost = 25 * _root.grotiusPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def8.onRollOver = function () {
				portraitFinder.gotoAndStop(8);
				_root.ConvBox.def8.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.grotiusPsyDefense + '';
				_root.trainingCost = 25 * _root.grotiusPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power8.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power8.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def8.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def8.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader9.onRollOver = function () {
				portraitFinder.gotoAndStop(9);
			};
			_root.ConvBox.upgrader9.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power9.onRollOver = function () {
				portraitFinder.gotoAndStop(9);
				_root.ConvBox.power9.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.anyaPsyPower + '';
				_root.trainingCost = 25 * _root.anyaPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def9.onRollOver = function () {
				portraitFinder.gotoAndStop(9);
				_root.ConvBox.def9.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.anyaPsyDefense + '';
				_root.trainingCost = 25 * _root.anyaPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power9.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power9.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def9.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def9.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader10.onRollOver = function () {
				portraitFinder.gotoAndStop(10);
			};
			_root.ConvBox.upgrader10.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power10.onRollOver = function () {
				portraitFinder.gotoAndStop(10);
				_root.ConvBox.power10.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.guyPsyPower + '';
				_root.trainingCost = 25 * _root.guyPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def10.onRollOver = function () {
				portraitFinder.gotoAndStop(10);
				_root.ConvBox.def10.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.guyPsyDefense + '';
				_root.trainingCost = 25 * _root.guyPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power10.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power10.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def10.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def10.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader11.onRollOver = function () {
				portraitFinder.gotoAndStop(11);
			};
			_root.ConvBox.upgrader11.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.str11.onRollOver = function () {
				portraitFinder.gotoAndStop(11);
				_root.ConvBox.str11.gotoAndStop(2);
				_root.trainingText1 = 'Type: Brute Strength';
				_root.trainingText2 = 'Level: ' + _root.dorgonStrength + '';
				_root.trainingCost = 25 * _root.dorgonStrength;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power11.onRollOver = function () {
				portraitFinder.gotoAndStop(11);
				_root.ConvBox.power11.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.dorgonPsyPower + '';
				_root.trainingCost = 25 * _root.dorgonPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def11.onRollOver = function () {
				portraitFinder.gotoAndStop(11);
				_root.ConvBox.def11.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.dorgonPsyDefense + '';
				_root.trainingCost = 25 * _root.dorgonPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.str11.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.str11.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power11.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power11.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def11.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def11.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader12.onRollOver = function () {
				portraitFinder.gotoAndStop(12);
			};
			_root.ConvBox.upgrader12.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.str12.onRollOver = function () {
				portraitFinder.gotoAndStop(12);
				_root.ConvBox.str12.gotoAndStop(2);
				_root.trainingText1 = 'Type: Sword Skill';
				_root.trainingText2 = 'Level: ' + _root.jackStrength + '';
				_root.trainingCost = 25 * _root.jackStrength;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power12.onRollOver = function () {
				portraitFinder.gotoAndStop(12);
				_root.ConvBox.power12.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.jackPsyPower + '';
				_root.trainingCost = 25 * _root.jackPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def12.onRollOver = function () {
				portraitFinder.gotoAndStop(12);
				_root.ConvBox.def12.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.jackPsyDefense + '';
				_root.trainingCost = 25 * _root.jackPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.str12.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.str12.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power12.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power12.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def12.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def12.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader13.onRollOver = function () {
				portraitFinder.gotoAndStop(13);
			};
			_root.ConvBox.upgrader13.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power13.onRollOver = function () {
				portraitFinder.gotoAndStop(13);
				_root.ConvBox.power13.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.lucaPsyPower + '';
				_root.trainingCost = 25 * _root.lucaPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def13.onRollOver = function () {
				portraitFinder.gotoAndStop(13);
				_root.ConvBox.def13.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.lucaPsyDefense + '';
				_root.trainingCost = 25 * _root.lucaPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power13.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power13.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def13.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def13.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader14.onRollOver = function () {
				portraitFinder.gotoAndStop(14);
			};
			_root.ConvBox.upgrader14.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power14.onRollOver = function () {
				portraitFinder.gotoAndStop(14);
				_root.ConvBox.power14.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.magellanPsyPower + '';
				_root.trainingCost = 25 * _root.magellanPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def14.onRollOver = function () {
				portraitFinder.gotoAndStop(14);
				_root.ConvBox.def14.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.magellanPsyDefense + '';
				_root.trainingCost = 25 * _root.magellanPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power14.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power14.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def14.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def14.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.upgrader15.onRollOver = function () {
				portraitFinder.gotoAndStop(15);
			};
			_root.ConvBox.upgrader15.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.power15.onRollOver = function () {
				portraitFinder.gotoAndStop(15);
				_root.ConvBox.power15.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Power';
				_root.trainingText2 = 'Level: ' + _root.xerxesPsyPower + '';
				_root.trainingCost = 25 * _root.xerxesPsyPower;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.def15.onRollOver = function () {
				portraitFinder.gotoAndStop(15);
				_root.ConvBox.def15.gotoAndStop(2);
				_root.trainingText1 = 'Type: Psy Defense';
				_root.trainingText2 = 'Level: ' + _root.xerxesPsyDefense + '';
				_root.trainingCost = 25 * _root.xerxesPsyDefense;
				_root.trainingText3 = 'Cost: ' + _root.trainingCost + ' gold';
			};
			_root.ConvBox.power15.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.power15.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
			_root.ConvBox.def15.onRollOut = function () {
				portraitFinder.gotoAndStop(50);
				_root.ConvBox.def15.gotoAndStop(1);
				_root.trainingText1 = '';
				_root.trainingText2 = '';
				_root.trainingText3 = '';
			};
		}
		instance replyButton1 of movieClip 3189	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.playMenuClick();
					_root.replied = 1;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				this.gotoAndStop(2);
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		frame 6 {
			stop();
			_root.ConvBox.Clarifier._visible = false;
		}
		instance of movieClip 3150	{
			onClipEvent (rollOver) {
				_root.ConvBox.Clarifier._visible = true;
			}
			onClipEvent (rollOut, dragOut) {
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton1 of movieClip 3189	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply1 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 1;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply1 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton2 of movieClip 3191	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply2 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 2;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply2 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton3 of movieClip 3193	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply3 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 3;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply3 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton4 of movieClip 3195	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				if (_root.reply4 !== '') {
					this.gotoAndStop(2);
				}
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.leveling == false) {
					_root.replied = 4;
					_root.reply();
				}
				if (_root.leveling == true) {
				}
				if (_root.reply4 !== '') {
					this.gotoAndStop(2);
					_root.playMenuClick();
				}
				_root.ConvBox.Clarifier._visible = false;
			}
		}
	}
	movieClip 3256 doneButton {
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	button 3260 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft > 0) {
				_root.upgraded = 'defense';
				_root.mainCharPsyDefense += 1;
				_root.pointsleft -= 1;
			}
		}
	}
	button 3264 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft < 1 && _root.upgraded == 'defense') {
				_root.mainCharPsyDefense -= 1;
				_root.pointsleft += 1;
			}
		}
	}
	button 3265 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft > 0) {
				_root.upgraded = 'power';
				_root.mainCharPsyPower += 1;
				_root.pointsleft -= 1;
			}
		}
	}
	button 3266 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft < 1 && _root.upgraded == 'power') {
				_root.mainCharPsyPower -= 1;
				_root.pointsleft += 1;
			}
		}
	}
	button 3267 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft > 0) {
				_root.upgraded = 'aptitude';
				_root.mainCharAptitude += 1;
				_root.pointsleft -= 1;
			}
		}
	}
	button 3268 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft < 1 && _root.upgraded == 'aptitude') {
				_root.mainCharAptitude -= 1;
				_root.pointsleft += 1;
			}
		}
	}
	button 3269 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft > 0) {
				_root.upgraded = 'personality';
				_root.mainCharPersonality += 1;
				_root.pointsleft -= 1;
			}
		}
	}
	button 3270 {
		on (press) {
			_root.playMenuClick();
			if (_root.pointsleft < 1 && _root.upgraded == 'personality') {
				_root.mainCharPersonality -= 1;
				_root.pointsleft += 1;
			}
		}
	}
	movieClip 3271 LevelUpBox {
		instance of movieClip 3256 doneButton {
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.leveling = false;
				_root.deriveStats2();
				_root.HPdisplay();
				_root.playMystereMusic();
				_root.playMenuSelect();
				_root.levelBoxClosed = true;
				_root.refreshMenu();
			}
		}
	}
	movieClip 3280 CardGUI {
		frame 1 {
			Pcard1.onPress = function () {
				if (_root.drawn == true && _root.wonCards == 0) {
					_root.drawn = false;
					_root.challengeCcard1();
					_root.redrawCcard1();
					_root.redrawPcard1();
				}
			};
			Pcard2.onPress = function () {
				if (_root.drawn == true && _root.wonCards == 0) {
					_root.drawn = false;
					_root.challengeCcard2();
					_root.redrawCcard2();
					_root.redrawPcard2();
				}
			};
			Pcard3.onPress = function () {
				if (_root.drawn == true && _root.wonCards == 0) {
					_root.drawn = false;
					_root.challengeCcard3();
					_root.redrawCcard3();
					_root.redrawPcard3();
				}
			};
			Pcard4.onPress = function () {
				if (_root.drawn == true && _root.wonCards == 0) {
					_root.drawn = false;
					_root.challengeCcard4();
					_root.redrawCcard4();
					_root.redrawPcard4();
				}
			};
			Pcard5.onPress = function () {
				if (_root.drawn == true && _root.wonCards == 0) {
					_root.drawn = false;
					_root.challengeCcard5();
					_root.redrawCcard5();
					_root.redrawPcard5();
				}
			};
		}
	}
	movieClip 3284 pinholeClose {
		frame 97 {
			stop();
			_root.changeScene();
		}
	}
	movieClip 3285 fadeOut {
		frame 1 {
			_root.mainChar.gotoAndStop(1);
		}
		frame 40 {
			stop();
			_root.changeScene();
		}
	}
	movieClip 3304	{
	}
	movieClip 3307	{
	}
	movieClip 3326	{
		frame 60 {
			_root.mainChar.gotoAndStop(8);
		}
		frame 72 {
			_root.ConvBox._visible = true;
			_root.conversation();
			_root.timesStuck += 1;
			_root.mainCharDamage += random(5) + 2;
			_root.HPdisplay();
			_root.Background.Niven.gotoAndStop(1);
		}
	}
	movieClip 3343	{
	}
	movieClip 3353	{
		frame 90 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 3381	{
	}
	movieClip 3398	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 3399 Niven {
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 3402 newSkillBox {
		instance of movieClip 2563	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMystereMusic();
				_root.playMenuSelect();
				_root.leveling = false;
				_root.ConvBox.showButtons();
				_root.newSkillBox.removeMovieClip();
			}
		}
	}
	movieClip 3405	{
	}
	button 3406 {
		on (press) {
			getURL('http://www.sinisterdesign.net/', '_blank');
		}
	}
	movieClip 3407 Sinister_Design_intro {
		frame 20 {
			_root.playSDintro();
		}
		frame 240 {
			_root.stopAllSounds;
			_root.openMainMenu();
		}
	}
	movieClip 3410 Map_DeeperDowns {
	}
	movieClip 3413	{
	}
	movieClip 3415	{
	}
	movieClip 3417	{
	}
	movieClip 3419	{
	}
	movieClip 3421	{
	}
	movieClip 3422	{
	}
	movieClip 3424	{
	}
	movieClip 3426	{
	}
	movieClip 3428	{
	}
	movieClip 3430	{
	}
	movieClip 3432	{
	}
	movieClip 3433	{
	}
	movieClip 3434	{
	}
	movieClip 3435	{
	}
	movieClip 3436 csceneDeeperDowns01 {
		frame 120 {
			stop();
		}
	}
	movieClip 3437	{
	}
	movieClip 3438	{
	}
	movieClip 3439	{
		frame 1 {
			stop();
		}
		instance of movieClip 65	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 3440	{
		frame 4 {
			if (_root.floorType == 'tile') {
				_root.playStepTile1();
			}
			if (_root.floorType == 'grass') {
				_root.playStepGrass1();
			}
		}
		frame 18 {
			if (_root.floorType == 'tile') {
				_root.playStepTile2();
			}
			if (_root.floorType == 'grass') {
				_root.playStepGrass2();
			}
		}
	}
	movieClip 3441 csceneForest01 {
		frame 105 {
			scrollSpeed = 5;
		}
		frame 105 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 106 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 107 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 108 {
			scrollSpeed = 6;
		}
		frame 108 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 109 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 110 {
			scrollSpeed = 7;
		}
		frame 110 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 111 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 112 {
			scrollSpeed = 8;
		}
		frame 112 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 113 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 114 {
			scrollSpeed = 9;
		}
		frame 114 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 115 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 116 {
			scrollSpeed = 10;
		}
		frame 116 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 117 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 118 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 119 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 120 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 121 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 122 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 123 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 124 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 125 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 126 {
			scrollSpeed = 9;
		}
		frame 126 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 127 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 128 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 129 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 130 {
			scrollSpeed = 8;
		}
		frame 130 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 131 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 132 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 133 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 134 {
			scrollSpeed = 7;
		}
		frame 134 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 135 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 136 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 137 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 138 {
			scrollSpeed = 6;
		}
		frame 138 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 139 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 140 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 141 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 142 {
			scrollSpeed = 5;
		}
		frame 142 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 143 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 144 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 145 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 146 {
			scrollSpeed = 4;
		}
		frame 146 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 147 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 148 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 149 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 150 {
			scrollSpeed = 3;
		}
		frame 150 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 151 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 152 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 153 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 154 {
			scrollSpeed = 2;
		}
		frame 154 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 155 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 156 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 157 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 158 {
			scrollSpeed = 1;
		}
		frame 158 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 159 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 160 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 161 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 162 {
			_root.Background._y += scrollSpeed;
			_root.Overhead._y += scrollSpeed;
		}
		frame 170 {
			stop();
			_root.talking = 1;
		}
	}
	movieClip 3442	{
	}
	movieClip 3443	{
	}
	movieClip 3444	{
	}
	movieClip 3445 csceneLakeAlto01 {
		frame 80 {
			stop();
		}
	}
	movieClip 3448 Map_Academy {
	}
	movieClip 3452	{
	}
	movieClip 3454	{
	}
	movieClip 3457 SafetyBonusB {
	}
	movieClip 3461 SafetyBonusA {
	}
	movieClip 3463	{
	}
	movieClip 3465	{
	}
	movieClip 3467	{
	}
	movieClip 3469	{
	}
	movieClip 3471	{
	}
	movieClip 3472	{
	}
	movieClip 3476	{
		frame 90 {
			_root.attacked = 1;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 3477	{
		frame 104 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 3478	{
	}
	movieClip 3483	{
		frame 40 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 3484	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 3485	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 3486 phantom {
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			_root.enemyGo = 1;
			stop();
		}
	}
	movieClip 3490	{
	}
	button 3492 {
		on (release) {
			getURL('http://www.armorgames.com', 'blank');
		}
	}
	movieClip 3494	{
	}
	movieClip 3496	{
	}
	movieClip 3498	{
	}
	movieClip 3501 Armor_Games_intro {
		frame 155 {
			_root.play();
		}
	}
	frame 6 {
		stop();
	}
	frame 7 {
		stop();
		attachMovie('Sinister_Design_intro', 'Sinister_Design_intro', 500);
		Sinister_Design_intro._x = 275;
		Sinister_Design_intro._y = 200;
	}
	movieClip 3526	{
	}
	movieClip 3529	{
	}
	movieClip 3531	{
		frame 40 {
			stop();
		}
	}
	movieClip 3533	{
	}
	button 3537 {
		on (release) {
			loadSaveData();
			gotoAndStop('SavedGames');
			playMenuSelect();
		}
	}
	button 3541 {
		on (release) {
			playMenuSelect();
			gotoAndStop('Tutorials');
		}
	}
	button 3548 {
		on (release) {
			playMenuSelect();
			gotoAndPlay('duelSetup');
		}
	}
	button 3553 {
		on (release) {
			playMenuSelect();
			gotoAndStop('Credits');
		}
	}
	button 3557 {
		on (press) {
			playMenuSelect();
			gotoAndPlay('CreateChar');
		}
	}
	button 3561 {
		on (release) {
			getURL('http://www.armorgames.com/games/telepathrpg.html', '_blank');
		}
	}
	frame 65 {
		stop();
		loadSaveData();
	}
	instance armorGames of movieClip 3533	{
		onClipEvent (release) {
			getURL('http://www.armorgames.com', '_blank');
		}
	}
	frame 66 {
		stop();
	}
	instance armorGames of movieClip 3533	{
		onClipEvent (release) {
			getURL('http://www.armorgames.com', '_blank');
		}
	}
	button 3568 {
		on (press) {
			_root.saveSlot = 2;
			_root.loadGame();
			_root.playMenuSelect();
		}
	}
	movieClip 3569 Menu_SaveSlots {
	}
	button 3571 {
		on (press) {
			playMenuClick();
			gotoAndStop('GameMenu');
		}
	}
	frame 67 {
		stop();
	}
	button 3573 {
		on (press) {
			playMenuClick();
			gotoAndStop('GameMenu');
		}
	}
	button 3574 {
		on (release) {
			getURL('http://www.sinisterdesign.net/', '_blank');
		}
	}
	button 3575 {
		on (release) {
			getURL('http://www.tomfoolio.com/', '_blank');
		}
	}
	frame 68 {
		stop();
		tutDescription = '';
	}
	button 3580 {
		on (rollOver) {
			_root.tutDescription = 'Learn the basic controls, how to save and load the game, and how to access the in-game menu.';
		}
		on (rollOut) {
			_root.tutDescription = '';
		}
		on (press) {
			playMenuSelect();
			gotoAndStop(79);
		}
	}
	button 3584 {
		on (rollOver) {
			_root.tutDescription = 'Learn how to fight battles in Telepath RPG Chapter 2.';
		}
		on (rollOut) {
			_root.tutDescription = '';
		}
		on (press) {
			playMenuSelect();
			gotoAndStop(80);
		}
	}
	button 3588 {
		on (rollOver) {
			_root.tutDescription = 'Learn how to level up, train your teammates, and manage your team.';
		}
		on (rollOut) {
			_root.tutDescription = '';
		}
		on (press) {
			playMenuSelect();
			gotoAndStop(81);
		}
	}
	frame 70 {
		function randomizeStats() {
			_root.mainCharPsyDefense = random(10) + 3;
			_root.mainCharPsyPower = random(10) + 3;
			_root.mainCharPersonality = random(10) + 3;
			_root.mainCharAptitude = random(10) + 3;
			_root.pointsleft = 36 - (_root.mainCharPsyDefense + _root.mainCharPsyPower + _root.mainCharPersonality + _root.mainCharAptitude);
			while (_root.pointsleft > 0) {
				_root.mainCharPsyDefense += random(2);
				_root.mainCharPsyPower += random(2);
				_root.mainCharPersonality += random(2);
				_root.mainCharAptitude += random(2);
				_root.pointsleft = 36 - (_root.mainCharPsyDefense + _root.mainCharPsyPower + _root.mainCharPersonality + _root.mainCharAptitude);
				if (_root.mainCharPsyDefense > 12) {
					_root.mainCharPsyDefense -= 1;
					if (_root.mainCharPsyPower < 11) {
						_root.mainCharPsyPower += 1;
					}
					if (_root.mainCharPsyPower >= 11 && _root.mainCharPersonality < 11) {
						_root.mainCharPersonality += 1;
					}
					if (_root.mainCharPsyPower >= 11 && _root.mainCharPersonality >= 11 && _root.mainCharAptitude < 11) {
						_root._root.mainCharAptitude += 1;
					}
				}
				if (_root.mainCharPsyPower > 12) {
					_root.mainCharPsyPower -= 1;
					if (_root.mainCharPsyDefense < 11) {
						_root.mainCharPsyDefense += 1;
					}
					if (_root.mainCharPsyDefense >= 11 && _root.mainCharPersonality < 11) {
						_root.mainCharPersonality += 1;
					}
					if (_root.mainCharPsyDefense >= 11 && _root.mainCharPersonality >= 11 && _root.mainCharAptitude < 11) {
						_root._root.mainCharAptitude += 1;
					}
				}
				if (_root.mainCharPersonality > 12) {
					_root.mainCharPersonality -= 1;
					if (_root.mainCharPsyDefense < 11) {
						_root.mainCharPsyDefense += 1;
					}
					if (_root.mainCharPsyDefense >= 11 && _root.mainCharPsyPower < 11) {
						_root.mainCharPsyPower += 1;
					}
					if (_root.mainCharPsyDefense >= 11 && _root.mainCharPsyPower >= 11 && _root.mainCharAptitude < 11) {
						_root._root.mainCharAptitude += 1;
					}
				}
				if (_root.mainCharAptitude > 12) {
					_root.mainCharAptitude -= 1;
					if (_root.mainCharPsyDefense < 11) {
						_root.mainCharPsyDefense += 1;
					}
					if (_root.mainCharPsyDefense >= 11 && _root.mainCharPsyPower < 11) {
						_root.mainCharPsyPower += 1;
					}
					if (_root.mainCharPsyDefense >= 11 && _root.mainCharPsyPower >= 11 && _root.mainCharPersonality < 11) {
						_root._root.mainCharPersonality += 1;
					}
				}
			}
			while (_root.pointsleft < 0) {
				_root.mainCharPsyDefense -= random(2);
				_root.mainCharPsyPower -= random(2);
				_root.mainCharPersonality -= random(2);
				_root.mainCharAptitude -= random(2);
				_root.pointsleft = 36 - (_root.mainCharPsyDefense + _root.mainCharPsyPower + _root.mainCharPersonality + _root.mainCharAptitude);
			}
		}
		function deriveStats() {
			myLSO = SharedObject.getLocal('TelepathRPG2_autoSave');
			if (myLSO.data.myObj == undefined) {
				gameDifficulty = 'easy';
			} else {
				gameDifficulty = 'normal';
			}
			mainCharName = inputName;
			mainCharHP = 2 * mainCharPsyDefense;
			if (mainCharHP < 10) {
				mainCharHP = 10;
			}
			mainCharPsP = mainCharPsyDefense + mainCharPsyPower;
			money = mainCharPersonality * 40 + 60;
		}
		function doneWithCreation() {
			if (_root.pointsleft == 0) {
				_root.beginGameButton._visible = true;
			}
			if (_root.pointsleft > 0) {
				_root.beginGameButton._visible = false;
			}
			if (_root.inputName == '' || _root.inputName == 'Name Me Plea' || _root.inputName == 'Name Me Pleas' || _root.inputName == 'Name Me Please') {
				_root.StepOne.gotoAndStop(2);
				_root.beginGameButton._visible = false;
			} else {
				_root.StepOne.gotoAndStop(1);
			}
		}
		_root.beginGameButton._visible = false;
		display = '';
		inputName = 'Name Me Please';
		mainCharName = '';
		mainCharLevel = 5;
		mainCharMovement = 'land';
		mainCharResists = 'none';
		mainCharAttackType1 = 'mindblast';
		mainCharAttackType2 = 'mindshield';
		mainCharAttackType3 = 'pyroblast';
		mainCharAttackType4 = 'feedback';
		mainCharMBLevel = 1;
		mainCharMSLevel = 1;
		mainCharPBLevel = 1;
		mainCharFBLevel = 1;
		mainCharPsyPower = 0;
		mainCharPsyDefense = 0;
		mainCharPersonality = 0;
		mainCharAptitude = 0;
		mainCharSpeed = 5;
		mainCharHP = 0;
		mainCharPsP = 0;
		mainCharDamage = 0;
		mainCharDrain = 0;
		money = 0;
		mission1Done = false;
		mission2Done = false;
		mission3Done = false;
		mission4Done = false;
		mission5Done = false;
		mission6Done = false;
		mission7Done = false;
		mission8Done = false;
		mission9Done = false;
		mission10Done = false;
		mission11Done = false;
		mission12Done = false;
		var missionsDone = 0;
		var lastMissionsDone = 0;
		beat05A = false;
		beat06A = false;
		beatGame = 0;
		gotSaw = false;
		gotFlameThrower = false;
		gotCapacitor = false;
		gotGuardGold = false;
		workshopOpened = false;
		gotBlueOrb = false;
		gotOrangeOrb = false;
		gotBlackOrb = false;
		gotWhiteOrb = false;
		gotIndigoOrb = false;
		gotGreenOrb = false;
		gotYellowOrb = false;
		gotRedOrb = false;
		slot1 = 'none';
		slot2 = 'none';
		slot3 = 'none';
		slot5 = 'none';
		slot6 = 'none';
		slot7 = 'none';
		slot8 = 'none';
		darklingDead = true;
		shadowboxerDead = true;
		festusDead = true;
		nivenDead = true;
		flintDead = true;
		helenaDead = true;
		grotiusDead = true;
		anyaDead = true;
		guyDead = true;
		dorgonDead = true;
		jackDead = true;
		lucaDead = true;
		magellanDead = true;
		xerxesDead = true;
		gotDarkling = false;
		gotShadowboxer = false;
		gotFestus = false;
		gotNiven = false;
		gotFlint = false;
		gotHelena = false;
		gotGrotius = false;
		gotAnya = false;
		gotGuy = false;
		gotDorgan = false;
		gotJack = false;
		gotLuca = false;
		gotMagellan = false;
		gotXerxes = false;
		spokeToNarrator = 0;
		spokeToTastidian = 0;
		spokeToSnarl = 0;
		spokeToNiven = 0;
		spokeToJack = 0;
		spokeToFestus = 0;
		spokeToHellion = 0;
		spokeToNelis = 0;
		spokeToNegatus = 0;
		spokeToAnya = 0;
		spokeToGuy = 0;
		spokeToGrotius = 0;
		spokeToFlavin = 0;
		spokeToVagrant = 0;
		spokeToLala = 0;
		spokeToGelf = 0;
		spokeToPiter = 0;
		spokeToDavid = 0;
		openedAccount = false;
		amtInAccount = 0;
		mainCharLeftToLevel = 3;
		formation = 1;
		moneyWon = 0;
		randomBattles = 0;
		darklingMovement = 'flying';
		darklingResists = 'none';
		darklingHP = 21;
		darklingPsP = 20;
		darklingSpeed = 9;
		darklingMBLevel = 1;
		darklingMSLevel = 0;
		darklingPBLevel = 0;
		darklingFBLevel = 0;
		darklingPsyPower = 4;
		darklingPsyDefense = 3;
		darklingAttackType1 = 'mindblast';
		darklingAttackType2 = 'none';
		darklingAttackType3 = 'none';
		darklingAttackType4 = 'none';
		shadowboxerMovement = 'flying';
		shadowboxerResists = 'none';
		shadowboxerHP = 25;
		shadowboxerPsP = 20;
		shadowboxerSpeed = 8;
		shadowboxerMBLevel = 1;
		shadowboxerMSLevel = 0;
		shadowboxerPBLevel = 0;
		shadowboxerFBLevel = 0;
		shadowboxerPsyPower = 5;
		shadowboxerPsyDefense = 3;
		shadowboxerAttackType1 = 'mindblast';
		shadowboxerAttackType2 = 'none';
		shadowboxerAttackType3 = 'none';
		shadowboxerAttackType4 = 'none';
		festusMovement = 'flying';
		festusResists = 'none';
		festusHP = 24;
		festusPsP = 20;
		festusSpeed = 7;
		festusMBLevel = 1;
		festusMSLevel = 5;
		festusPBLevel = 0;
		festusFBLevel = 0;
		festusPsyPower = 3;
		festusPsyDefense = 5;
		festusAttackType1 = 'mindblast';
		festusAttackType2 = 'mindshield';
		festusAttackType3 = 'none';
		festusAttackType4 = 'none';
		nivenMovement = 'flying';
		nivenResists = 'none';
		nivenHP = 24;
		nivenPsP = 9;
		nivenSpeed = 7;
		nivenMBLevel = 0;
		nivenMSLevel = 0;
		nivenPBLevel = 0;
		nivenFBLevel = 0;
		nivenStrength = 6;
		nivenPsyPower = 1;
		nivenPsyDefense = 1;
		nivenAttackType1 = 'knife';
		nivenAttackType2 = 'fling';
		nivenAttackType3 = 'none';
		nivenAttackType4 = 'none';
		flintMovement = 'land';
		flintResists = 'none';
		flintHP = 38;
		flintPsP = 0;
		flintSpeed = 3;
		flintMBLevel = 0;
		flintMSLevel = 0;
		flintPBLevel = 0;
		flintFBLevel = 0;
		flintStrength = 14;
		flintPsyPower = 0;
		flintPsyDefense = 9;
		flintAttackType1 = 'melee';
		flintAttackType2 = 'none';
		flintAttackType3 = 'none';
		flintAttackType4 = 'none';
		helenaMovement = 'land';
		helenaResists = 'none';
		helenaHP = 29;
		helenaPsP = 13;
		helenaSpeed = 5;
		helenaMBLevel = 0;
		helenaMSLevel = 0;
		helenaPBLevel = 0;
		helenaFBLevel = 0;
		helenaStrength = 11;
		helenaPsyPower = 1;
		helenaPsyDefense = 7;
		helenaAttackType1 = 'melee';
		helenaAttackType2 = 'none';
		helenaAttackType3 = 'none';
		helenaAttackType4 = 'none';
		grotiusMovement = 'flying';
		grotiusResists = 'Cold';
		grotiusHP = 28;
		grotiusPsP = 20;
		grotiusSpeed = 7;
		grotiusMBLevel = 4;
		grotiusMSLevel = 0;
		grotiusPBLevel = 3;
		grotiusFBLevel = 0;
		grotiusStrength = 1;
		grotiusPsyPower = 7;
		grotiusPsyDefense = 4;
		grotiusAttackType1 = 'mindblast';
		grotiusAttackType2 = 'frostblast';
		grotiusAttackType3 = 'none';
		grotiusAttackType4 = 'none';
		anyaMovement = 'land';
		anyaResists = 'none';
		anyaHP = 27;
		anyaPsP = 20;
		anyaSpeed = 5;
		anyaMBLevel = 1;
		anyaMSLevel = 5;
		anyaPBLevel = 0;
		anyaFBLevel = 0;
		anyaPsyPower = 3;
		anyaPsyDefense = 7;
		anyaAttackType1 = 'mindblast';
		anyaAttackType2 = 'farshield';
		anyaAttackType3 = 'none';
		anyaAttackType4 = 'none';
		guyMovement = 'land';
		guyResists = 'none';
		guyHP = 20;
		guyPsP = 20;
		guySpeed = 5;
		guyMBLevel = 1;
		guyMSLevel = 0;
		guyPBLevel = 1;
		guyFBLevel = 0;
		guyPsyPower = 7;
		guyPsyDefense = 5;
		guyAttackType1 = 'mindblast';
		guyAttackType2 = 'pyroblast';
		guyAttackType3 = 'none';
		guyAttackType4 = 'none';
		dorgonMovement = 'land';
		dorgonResists = 'Heat';
		dorgonHP = 20;
		dorgonPsP = 20;
		dorgonSpeed = 7;
		dorgonMBLevel = 1;
		dorgonMSLevel = 3;
		dorgonPBLevel = 0;
		dorgonFBLevel = 0;
		dorgonStrength = 1;
		dorgonPsyPower = 16;
		dorgonPsyDefense = 7;
		dorgonAttackType1 = 'mindblast';
		dorgonAttackType2 = 'none';
		dorgonAttackType3 = 'none';
		dorgonAttackType4 = 'none';
		jackMovement = 'land';
		jackResists = 'none';
		jackHP = 27;
		jackPsP = 10;
		jackSpeed = 5;
		jackMBLevel = 0;
		jackMSLevel = 0;
		jackPBLevel = 0;
		jackFBLevel = 0;
		jackStrength = 9;
		jackPsyPower = 1;
		jackPsyDefense = 4;
		jackAttackType1 = 'melee';
		jackAttackType2 = 'none';
		jackAttackType3 = 'none';
		jackAttackType4 = 'none';
		lucaMovement = 'land';
		lucaResists = 'Light';
		lucaHP = 40;
		lucaPsP = 20;
		lucaSpeed = 7;
		lucaMBLevel = 1;
		lucaMSLevel = 0;
		lucaPBLevel = 0;
		lucaFBLevel = 0;
		lucaStrength = 1;
		lucaPsyPower = 7;
		lucaPsyDefense = 17;
		lucaAttackType1 = 'mindblast';
		lucaAttackType2 = 'none';
		lucaAttackType3 = 'none';
		lucaAttackType4 = 'none';
		magellanMovement = 'flying';
		magellanResists = 'none';
		magellanHP = 32;
		magellanPsP = 20;
		magellanSpeed = 7;
		magellanMBLevel = 1;
		magellanMSLevel = 0;
		magellanPBLevel = 0;
		magellanFBLevel = 0;
		magellanStrength = 1;
		magellanPsyPower = 12;
		magellanPsyDefense = 14;
		magellanAttackType1 = 'mindblast';
		magellanAttackType2 = 'none';
		magellanAttackType3 = 'none';
		magellanAttackType4 = 'none';
		xerxesMovement = 'land';
		xerxesResists = 'none';
		xerxesHP = 30;
		xerxesPsP = 9;
		xerxesSpeed = 2;
		xerxesMBLevel = 1;
		xerxesMSLevel = 0;
		xerxesPBLevel = 0;
		xerxesFBLevel = 0;
		xerxesStrength = 1;
		xerxesPsyPower = 25;
		xerxesPsyDefense = 10;
		xerxesAttackType1 = 'mindblast';
		xerxesAttackType2 = 'none';
		xerxesAttackType3 = 'none';
		xerxesAttackType4 = 'none';
		randomizeStats();
	}
	movieClip 3594	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance beginGameButton of movieClip 3594	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut, dragOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			playMenuSelect();
			_root.deriveStats();
			_root.goingtoScene = 'intro';
			_root.changeScene();
		}
	}
	movieClip 3600	{
	}
	button 3602 {
		on (press) {
			playMenuClick();
			randomizeStats();
		}
	}
	button 3605 {
		on (rollOver) {
			display = 'Psy Defense determines your ability to shield yourself and others from harm.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (pointsleft > 0 && mainCharPsyDefense < 12) {
				mainCharPsyDefense += 1;
				pointsleft -= 1;
			}
		}
	}
	button 3606 {
		on (rollOver) {
			display = 'Psy Defense determines your ability to shield yourself and others from harm.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (mainCharPsyDefense > 1) {
				mainCharPsyDefense -= 1;
				pointsleft += 1;
			}
		}
	}
	button 3607 {
		on (rollOver) {
			display = 'Psy Power determines the damage dealt by your offensive Psy abilities.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (pointsleft > 0 && mainCharPsyPower < 12) {
				mainCharPsyPower += 1;
				pointsleft -= 1;
			}
		}
	}
	button 3608 {
		on (rollOver) {
			display = 'Psy Power determines the damage dealt by your offensive Psy abilities.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (mainCharPsyPower > 1) {
				mainCharPsyPower -= 1;
				pointsleft += 1;
			}
		}
	}
	button 3609 {
		on (rollOver) {
			display = 'Aptitude determines how observant you are and how fast you learn.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (pointsleft > 0 && mainCharAptitude < 12) {
				mainCharAptitude += 1;
				pointsleft -= 1;
			}
		}
	}
	button 3610 {
		on (rollOver) {
			display = 'Aptitude determines how observant you are and how fast you learn.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (mainCharAptitude > 1) {
				mainCharAptitude -= 1;
				pointsleft += 1;
			}
		}
	}
	button 3611 {
		on (rollOver) {
			display = 'Personality determines your persuasiveness and capacity to command others.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (pointsleft > 0 && mainCharPersonality < 12) {
				mainCharPersonality += 1;
				pointsleft -= 1;
			}
		}
	}
	button 3612 {
		on (rollOver) {
			display = 'Personality determines your persuasiveness and capacity to command others.';
		}
		on (rollOut) {
			display = '';
		}
		on (press) {
			playMenuClick();
			if (mainCharPersonality > 1) {
				mainCharPersonality -= 1;
				pointsleft += 1;
			}
		}
	}
	movieClip 3619	{
		frame 90 {
			gotoAndPlay(1);
		}
	}
	movieClip 3620	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 3622	{
	}
	frame 72 {
		stop();
		doneWithCreation();
		gotoAndPlay('CreateChar2');
	}
	frame 73 {
		function changeClass1() {
			if (char1type == 'Shadowling' && changedType == false) {
				char1type = 'Psy Healer';
				changedType = true;
			}
			if (char1type == 'Psy Healer' && changedType == false) {
				char1type = 'Psy Assassin';
				changedType = true;
			}
			if (char1type == 'Psy Assassin' && changedType == false) {
				char1type = 'Psy Fighter';
				changedType = true;
			}
			if (char1type == 'Psy Fighter' && changedType == false) {
				char1type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass2() {
			if (char2type == 'Shadowling' && changedType == false) {
				char2type = 'Psy Healer';
				changedType = true;
			}
			if (char2type == 'Psy Healer' && changedType == false) {
				char2type = 'Psy Assassin';
				changedType = true;
			}
			if (char2type == 'Psy Assassin' && changedType == false) {
				char2type = 'Psy Fighter';
				changedType = true;
			}
			if (char2type == 'Psy Fighter' && changedType == false) {
				char2type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass3() {
			if (char3type == 'Shadowling' && changedType == false) {
				char3type = 'Psy Healer';
				changedType = true;
			}
			if (char3type == 'Psy Healer' && changedType == false) {
				char3type = 'Psy Assassin';
				changedType = true;
			}
			if (char3type == 'Psy Assassin' && changedType == false) {
				char3type = 'Psy Fighter';
				changedType = true;
			}
			if (char3type == 'Psy Fighter' && changedType == false) {
				char3type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass4() {
			if (char4type == 'Shadowling' && changedType == false) {
				char4type = 'Psy Healer';
				changedType = true;
			}
			if (char4type == 'Psy Healer' && changedType == false) {
				char4type = 'Psy Assassin';
				changedType = true;
			}
			if (char4type == 'Psy Assassin' && changedType == false) {
				char4type = 'Psy Fighter';
				changedType = true;
			}
			if (char4type == 'Psy Fighter' && changedType == false) {
				char4type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass5() {
			if (char5type == 'Shadowling' && changedType == false) {
				char5type = 'Psy Healer';
				changedType = true;
			}
			if (char5type == 'Psy Healer' && changedType == false) {
				char5type = 'Psy Assassin';
				changedType = true;
			}
			if (char5type == 'Psy Assassin' && changedType == false) {
				char5type = 'Psy Fighter';
				changedType = true;
			}
			if (char5type == 'Psy Fighter' && changedType == false) {
				char5type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass6() {
			if (char6type == 'Shadowling' && changedType == false) {
				char6type = 'Psy Healer';
				changedType = true;
			}
			if (char6type == 'Psy Healer' && changedType == false) {
				char6type = 'Psy Assassin';
				changedType = true;
			}
			if (char6type == 'Psy Assassin' && changedType == false) {
				char6type = 'Psy Fighter';
				changedType = true;
			}
			if (char6type == 'Psy Fighter' && changedType == false) {
				char6type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass7() {
			if (char7type == 'Shadowling' && changedType == false) {
				char7type = 'Psy Healer';
				changedType = true;
			}
			if (char7type == 'Psy Healer' && changedType == false) {
				char7type = 'Psy Assassin';
				changedType = true;
			}
			if (char7type == 'Psy Assassin' && changedType == false) {
				char7type = 'Psy Fighter';
				changedType = true;
			}
			if (char7type == 'Psy Fighter' && changedType == false) {
				char7type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass8() {
			if (char8type == 'Shadowling' && changedType == false) {
				char8type = 'Psy Healer';
				changedType = true;
			}
			if (char8type == 'Psy Healer' && changedType == false) {
				char8type = 'Psy Assassin';
				changedType = true;
			}
			if (char8type == 'Psy Assassin' && changedType == false) {
				char8type = 'Psy Fighter';
				changedType = true;
			}
			if (char8type == 'Psy Fighter' && changedType == false) {
				char8type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass9() {
			if (char9type == 'Shadowling' && changedType == false) {
				char9type = 'Psy Healer';
				changedType = true;
			}
			if (char9type == 'Psy Healer' && changedType == false) {
				char9type = 'Psy Assassin';
				changedType = true;
			}
			if (char9type == 'Psy Assassin' && changedType == false) {
				char9type = 'Psy Fighter';
				changedType = true;
			}
			if (char9type == 'Psy Fighter' && changedType == false) {
				char9type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass10() {
			if (char10type == 'Shadowling' && changedType == false) {
				char10type = 'Psy Healer';
				changedType = true;
			}
			if (char10type == 'Psy Healer' && changedType == false) {
				char10type = 'Psy Assassin';
				changedType = true;
			}
			if (char10type == 'Psy Assassin' && changedType == false) {
				char10type = 'Psy Fighter';
				changedType = true;
			}
			if (char10type == 'Psy Fighter' && changedType == false) {
				char10type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass11() {
			if (char11type == 'Shadowling' && changedType == false) {
				char11type = 'Psy Healer';
				changedType = true;
			}
			if (char11type == 'Psy Healer' && changedType == false) {
				char11type = 'Psy Assassin';
				changedType = true;
			}
			if (char11type == 'Psy Assassin' && changedType == false) {
				char11type = 'Psy Fighter';
				changedType = true;
			}
			if (char11type == 'Psy Fighter' && changedType == false) {
				char11type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass12() {
			if (char12type == 'Shadowling' && changedType == false) {
				char12type = 'Psy Healer';
				changedType = true;
			}
			if (char12type == 'Psy Healer' && changedType == false) {
				char12type = 'Psy Assassin';
				changedType = true;
			}
			if (char12type == 'Psy Assassin' && changedType == false) {
				char12type = 'Psy Fighter';
				changedType = true;
			}
			if (char12type == 'Psy Fighter' && changedType == false) {
				char12type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass13() {
			if (char13type == 'Shadowling' && changedType == false) {
				char13type = 'Psy Healer';
				changedType = true;
			}
			if (char13type == 'Psy Healer' && changedType == false) {
				char13type = 'Psy Assassin';
				changedType = true;
			}
			if (char13type == 'Psy Assassin' && changedType == false) {
				char13type = 'Psy Fighter';
				changedType = true;
			}
			if (char13type == 'Psy Fighter' && changedType == false) {
				char13type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass14() {
			if (char14type == 'Shadowling' && changedType == false) {
				char14type = 'Psy Healer';
				changedType = true;
			}
			if (char14type == 'Psy Healer' && changedType == false) {
				char14type = 'Psy Assassin';
				changedType = true;
			}
			if (char14type == 'Psy Assassin' && changedType == false) {
				char14type = 'Psy Fighter';
				changedType = true;
			}
			if (char14type == 'Psy Fighter' && changedType == false) {
				char14type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass15() {
			if (char15type == 'Shadowling' && changedType == false) {
				char15type = 'Psy Healer';
				changedType = true;
			}
			if (char15type == 'Psy Healer' && changedType == false) {
				char15type = 'Psy Assassin';
				changedType = true;
			}
			if (char15type == 'Psy Assassin' && changedType == false) {
				char15type = 'Psy Fighter';
				changedType = true;
			}
			if (char15type == 'Psy Fighter' && changedType == false) {
				char15type = 'Shadowling';
				changedType = true;
			}
		}
		function changeClass16() {
			if (char16type == 'Shadowling' && changedType == false) {
				char16type = 'Psy Healer';
				changedType = true;
			}
			if (char16type == 'Psy Healer' && changedType == false) {
				char16type = 'Psy Assassin';
				changedType = true;
			}
			if (char16type == 'Psy Assassin' && changedType == false) {
				char16type = 'Psy Fighter';
				changedType = true;
			}
			if (char16type == 'Psy Fighter' && changedType == false) {
				char16type = 'Shadowling';
				changedType = true;
			}
		}
		function assignStats() {
			if (char1type == 'Shadowling') {
				multiChar1Name = 'Shadowling';
				multiChar1Movement = 'flying';
				multiChar1HP = 24;
				multiChar1PsP = 20;
				multiChar1Steps = 8;
				multiChar1AttackType1 = 'mindblast';
				multiChar1AttackType2 = 'none';
				multiChar1AttackType3 = 'none';
				multiChar1AttackType4 = 'none';
				multiChar1Strength = 1;
				multiChar1PsyPower = 7;
				multiChar1PsyDefense = 0;
			}
			if (char1type == 'Psy Healer') {
				multiChar1Name = 'Psy Healer';
				multiChar1Movement = 'land';
				multiChar1HP = 16;
				multiChar1PsP = 16;
				multiChar1Steps = 6;
				multiChar1AttackType1 = 'mindblast';
				multiChar1AttackType2 = 'mindshield';
				multiChar1AttackType3 = 'none';
				multiChar1AttackType4 = 'none';
				multiChar1Strength = 1;
				multiChar1PsyPower = 3;
				multiChar1PsyDefense = 12;
			}
			if (char1type == 'Psy Fighter') {
				multiChar1Name = 'Psy Fighter';
				multiChar1Movement = 'land';
				multiChar1HP = 24;
				multiChar1PsP = 24;
				multiChar1Steps = 5;
				multiChar1AttackType1 = 'mindblast';
				multiChar1AttackType2 = 'none';
				multiChar1AttackType3 = 'pyroblast';
				multiChar1AttackType4 = 'none';
				multiChar1Strength = 1;
				multiChar1PsyPower = 8;
				multiChar1PsyDefense = 6;
			}
			if (char1type == 'Psy Assassin') {
				multiChar1Name = 'Psy Assassin';
				multiChar1Movement = 'land';
				multiChar1HP = 20;
				multiChar1PsP = 22;
				multiChar1Steps = 9;
				multiChar1AttackType1 = 'mindblast';
				multiChar1AttackType2 = 'none';
				multiChar1AttackType3 = 'none';
				multiChar1AttackType4 = 'feedback';
				multiChar1Strength = 1;
				multiChar1PsyPower = 6;
				multiChar1PsyDefense = 9;
			}
			if (char2type == 'Shadowling') {
				multiChar2Name = 'Shadowling';
				multiChar2Movement = 'flying';
				multiChar2HP = 24;
				multiChar2PsP = 20;
				multiChar2Steps = 8;
				multiChar2AttackType1 = 'mindblast';
				multiChar2AttackType2 = 'none';
				multiChar2AttackType3 = 'none';
				multiChar2AttackType4 = 'none';
				multiChar2Strength = 1;
				multiChar2PsyPower = 7;
				multiChar2PsyDefense = 0;
			}
			if (char2type == 'Psy Healer') {
				multiChar2Name = 'Psy Healer';
				multiChar2Movement = 'land';
				multiChar2HP = 16;
				multiChar2PsP = 16;
				multiChar2Steps = 6;
				multiChar2AttackType1 = 'mindblast';
				multiChar2AttackType2 = 'mindshield';
				multiChar2AttackType3 = 'none';
				multiChar2AttackType4 = 'none';
				multiChar2Strength = 1;
				multiChar2PsyPower = 3;
				multiChar2PsyDefense = 12;
			}
			if (char2type == 'Psy Fighter') {
				multiChar2Name = 'Psy Fighter';
				multiChar2Movement = 'land';
				multiChar2HP = 24;
				multiChar2PsP = 20;
				multiChar2Steps = 5;
				multiChar2AttackType1 = 'mindblast';
				multiChar2AttackType2 = 'none';
				multiChar2AttackType3 = 'pyroblast';
				multiChar2AttackType4 = 'none';
				multiChar2Strength = 1;
				multiChar2PsyPower = 8;
				multiChar2PsyDefense = 6;
			}
			if (char2type == 'Psy Assassin') {
				multiChar2Name = 'Psy Assassin';
				multiChar2Movement = 'land';
				multiChar2HP = 20;
				multiChar2PsP = 22;
				multiChar2Steps = 9;
				multiChar2AttackType1 = 'mindblast';
				multiChar2AttackType2 = 'none';
				multiChar2AttackType3 = 'none';
				multiChar2AttackType4 = 'feedback';
				multiChar2Strength = 1;
				multiChar2PsyPower = 6;
				multiChar2PsyDefense = 9;
			}
			if (char3type == 'Shadowling') {
				multiChar3Name = 'Shadowling';
				multiChar3Movement = 'flying';
				multiChar3HP = 24;
				multiChar3PsP = 20;
				multiChar3Steps = 8;
				multiChar3AttackType1 = 'mindblast';
				multiChar3AttackType2 = 'none';
				multiChar3AttackType3 = 'none';
				multiChar3AttackType4 = 'none';
				multiChar3Strength = 1;
				multiChar3PsyPower = 7;
				multiChar3PsyDefense = 0;
			}
			if (char3type == 'Psy Healer') {
				multiChar3Name = 'Psy Healer';
				multiChar3Movement = 'land';
				multiChar3HP = 16;
				multiChar3PsP = 16;
				multiChar3Steps = 6;
				multiChar3AttackType1 = 'mindblast';
				multiChar3AttackType2 = 'mindshield';
				multiChar3AttackType3 = 'none';
				multiChar3AttackType4 = 'none';
				multiChar3Strength = 1;
				multiChar3PsyPower = 3;
				multiChar3PsyDefense = 12;
			}
			if (char3type == 'Psy Fighter') {
				multiChar3Name = 'Psy Fighter';
				multiChar3Movement = 'land';
				multiChar3HP = 24;
				multiChar3PsP = 20;
				multiChar3Steps = 5;
				multiChar3AttackType1 = 'mindblast';
				multiChar3AttackType2 = 'none';
				multiChar3AttackType3 = 'pyroblast';
				multiChar3AttackType4 = 'none';
				multiChar3Strength = 1;
				multiChar3PsyPower = 8;
				multiChar3PsyDefense = 6;
			}
			if (char3type == 'Psy Assassin') {
				multiChar3Name = 'Psy Assassin';
				multiChar3Movement = 'land';
				multiChar3HP = 20;
				multiChar3PsP = 22;
				multiChar3Steps = 9;
				multiChar3AttackType1 = 'mindblast';
				multiChar3AttackType2 = 'none';
				multiChar3AttackType3 = 'none';
				multiChar3AttackType4 = 'feedback';
				multiChar3Strength = 1;
				multiChar3PsyPower = 6;
				multiChar3PsyDefense = 9;
			}
			if (char4type == 'Shadowling') {
				multiChar4Name = 'Shadowling';
				multiChar4Movement = 'flying';
				multiChar4HP = 24;
				multiChar4PsP = 20;
				multiChar4Steps = 8;
				multiChar4AttackType1 = 'mindblast';
				multiChar4AttackType2 = 'none';
				multiChar4AttackType3 = 'none';
				multiChar4AttackType4 = 'none';
				multiChar4Strength = 1;
				multiChar4PsyPower = 7;
				multiChar4PsyDefense = 0;
			}
			if (char4type == 'Psy Healer') {
				multiChar4Name = 'Psy Healer';
				multiChar4Movement = 'land';
				multiChar4HP = 16;
				multiChar4PsP = 16;
				multiChar4Steps = 6;
				multiChar4AttackType1 = 'mindblast';
				multiChar4AttackType2 = 'mindshield';
				multiChar4AttackType3 = 'none';
				multiChar4AttackType4 = 'none';
				multiChar4Strength = 1;
				multiChar4PsyPower = 3;
				multiChar4PsyDefense = 12;
			}
			if (char4type == 'Psy Fighter') {
				multiChar4Name = 'Psy Fighter';
				multiChar4Movement = 'land';
				multiChar4HP = 24;
				multiChar4PsP = 20;
				multiChar4Steps = 5;
				multiChar4AttackType1 = 'mindblast';
				multiChar4AttackType2 = 'none';
				multiChar4AttackType3 = 'pyroblast';
				multiChar4AttackType4 = 'none';
				multiChar4Strength = 1;
				multiChar4PsyPower = 8;
				multiChar4PsyDefense = 6;
			}
			if (char4type == 'Psy Assassin') {
				multiChar4Name = 'Psy Assassin';
				multiChar4Movement = 'land';
				multiChar4HP = 20;
				multiChar4PsP = 22;
				multiChar4Steps = 9;
				multiChar4AttackType1 = 'mindblast';
				multiChar4AttackType2 = 'none';
				multiChar4AttackType3 = 'none';
				multiChar4AttackType4 = 'feedback';
				multiChar4Strength = 1;
				multiChar4PsyPower = 6;
				multiChar4PsyDefense = 9;
			}
			if (char5type == 'Shadowling') {
				multiChar5Name = 'Shadowling';
				multiChar5Movement = 'flying';
				multiChar5HP = 24;
				multiChar5PsP = 20;
				multiChar5Steps = 8;
				multiChar5AttackType1 = 'mindblast';
				multiChar5AttackType2 = 'none';
				multiChar5AttackType3 = 'none';
				multiChar5AttackType4 = 'none';
				multiChar5Strength = 1;
				multiChar5PsyPower = 7;
				multiChar5PsyDefense = 0;
			}
			if (char5type == 'Psy Healer') {
				multiChar5Name = 'Psy Healer';
				multiChar5Movement = 'land';
				multiChar5HP = 16;
				multiChar5PsP = 16;
				multiChar5Steps = 6;
				multiChar5AttackType1 = 'mindblast';
				multiChar5AttackType2 = 'mindshield';
				multiChar5AttackType3 = 'none';
				multiChar5AttackType4 = 'none';
				multiChar5Strength = 1;
				multiChar5PsyPower = 3;
				multiChar5PsyDefense = 12;
			}
			if (char5type == 'Psy Fighter') {
				multiChar5Name = 'Psy Fighter';
				multiChar5Movement = 'land';
				multiChar5HP = 24;
				multiChar5PsP = 20;
				multiChar5Steps = 5;
				multiChar5AttackType1 = 'mindblast';
				multiChar5AttackType2 = 'none';
				multiChar5AttackType3 = 'pyroblast';
				multiChar5AttackType4 = 'none';
				multiChar5Strength = 1;
				multiChar5PsyPower = 8;
				multiChar5PsyDefense = 6;
			}
			if (char5type == 'Psy Assassin') {
				multiChar5Name = 'Psy Assassin';
				multiChar5Movement = 'land';
				multiChar5HP = 20;
				multiChar5PsP = 22;
				multiChar5Steps = 9;
				multiChar5AttackType1 = 'mindblast';
				multiChar5AttackType2 = 'none';
				multiChar5AttackType3 = 'none';
				multiChar5AttackType4 = 'feedback';
				multiChar5Strength = 1;
				multiChar5PsyPower = 6;
				multiChar5PsyDefense = 9;
			}
			if (char6type == 'Shadowling') {
				multiChar6Name = 'Shadowling';
				multiChar6Movement = 'flying';
				multiChar6HP = 24;
				multiChar6PsP = 20;
				multiChar6Steps = 8;
				multiChar6AttackType1 = 'mindblast';
				multiChar6AttackType2 = 'none';
				multiChar6AttackType3 = 'none';
				multiChar6AttackType4 = 'none';
				multiChar6Strength = 1;
				multiChar6PsyPower = 7;
				multiChar6PsyDefense = 0;
			}
			if (char6type == 'Psy Healer') {
				multiChar6Name = 'Psy Healer';
				multiChar6Movement = 'land';
				multiChar6HP = 16;
				multiChar6PsP = 16;
				multiChar6Steps = 6;
				multiChar6AttackType1 = 'mindblast';
				multiChar6AttackType2 = 'mindshield';
				multiChar6AttackType3 = 'none';
				multiChar6AttackType4 = 'none';
				multiChar6Strength = 1;
				multiChar6PsyPower = 3;
				multiChar6PsyDefense = 12;
			}
			if (char6type == 'Psy Fighter') {
				multiChar6Name = 'Psy Fighter';
				multiChar6Movement = 'land';
				multiChar6HP = 24;
				multiChar6PsP = 20;
				multiChar6Steps = 5;
				multiChar6AttackType1 = 'mindblast';
				multiChar6AttackType2 = 'none';
				multiChar6AttackType3 = 'pyroblast';
				multiChar6AttackType4 = 'none';
				multiChar6Strength = 1;
				multiChar6PsyPower = 8;
				multiChar6PsyDefense = 6;
			}
			if (char6type == 'Psy Assassin') {
				multiChar6Name = 'Psy Assassin';
				multiChar6Movement = 'land';
				multiChar6HP = 20;
				multiChar6PsP = 22;
				multiChar6Steps = 9;
				multiChar6AttackType1 = 'mindblast';
				multiChar6AttackType2 = 'none';
				multiChar6AttackType3 = 'none';
				multiChar6AttackType4 = 'feedback';
				multiChar6Strength = 1;
				multiChar6PsyPower = 6;
				multiChar6PsyDefense = 9;
			}
			if (char7type == 'Shadowling') {
				multiChar7Name = 'Shadowling';
				multiChar7Movement = 'flying';
				multiChar7HP = 24;
				multiChar7PsP = 20;
				multiChar7Steps = 8;
				multiChar7AttackType1 = 'mindblast';
				multiChar7AttackType2 = 'none';
				multiChar7AttackType3 = 'none';
				multiChar7AttackType4 = 'none';
				multiChar7Strength = 1;
				multiChar7PsyPower = 7;
				multiChar7PsyDefense = 0;
			}
			if (char7type == 'Psy Healer') {
				multiChar7Name = 'Psy Healer';
				multiChar7Movement = 'land';
				multiChar7HP = 16;
				multiChar7PsP = 16;
				multiChar7Steps = 6;
				multiChar7AttackType1 = 'mindblast';
				multiChar7AttackType2 = 'mindshield';
				multiChar7AttackType3 = 'none';
				multiChar7AttackType4 = 'none';
				multiChar7Strength = 1;
				multiChar7PsyPower = 3;
				multiChar7PsyDefense = 12;
			}
			if (char7type == 'Psy Fighter') {
				multiChar7Name = 'Psy Fighter';
				multiChar7Movement = 'land';
				multiChar7HP = 24;
				multiChar7PsP = 20;
				multiChar7Steps = 5;
				multiChar7AttackType1 = 'mindblast';
				multiChar7AttackType2 = 'none';
				multiChar7AttackType3 = 'pyroblast';
				multiChar7AttackType4 = 'none';
				multiChar7Strength = 1;
				multiChar7PsyPower = 8;
				multiChar7PsyDefense = 6;
			}
			if (char7type == 'Psy Assassin') {
				multiChar7Name = 'Psy Assassin';
				multiChar7Movement = 'land';
				multiChar7HP = 20;
				multiChar7PsP = 22;
				multiChar7Steps = 9;
				multiChar7AttackType1 = 'mindblast';
				multiChar7AttackType2 = 'none';
				multiChar7AttackType3 = 'none';
				multiChar7AttackType4 = 'feedback';
				multiChar7Strength = 1;
				multiChar7PsyPower = 6;
				multiChar7PsyDefense = 9;
			}
			if (char8type == 'Shadowling') {
				multiChar8Name = 'Shadowling';
				multiChar8Movement = 'flying';
				multiChar8HP = 24;
				multiChar8PsP = 20;
				multiChar8Steps = 8;
				multiChar8AttackType1 = 'mindblast';
				multiChar8AttackType2 = 'none';
				multiChar8AttackType3 = 'none';
				multiChar8AttackType4 = 'none';
				multiChar8Strength = 1;
				multiChar8PsyPower = 7;
				multiChar8PsyDefense = 0;
			}
			if (char8type == 'Psy Healer') {
				multiChar8Name = 'Psy Healer';
				multiChar8Movement = 'land';
				multiChar8HP = 16;
				multiChar8PsP = 16;
				multiChar8Steps = 6;
				multiChar8AttackType1 = 'mindblast';
				multiChar8AttackType2 = 'mindshield';
				multiChar8AttackType3 = 'none';
				multiChar8AttackType4 = 'none';
				multiChar8Strength = 1;
				multiChar8PsyPower = 3;
				multiChar8PsyDefense = 12;
			}
			if (char8type == 'Psy Fighter') {
				multiChar8Name = 'Psy Fighter';
				multiChar8Movement = 'land';
				multiChar8HP = 24;
				multiChar8PsP = 20;
				multiChar8Steps = 5;
				multiChar8AttackType1 = 'mindblast';
				multiChar8AttackType2 = 'none';
				multiChar8AttackType3 = 'pyroblast';
				multiChar8AttackType4 = 'none';
				multiChar8Strength = 1;
				multiChar8PsyPower = 8;
				multiChar8PsyDefense = 6;
			}
			if (char8type == 'Psy Assassin') {
				multiChar8Name = 'Psy Assassin';
				multiChar8Movement = 'land';
				multiChar8HP = 20;
				multiChar8PsP = 22;
				multiChar8Steps = 9;
				multiChar8AttackType1 = 'mindblast';
				multiChar8AttackType2 = 'none';
				multiChar8AttackType3 = 'none';
				multiChar8AttackType4 = 'feedback';
				multiChar8Strength = 1;
				multiChar8PsyPower = 6;
				multiChar8PsyDefense = 9;
			}
			if (char9type == 'Shadowling') {
				multiChar9Name = 'Shadowling';
				multiChar9Movement = 'flying';
				multiChar9HP = 24;
				multiChar9PsP = 20;
				multiChar9Steps = 8;
				multiChar9AttackType1 = 'mindblast';
				multiChar9AttackType2 = 'none';
				multiChar9AttackType3 = 'none';
				multiChar9AttackType4 = 'none';
				multiChar9Strength = 1;
				multiChar9PsyPower = 7;
				multiChar9PsyDefense = 0;
			}
			if (char9type == 'Psy Healer') {
				multiChar9Name = 'Psy Healer';
				multiChar9Movement = 'land';
				multiChar9HP = 16;
				multiChar9PsP = 16;
				multiChar9Steps = 6;
				multiChar9AttackType1 = 'mindblast';
				multiChar9AttackType2 = 'mindshield';
				multiChar9AttackType3 = 'none';
				multiChar9AttackType4 = 'none';
				multiChar9Strength = 1;
				multiChar9PsyPower = 3;
				multiChar9PsyDefense = 12;
			}
			if (char9type == 'Psy Fighter') {
				multiChar9Name = 'Psy Fighter';
				multiChar9Movement = 'land';
				multiChar9HP = 24;
				multiChar9PsP = 20;
				multiChar9Steps = 5;
				multiChar9AttackType1 = 'mindblast';
				multiChar9AttackType2 = 'none';
				multiChar9AttackType3 = 'pyroblast';
				multiChar9AttackType4 = 'none';
				multiChar9Strength = 1;
				multiChar9PsyPower = 8;
				multiChar9PsyDefense = 6;
			}
			if (char9type == 'Psy Assassin') {
				multiChar9Name = 'Psy Assassin';
				multiChar9Movement = 'land';
				multiChar9HP = 20;
				multiChar9PsP = 22;
				multiChar9Steps = 9;
				multiChar9AttackType1 = 'mindblast';
				multiChar9AttackType2 = 'none';
				multiChar9AttackType3 = 'none';
				multiChar9AttackType4 = 'feedback';
				multiChar9Strength = 1;
				multiChar9PsyPower = 6;
				multiChar9PsyDefense = 9;
			}
			if (char10type == 'Shadowling') {
				multiChar10Name = 'Shadowling';
				multiChar10Movement = 'flying';
				multiChar10HP = 24;
				multiChar10PsP = 20;
				multiChar10Steps = 8;
				multiChar10AttackType1 = 'mindblast';
				multiChar10AttackType2 = 'none';
				multiChar10AttackType3 = 'none';
				multiChar10AttackType4 = 'none';
				multiChar10Strength = 1;
				multiChar10PsyPower = 7;
				multiChar10PsyDefense = 0;
			}
			if (char10type == 'Psy Healer') {
				multiChar10Name = 'Psy Healer';
				multiChar10Movement = 'land';
				multiChar10HP = 16;
				multiChar10PsP = 16;
				multiChar10Steps = 6;
				multiChar10AttackType1 = 'mindblast';
				multiChar10AttackType2 = 'mindshield';
				multiChar10AttackType3 = 'none';
				multiChar10AttackType4 = 'none';
				multiChar10Strength = 1;
				multiChar10PsyPower = 3;
				multiChar10PsyDefense = 12;
			}
			if (char10type == 'Psy Fighter') {
				multiChar10Name = 'Psy Fighter';
				multiChar10Movement = 'land';
				multiChar10HP = 24;
				multiChar10PsP = 20;
				multiChar10Steps = 5;
				multiChar10AttackType1 = 'mindblast';
				multiChar10AttackType2 = 'none';
				multiChar10AttackType3 = 'pyroblast';
				multiChar10AttackType4 = 'none';
				multiChar10Strength = 1;
				multiChar10PsyPower = 8;
				multiChar10PsyDefense = 6;
			}
			if (char10type == 'Psy Assassin') {
				multiChar10Name = 'Psy Assassin';
				multiChar10Movement = 'land';
				multiChar10HP = 20;
				multiChar10PsP = 22;
				multiChar10Steps = 9;
				multiChar10AttackType1 = 'mindblast';
				multiChar10AttackType2 = 'none';
				multiChar10AttackType3 = 'none';
				multiChar10AttackType4 = 'feedback';
				multiChar10Strength = 1;
				multiChar10PsyPower = 6;
				multiChar10PsyDefense = 9;
			}
			if (char11type == 'Shadowling') {
				multiChar11Name = 'Shadowling';
				multiChar11Movement = 'flying';
				multiChar11HP = 24;
				multiChar11PsP = 20;
				multiChar11Steps = 8;
				multiChar11AttackType1 = 'mindblast';
				multiChar11AttackType2 = 'none';
				multiChar11AttackType3 = 'none';
				multiChar11AttackType4 = 'none';
				multiChar11Strength = 1;
				multiChar11PsyPower = 7;
				multiChar11PsyDefense = 0;
			}
			if (char11type == 'Psy Healer') {
				multiChar11Name = 'Psy Healer';
				multiChar11Movement = 'land';
				multiChar11HP = 16;
				multiChar11PsP = 16;
				multiChar11Steps = 6;
				multiChar11AttackType1 = 'mindblast';
				multiChar11AttackType2 = 'mindshield';
				multiChar11AttackType3 = 'none';
				multiChar11AttackType4 = 'none';
				multiChar11Strength = 1;
				multiChar11PsyPower = 3;
				multiChar11PsyDefense = 12;
			}
			if (char11type == 'Psy Fighter') {
				multiChar11Name = 'Psy Fighter';
				multiChar11Movement = 'land';
				multiChar11HP = 24;
				multiChar11PsP = 20;
				multiChar11Steps = 5;
				multiChar11AttackType1 = 'mindblast';
				multiChar11AttackType2 = 'none';
				multiChar11AttackType3 = 'pyroblast';
				multiChar11AttackType4 = 'none';
				multiChar11Strength = 1;
				multiChar11PsyPower = 8;
				multiChar11PsyDefense = 6;
			}
			if (char11type == 'Psy Assassin') {
				multiChar11Name = 'Psy Assassin';
				multiChar11Movement = 'land';
				multiChar11HP = 20;
				multiChar11PsP = 22;
				multiChar11Steps = 9;
				multiChar11AttackType1 = 'mindblast';
				multiChar11AttackType2 = 'none';
				multiChar11AttackType3 = 'none';
				multiChar11AttackType4 = 'feedback';
				multiChar11Strength = 1;
				multiChar11PsyPower = 6;
				multiChar11PsyDefense = 9;
			}
			if (char12type == 'Shadowling') {
				multiChar12Name = 'Shadowling';
				multiChar12Movement = 'flying';
				multiChar12HP = 24;
				multiChar12PsP = 20;
				multiChar12Steps = 8;
				multiChar12AttackType1 = 'mindblast';
				multiChar12AttackType2 = 'none';
				multiChar12AttackType3 = 'none';
				multiChar12AttackType4 = 'none';
				multiChar12Strength = 1;
				multiChar12PsyPower = 7;
				multiChar12PsyDefense = 0;
			}
			if (char12type == 'Psy Healer') {
				multiChar12Name = 'Psy Healer';
				multiChar12Movement = 'land';
				multiChar12HP = 16;
				multiChar12PsP = 16;
				multiChar12Steps = 6;
				multiChar12AttackType1 = 'mindblast';
				multiChar12AttackType2 = 'mindshield';
				multiChar12AttackType3 = 'none';
				multiChar12AttackType4 = 'none';
				multiChar12Strength = 1;
				multiChar12PsyPower = 3;
				multiChar12PsyDefense = 12;
			}
			if (char12type == 'Psy Fighter') {
				multiChar12Name = 'Psy Fighter';
				multiChar12Movement = 'land';
				multiChar12HP = 24;
				multiChar12PsP = 20;
				multiChar12Steps = 5;
				multiChar12AttackType1 = 'mindblast';
				multiChar12AttackType2 = 'none';
				multiChar12AttackType3 = 'pyroblast';
				multiChar12AttackType4 = 'none';
				multiChar12Strength = 1;
				multiChar12PsyPower = 8;
				multiChar12PsyDefense = 6;
			}
			if (char12type == 'Psy Assassin') {
				multiChar12Name = 'Psy Assassin';
				multiChar12Movement = 'land';
				multiChar12HP = 20;
				multiChar12PsP = 22;
				multiChar12Steps = 9;
				multiChar12AttackType1 = 'mindblast';
				multiChar12AttackType2 = 'none';
				multiChar12AttackType3 = 'none';
				multiChar12AttackType4 = 'feedback';
				multiChar12Strength = 1;
				multiChar12PsyPower = 6;
				multiChar12PsyDefense = 9;
			}
			if (char13type == 'Shadowling') {
				multiChar13Name = 'Shadowling';
				multiChar13Movement = 'flying';
				multiChar13HP = 24;
				multiChar13PsP = 20;
				multiChar13Steps = 8;
				multiChar13AttackType1 = 'mindblast';
				multiChar13AttackType2 = 'none';
				multiChar13AttackType3 = 'none';
				multiChar13AttackType4 = 'none';
				multiChar13Strength = 1;
				multiChar13PsyPower = 7;
				multiChar13PsyDefense = 0;
			}
			if (char13type == 'Psy Healer') {
				multiChar13Name = 'Psy Healer';
				multiChar13Movement = 'land';
				multiChar13HP = 16;
				multiChar13PsP = 16;
				multiChar13Steps = 6;
				multiChar13AttackType1 = 'mindblast';
				multiChar13AttackType2 = 'mindshield';
				multiChar13AttackType3 = 'none';
				multiChar13AttackType4 = 'none';
				multiChar13Strength = 1;
				multiChar13PsyPower = 3;
				multiChar13PsyDefense = 12;
			}
			if (char13type == 'Psy Fighter') {
				multiChar13Name = 'Psy Fighter';
				multiChar13Movement = 'land';
				multiChar13HP = 24;
				multiChar13PsP = 20;
				multiChar13Steps = 5;
				multiChar13AttackType1 = 'mindblast';
				multiChar13AttackType2 = 'none';
				multiChar13AttackType3 = 'pyroblast';
				multiChar13AttackType4 = 'none';
				multiChar13Strength = 1;
				multiChar13PsyPower = 8;
				multiChar13PsyDefense = 6;
			}
			if (char13type == 'Psy Assassin') {
				multiChar13Name = 'Psy Assassin';
				multiChar13Movement = 'land';
				multiChar13HP = 20;
				multiChar13PsP = 22;
				multiChar13Steps = 9;
				multiChar13AttackType1 = 'mindblast';
				multiChar13AttackType2 = 'none';
				multiChar13AttackType3 = 'none';
				multiChar13AttackType4 = 'feedback';
				multiChar13Strength = 1;
				multiChar13PsyPower = 6;
				multiChar13PsyDefense = 9;
			}
			if (char14type == 'Shadowling') {
				multiChar14Name = 'Shadowling';
				multiChar14Movement = 'flying';
				multiChar14HP = 24;
				multiChar14PsP = 20;
				multiChar14Steps = 8;
				multiChar14AttackType1 = 'mindblast';
				multiChar14AttackType2 = 'none';
				multiChar14AttackType3 = 'none';
				multiChar14AttackType4 = 'none';
				multiChar14Strength = 1;
				multiChar14PsyPower = 7;
				multiChar14PsyDefense = 0;
			}
			if (char14type == 'Psy Healer') {
				multiChar14Name = 'Psy Healer';
				multiChar14Movement = 'land';
				multiChar14HP = 16;
				multiChar14PsP = 16;
				multiChar14Steps = 6;
				multiChar14AttackType1 = 'mindblast';
				multiChar14AttackType2 = 'mindshield';
				multiChar14AttackType3 = 'none';
				multiChar14AttackType4 = 'none';
				multiChar14Strength = 1;
				multiChar14PsyPower = 3;
				multiChar14PsyDefense = 12;
			}
			if (char14type == 'Psy Fighter') {
				multiChar14Name = 'Psy Fighter';
				multiChar14Movement = 'land';
				multiChar14HP = 24;
				multiChar14PsP = 20;
				multiChar14Steps = 5;
				multiChar14AttackType1 = 'mindblast';
				multiChar14AttackType2 = 'none';
				multiChar14AttackType3 = 'pyroblast';
				multiChar14AttackType4 = 'none';
				multiChar14Strength = 1;
				multiChar14PsyPower = 8;
				multiChar14PsyDefense = 6;
			}
			if (char14type == 'Psy Assassin') {
				multiChar14Name = 'Psy Assassin';
				multiChar14Movement = 'land';
				multiChar14HP = 20;
				multiChar14PsP = 22;
				multiChar14Steps = 9;
				multiChar14AttackType1 = 'mindblast';
				multiChar14AttackType2 = 'none';
				multiChar14AttackType3 = 'none';
				multiChar14AttackType4 = 'feedback';
				multiChar14Strength = 1;
				multiChar14PsyPower = 6;
				multiChar14PsyDefense = 9;
			}
			if (char15type == 'Shadowling') {
				multiChar15Name = 'Shadowling';
				multiChar15Movement = 'flying';
				multiChar15HP = 24;
				multiChar15PsP = 20;
				multiChar15Steps = 8;
				multiChar15AttackType1 = 'mindblast';
				multiChar15AttackType2 = 'none';
				multiChar15AttackType3 = 'none';
				multiChar15AttackType4 = 'none';
				multiChar15Strength = 1;
				multiChar15PsyPower = 7;
				multiChar15PsyDefense = 0;
			}
			if (char15type == 'Psy Healer') {
				multiChar15Name = 'Psy Healer';
				multiChar15Movement = 'land';
				multiChar15HP = 16;
				multiChar15PsP = 16;
				multiChar15Steps = 6;
				multiChar15AttackType1 = 'mindblast';
				multiChar15AttackType2 = 'mindshield';
				multiChar15AttackType3 = 'none';
				multiChar15AttackType4 = 'none';
				multiChar15Strength = 1;
				multiChar15PsyPower = 3;
				multiChar15PsyDefense = 12;
			}
			if (char15type == 'Psy Fighter') {
				multiChar15Name = 'Psy Fighter';
				multiChar15Movement = 'land';
				multiChar15HP = 24;
				multiChar15PsP = 20;
				multiChar15Steps = 5;
				multiChar15AttackType1 = 'mindblast';
				multiChar15AttackType2 = 'none';
				multiChar15AttackType3 = 'pyroblast';
				multiChar15AttackType4 = 'none';
				multiChar15Strength = 1;
				multiChar15PsyPower = 8;
				multiChar15PsyDefense = 6;
			}
			if (char15type == 'Psy Assassin') {
				multiChar15Name = 'Psy Assassin';
				multiChar15Movement = 'land';
				multiChar15HP = 20;
				multiChar15PsP = 22;
				multiChar15Steps = 9;
				multiChar15AttackType1 = 'mindblast';
				multiChar15AttackType2 = 'none';
				multiChar15AttackType3 = 'none';
				multiChar15AttackType4 = 'feedback';
				multiChar15Strength = 1;
				multiChar15PsyPower = 6;
				multiChar15PsyDefense = 9;
			}
			if (char16type == 'Shadowling') {
				multiChar16Name = 'Shadowling';
				multiChar16Movement = 'flying';
				multiChar16HP = 24;
				multiChar16PsP = 20;
				multiChar16Steps = 8;
				multiChar16AttackType1 = 'mindblast';
				multiChar16AttackType2 = 'none';
				multiChar16AttackType3 = 'none';
				multiChar16AttackType4 = 'none';
				multiChar16Strength = 1;
				multiChar16PsyPower = 7;
				multiChar16PsyDefense = 0;
			}
			if (char16type == 'Psy Healer') {
				multiChar16Name = 'Psy Healer';
				multiChar16Movement = 'land';
				multiChar16HP = 16;
				multiChar16PsP = 16;
				multiChar16Steps = 6;
				multiChar16AttackType1 = 'mindblast';
				multiChar16AttackType2 = 'mindshield';
				multiChar16AttackType3 = 'none';
				multiChar16AttackType4 = 'none';
				multiChar16Strength = 1;
				multiChar16PsyPower = 3;
				multiChar16PsyDefense = 12;
			}
			if (char16type == 'Psy Fighter') {
				multiChar16Name = 'Psy Fighter';
				multiChar16Movement = 'land';
				multiChar16HP = 24;
				multiChar16PsP = 20;
				multiChar16Steps = 5;
				multiChar16AttackType1 = 'mindblast';
				multiChar16AttackType2 = 'none';
				multiChar16AttackType3 = 'pyroblast';
				multiChar16AttackType4 = 'none';
				multiChar16Strength = 1;
				multiChar16PsyPower = 8;
				multiChar16PsyDefense = 6;
			}
			if (char16type == 'Psy Assassin') {
				multiChar16Name = 'Psy Assassin';
				multiChar16Movement = 'land';
				multiChar16HP = 20;
				multiChar16PsP = 22;
				multiChar16Steps = 9;
				multiChar16AttackType1 = 'mindblast';
				multiChar16AttackType2 = 'none';
				multiChar16AttackType3 = 'none';
				multiChar16AttackType4 = 'feedback';
				multiChar16Strength = 1;
				multiChar16PsyPower = 6;
				multiChar16PsyDefense = 9;
			}
		}
		function doneWithSettings() {
			MultiMenu.MultiMenuMid.SettingsDisplay.done._visible = true;
			if (mapChosen == '') {
				MultiMenu.MultiMenuMid.SettingsDisplay.done._visible = false;
			}
			if (P1name == P2name || P1name == '' || P2name == '') {
				MultiMenu.MultiMenuMid.SettingsDisplay.done._visible = false;
			}
		}
		function populateBattlefieldMulti() {
			multiChar1Dead = false;
			multiChar2Dead = false;
			multiChar3Dead = false;
			multiChar4Dead = false;
			multiChar5Dead = false;
			multiChar6Dead = false;
			multiChar7Dead = false;
			multiChar8Dead = false;
			multiChar9Dead = false;
			multiChar10Dead = false;
			multiChar11Dead = false;
			multiChar12Dead = false;
			multiChar13Dead = false;
			multiChar14Dead = false;
			multiChar15Dead = false;
			multiChar16Dead = false;
			if (teamSize == 4) {
				if (char1type !== 'Shadowling') {
					attachMovie('Man01_Multi_ROOT_p1', 'char1', 2);
				}
				if (char1type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char1', 2);
				}
				if (char3type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p1', 'char3', 4);
				}
				if (char3type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char3', 4);
				}
				if (char5type !== 'Shadowling') {
					attachMovie('Man04_Multi_ROOT_p1', 'char5', 6);
				}
				if (char5type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char5', 6);
				}
				if (char7type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p1', 'char7', 8);
				}
				if (char7type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char7', 8);
				}
				if (char2type !== 'Shadowling') {
					attachMovie('Man06_Multi_ROOT_p2', 'char2', 3);
				}
				if (char2type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char2', 3);
				}
				if (char4type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p2', 'char4', 5);
				}
				if (char4type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char4', 5);
				}
				if (char6type !== 'Shadowling') {
					attachMovie('Man02_Multi_ROOT_p2', 'char6', 7);
				}
				if (char6type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char6', 7);
				}
				if (char8type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p2', 'char8', 9);
				}
				if (char8type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char8', 9);
				}
				multiChar9Dead = true;
				multiChar10Dead = true;
				multiChar11Dead = true;
				multiChar12Dead = true;
				multiChar13Dead = true;
				multiChar14Dead = true;
				multiChar15Dead = true;
				multiChar16Dead = true;
			}
			if (teamSize == 5) {
				if (char1type !== 'Shadowling') {
					attachMovie('Man01_Multi_ROOT_p1', 'char1', 2);
				}
				if (char1type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char1', 2);
				}
				if (char3type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p1', 'char3', 4);
				}
				if (char3type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char3', 4);
				}
				if (char5type !== 'Shadowling') {
					attachMovie('Man04_Multi_ROOT_p1', 'char5', 6);
				}
				if (char5type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char5', 6);
				}
				if (char7type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p1', 'char7', 8);
				}
				if (char7type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char7', 8);
				}
				if (char9type !== 'Shadowling') {
					attachMovie('Man02_Multi_ROOT_p1', 'char9', 10);
				}
				if (char9type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char9', 10);
				}
				if (char2type !== 'Shadowling') {
					attachMovie('Man06_Multi_ROOT_p2', 'char2', 3);
				}
				if (char2type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char2', 3);
				}
				if (char4type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p2', 'char4', 5);
				}
				if (char4type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char4', 5);
				}
				if (char6type !== 'Shadowling') {
					attachMovie('Man02_Multi_ROOT_p2', 'char6', 7);
				}
				if (char6type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char6', 7);
				}
				if (char8type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p2', 'char8', 9);
				}
				if (char8type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char8', 9);
				}
				if (char10type !== 'Shadowling') {
					attachMovie('Man01_Multi_ROOT_p2', 'char10', 11);
				}
				if (char10type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char10', 11);
				}
				multiChar11Dead = true;
				multiChar12Dead = true;
				multiChar13Dead = true;
				multiChar14Dead = true;
				multiChar15Dead = true;
				multiChar16Dead = true;
			}
			if (teamSize == 6) {
				if (char1type !== 'Shadowling') {
					attachMovie('Man01_Multi_ROOT_p1', 'char1', 2);
				}
				if (char1type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char1', 2);
				}
				if (char3type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p1', 'char3', 4);
				}
				if (char3type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char3', 4);
				}
				if (char5type !== 'Shadowling') {
					attachMovie('Man04_Multi_ROOT_p1', 'char5', 6);
				}
				if (char5type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char5', 6);
				}
				if (char7type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p1', 'char7', 8);
				}
				if (char7type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char7', 8);
				}
				if (char9type !== 'Shadowling') {
					attachMovie('Man02_Multi_ROOT_p1', 'char9', 10);
				}
				if (char9type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char9', 10);
				}
				if (char11type !== 'Shadowling') {
					attachMovie('Fem01_Multi_ROOT_p1', 'char11', 12);
				}
				if (char11type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char11', 12);
				}
				if (char2type !== 'Shadowling') {
					attachMovie('Man06_Multi_ROOT_p2', 'char2', 3);
				}
				if (char2type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char2', 3);
				}
				if (char4type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p2', 'char4', 5);
				}
				if (char4type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char4', 5);
				}
				if (char6type !== 'Shadowling') {
					attachMovie('Man02_Multi_ROOT_p2', 'char6', 7);
				}
				if (char6type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char6', 7);
				}
				if (char8type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p2', 'char8', 9);
				}
				if (char8type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char8', 9);
				}
				if (char10type !== 'Shadowling') {
					attachMovie('Man01_Multi_ROOT_p2', 'char10', 11);
				}
				if (char10type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char10', 11);
				}
				if (char12type !== 'Shadowling') {
					attachMovie('Fem01_Multi_ROOT_p2', 'char12', 13);
				}
				if (char12type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char12', 13);
				}
				multiChar13Dead = true;
				multiChar14Dead = true;
				multiChar15Dead = true;
				multiChar16Dead = true;
			}
			if (teamSize == 7) {
				if (char1type !== 'Shadowling') {
					attachMovie('Man01_Multi_ROOT_p1', 'char1', 2);
				}
				if (char1type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char1', 2);
				}
				if (char3type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p1', 'char3', 4);
				}
				if (char3type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char3', 4);
				}
				if (char5type !== 'Shadowling') {
					attachMovie('Man04_Multi_ROOT_p1', 'char5', 6);
				}
				if (char5type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char5', 6);
				}
				if (char7type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p1', 'char7', 8);
				}
				if (char7type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char7', 8);
				}
				if (char9type !== 'Shadowling') {
					attachMovie('Man02_Multi_ROOT_p1', 'char9', 10);
				}
				if (char9type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char9', 10);
				}
				if (char11type !== 'Shadowling') {
					attachMovie('Fem01_Multi_ROOT_p1', 'char11', 12);
				}
				if (char11type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char11', 12);
				}
				if (char13type !== 'Shadowling') {
					attachMovie('Man06_Multi_ROOT_p1', 'char13', 14);
				}
				if (char13type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p1', 'char13', 14);
				}
				if (char2type !== 'Shadowling') {
					attachMovie('Man06_Multi_ROOT_p2', 'char2', 3);
				}
				if (char2type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char2', 3);
				}
				if (char4type !== 'Shadowling') {
					attachMovie('Fem02_Multi_ROOT_p2', 'char4', 5);
				}
				if (char4type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char4', 5);
				}
				if (char6type !== 'Shadowling') {
					attachMovie('Man02_Multi_ROOT_p2', 'char6', 7);
				}
				if (char6type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char6', 7);
				}
				if (char8type !== 'Shadowling') {
					attachMovie('Fem03_Multi_ROOT_p2', 'char8', 9);
				}
				if (char8type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char8', 9);
				}
				if (char10type !== 'Shadowling') {
					attachMovie('Man01_Multi_ROOT_p2', 'char10', 11);
				}
				if (char10type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char10', 11);
				}
				if (char12type !== 'Shadowling') {
					attachMovie('Fem01_Multi_ROOT_p2', 'char12', 13);
				}
				if (char12type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char12', 13);
				}
				if (char14type !== 'Shadowling') {
					attachMovie('Man04_Multi_ROOT_p2', 'char14', 15);
				}
				if (char14type == 'Shadowling') {
					attachMovie('Shdwlng_Multi_ROOT_p2', 'char14', 15);
				}
				multiChar15Dead = true;
				multiChar16Dead = true;
			}
			if (mapChosen !== 'Balls of Fire' && mapChosen !== 'Special Die-livery') {
				char1._x = 25;
				char1._y = 25;
				char3._x = 75;
				char3._y = 25;
				char5._x = 125;
				char5._y = 25;
				char7._x = 175;
				char7._y = 25;
				char9._x = 225;
				char9._y = 25;
				char11._x = 275;
				char11._y = 25;
				char13._x = 325;
				char13._y = 25;
				char2._x = 525;
				char2._y = 375;
				char2._rotation -= 180;
				char4._x = 475;
				char4._y = 375;
				char4._rotation -= 180;
				char6._x = 425;
				char6._y = 375;
				char6._rotation -= 180;
				char8._x = 375;
				char8._y = 375;
				char8._rotation -= 180;
				char10._x = 325;
				char10._y = 375;
				char10._rotation -= 180;
				char12._x = 275;
				char12._y = 375;
				char12._rotation -= 180;
				char14._x = 225;
				char14._y = 375;
				char14._rotation -= 180;
			}
			if (mapChosen == 'Balls of Fire') {
				char1._x = 175;
				char1._y = 75;
				char3._x = 125;
				char3._y = 75;
				char5._x = 75;
				char5._y = 75;
				char7._x = 25;
				char7._y = 75;
				char9._x = 125;
				char9._y = 25;
				char11._x = 75;
				char11._y = 25;
				char13._x = 25;
				char13._y = 25;
				char2._x = 525;
				char2._y = 325;
				char2._rotation -= 180;
				char4._x = 475;
				char4._y = 325;
				char4._rotation -= 180;
				char6._x = 425;
				char6._y = 325;
				char6._rotation -= 180;
				char8._x = 375;
				char8._y = 325;
				char8._rotation -= 180;
				char10._x = 425;
				char10._y = 375;
				char10._rotation -= 180;
				char12._x = 475;
				char12._y = 375;
				char12._rotation -= 180;
				char14._x = 525;
				char14._y = 375;
				char14._rotation -= 180;
			}
			if (mapChosen == 'Special Die-livery') {
				char1._x = 325;
				char1._y = 25;
				char3._x = 375;
				char3._y = 25;
				char5._x = 425;
				char5._y = 25;
				char7._x = 475;
				char7._y = 25;
				char9._x = 525;
				char9._y = 25;
				char11._x = 475;
				char11._y = 75;
				char13._x = 525;
				char13._y = 75;
				char2._x = 225;
				char2._y = 375;
				char2._rotation -= 180;
				char4._x = 175;
				char4._y = 375;
				char4._rotation -= 180;
				char6._x = 125;
				char6._y = 375;
				char6._rotation -= 180;
				char8._x = 75;
				char8._y = 375;
				char8._rotation -= 180;
				char10._x = 25;
				char10._y = 375;
				char10._rotation -= 180;
				char12._x = 75;
				char12._y = 325;
				char12._rotation -= 180;
				char14._x = 25;
				char14._y = 325;
				char14._rotation -= 180;
			}
		}
		function removeDeadMulti() {
			if (char1Dead == true) {
				char1._x -= 1000;
				char1.removeMovieClip();
			}
			if (char2Dead == true) {
				char2._x -= 1000;
				char2.removeMovieClip();
			}
			if (char3Dead == true) {
				char3._x -= 1000;
				char3.removeMovieClip();
			}
			if (char4Dead == true) {
				char4._x -= 1000;
				char4.removeMovieClip();
			}
			if (char5Dead == true) {
				char5._x -= 1000;
				char5.removeMovieClip();
			}
			if (char6Dead == true) {
				char6._x -= 1000;
				char6.removeMovieClip();
			}
			if (char7Dead == true) {
				char7._x -= 1000;
				char7.removeMovieClip();
			}
			if (char8Dead == true) {
				char8._x -= 1000;
				char8.removeMovieClip();
			}
			if (char9Dead == true) {
				char9._x -= 1000;
				char9.removeMovieClip();
			}
			if (char10Dead == true) {
				char10._x -= 1000;
				char10.removeMovieClip();
			}
			if (char11Dead == true) {
				char11._x -= 1000;
				char11.removeMovieClip();
			}
			if (char12Dead == true) {
				char12._x -= 1000;
				char12.removeMovieClip();
			}
			if (char13Dead == true) {
				char13._x -= 1000;
				char13.removeMovieClip();
			}
			if (char14Dead == true) {
				char14._x -= 1000;
				char14.removeMovieClip();
			}
			if (char15Dead == true) {
				char15._x -= 1000;
				char15.removeMovieClip();
			}
			if (char16Dead == true) {
				char16._x -= 1000;
				char16.removeMovieClip();
			}
		}
		function clearBattlefieldMulti() {
			_root.char1.swapDepths(28);
			_root.char2.swapDepths(29);
			_root.char3.swapDepths(30);
			_root.char4.swapDepths(31);
			_root.char5.swapDepths(32);
			_root.char6.swapDepths(33);
			_root.char7.swapDepths(34);
			_root.char8.swapDepths(35);
			_root.char9.swapDepths(36);
			_root.char16.swapDepths(37);
			_root.char17.swapDepths(38);
			_root.char18.swapDepths(39);
			_root.char19.swapDepths(40);
			_root.char20.swapDepths(41);
			_root.char21.swapDepths(42);
			_root.char22.swapDepths(43);
			_root.char23.swapDepths(44);
			_root.char24.swapDepths(45);
			_root.char25.swapDepths(46);
			_root.char1.removeMovieClip();
			_root.char2.removeMovieClip();
			_root.char3.removeMovieClip();
			_root.char4.removeMovieClip();
			_root.char5.removeMovieClip();
			_root.char6.removeMovieClip();
			_root.char7.removeMovieClip();
			_root.char8.removeMovieClip();
			_root.char9.removeMovieClip();
			_root.char10.removeMovieClip();
			_root.char11.removeMovieClip();
			_root.char12.removeMovieClip();
			_root.char13.removeMovieClip();
			_root.char14.removeMovieClip();
			_root.char15.removeMovieClip();
			_root.char16.removeMovieClip();
			_root.char17.removeMovieClip();
			_root.char18.removeMovieClip();
			_root.char19.removeMovieClip();
			_root.char20.removeMovieClip();
			_root.char21.removeMovieClip();
			_root.char22.removeMovieClip();
			_root.char23.removeMovieClip();
			_root.char24.removeMovieClip();
			_root.char25.removeMovieClip();
			_root.Overhead.removeMovieClip();
			_root.Darkness_opacity50.removeMovieClip();
			_root.victoryBox.removeMovieClip();
			_root.defeatBox.removeMovieClip();
			_root.battleDisplay.removeMovieClip();
		}
		function changeturnsMulti() {
			removeDeadMulti();
			shownHearts = false;
			if (char2Dead == true && char4Dead == true && char6Dead == true && char8Dead == true && char10Dead == true && char12Dead == true && char14Dead == true && char16Dead == true) {
				wonMultiBattle = 1;
			}
			if (char1Dead == true && char3Dead == true && char5Dead == true && char7Dead == true && char9Dead == true && char11Dead == true && char13Dead == true && char15Dead == true) {
				wonMultiBattle = 2;
			}
			if (wonMultiBattle == 1 || wonMultiBattle == 2) {
				if (mapChosen == 'Field of Screams') {
					gotoAndStop('wonMultiBattle01');
				}
				if (mapChosen == 'Calamity Castle') {
					gotoAndStop('wonMultiBattle02');
				}
				if (mapChosen == 'Bridge to Deadsville') {
					gotoAndStop('wonMultiBattle03');
				}
				if (mapChosen == 'Balls of Fire') {
					gotoAndStop('wonMultiBattle04');
				}
				if (mapChosen == 'Woods of Woe') {
					gotoAndStop('wonMultiBattle05');
				}
				if (mapChosen == 'Rumble in the Streets') {
					gotoAndStop('wonMultiBattle06');
				}
				if (mapChosen == 'Golem Maze Massacre') {
					gotoAndStop('wonMultiBattle07');
				}
				if (mapChosen == 'Special Die-livery') {
					gotoAndStop('wonMultiBattle08');
				}
			}
			if (wonMultiBattle == 0 && turnType == 'Staggered') {
				if (moveTurn < 16) {
					gainFocusMulti();
					++moveTurn;
					++turnCounter;
					if (moveTurn == 2) {
						currentX = char2._x;
						currentY = char2._y;
						initialX = char2._x;
						initialY = char2._y;
					}
					if (moveTurn == 3) {
						currentX = char3._x;
						currentY = char3._y;
						initialX = char3._x;
						initialY = char3._y;
					}
					if (moveTurn == 4) {
						currentX = char4._x;
						currentY = char4._y;
						initialX = char4._x;
						initialY = char4._y;
					}
					if (moveTurn == 5) {
						currentX = char5._x;
						currentY = char5._y;
						initialX = char5._x;
						initialY = char5._y;
					}
					if (moveTurn == 6) {
						currentX = char6._x;
						currentY = char6._y;
						initialX = char6._x;
						initialY = char6._y;
					}
					if (moveTurn == 7) {
						currentX = char7._x;
						currentY = char7._y;
						initialX = char7._x;
						initialY = char7._y;
					}
					if (moveTurn == 8) {
						currentX = char8._x;
						currentY = char8._y;
						initialX = char8._x;
						initialY = char8._y;
					}
					if (moveTurn == 9) {
						currentX = char9._x;
						currentY = char9._y;
						initialX = char9._x;
						initialY = char9._y;
					}
					if (moveTurn == 10) {
						currentX = char10._x;
						currentY = char10._y;
						initialX = char10._x;
						initialY = char10._y;
					}
					if (moveTurn == 11) {
						currentX = char11._x;
						currentY = char11._y;
						initialX = char11._x;
						initialY = char11._y;
					}
					if (moveTurn == 12) {
						currentX = char12._x;
						currentY = char12._y;
						initialX = char12._x;
						initialY = char12._y;
					}
					if (moveTurn == 13) {
						currentX = char13._x;
						currentY = char13._y;
						initialX = char13._x;
						initialY = char13._y;
					}
					if (moveTurn == 14) {
						currentX = char14._x;
						currentY = char14._y;
						initialX = char14._x;
						initialY = char14._y;
					}
					if (moveTurn == 15) {
						currentX = char15._x;
						currentY = char15._y;
						initialX = char15._x;
						initialY = char15._y;
					}
					if (moveTurn == 16) {
						currentX = char16._x;
						currentY = char16._y;
						initialX = char16._x;
						initialY = char16._y;
					}
					displaySelectionMulti();
					displayHPMulti();
					displayPsPMulti();
					displayNameMulti();
					displayAttackButtonsMulti();
				} else {
					if (moveTurn >= 16) {
						moveTurn = 1;
						++turnCounter;
						currentX = char1._x;
						currentY = char1._y;
						initialX = char1._x;
						initialY = char1._y;
						displaySelectionMulti();
						displayHPMulti();
						displayPsPMulti();
						displayNameMulti();
						displayAttackButtonsMulti();
					}
				}
			}
			if (wonMultiBattle == 0 && turnType == 'Whole Team') {
				if (moveTurn < 15 && moveTurn > 0) {
					gainFocusMulti();
					moveTurn += 2;
					++turnCounter;
					if (moveTurn == 2) {
						currentX = char2._x;
						currentY = char2._y;
						initialX = char2._x;
						initialY = char2._y;
					}
					if (moveTurn == 3) {
						currentX = char3._x;
						currentY = char3._y;
						initialX = char3._x;
						initialY = char3._y;
					}
					if (moveTurn == 4) {
						currentX = char4._x;
						currentY = char4._y;
						initialX = char4._x;
						initialY = char4._y;
					}
					if (moveTurn == 5) {
						currentX = char5._x;
						currentY = char5._y;
						initialX = char5._x;
						initialY = char5._y;
					}
					if (moveTurn == 6) {
						currentX = char6._x;
						currentY = char6._y;
						initialX = char6._x;
						initialY = char6._y;
					}
					if (moveTurn == 7) {
						currentX = char7._x;
						currentY = char7._y;
						initialX = char7._x;
						initialY = char7._y;
					}
					if (moveTurn == 8) {
						currentX = char8._x;
						currentY = char8._y;
						initialX = char8._x;
						initialY = char8._y;
					}
					if (moveTurn == 9) {
						currentX = char9._x;
						currentY = char9._y;
						initialX = char9._x;
						initialY = char9._y;
					}
					if (moveTurn == 10) {
						currentX = char10._x;
						currentY = char10._y;
						initialX = char10._x;
						initialY = char10._y;
					}
					if (moveTurn == 11) {
						currentX = char11._x;
						currentY = char11._y;
						initialX = char11._x;
						initialY = char11._y;
					}
					if (moveTurn == 12) {
						currentX = char12._x;
						currentY = char12._y;
						initialX = char12._x;
						initialY = char12._y;
					}
					if (moveTurn == 13) {
						currentX = char13._x;
						currentY = char13._y;
						initialX = char13._x;
						initialY = char13._y;
					}
					if (moveTurn == 14) {
						currentX = char14._x;
						currentY = char14._y;
						initialX = char14._x;
						initialY = char14._y;
					}
					if (moveTurn == 15) {
						currentX = char15._x;
						currentY = char15._y;
						initialX = char15._x;
						initialY = char15._y;
					}
					if (moveTurn == 16) {
						currentX = char16._x;
						currentY = char16._y;
						initialX = char16._x;
						initialY = char16._y;
					}
					displaySelectionMulti();
					displayHPMulti();
					displayPsPMulti();
					displayNameMulti();
					displayAttackButtonsMulti();
				} else {
					if (moveTurn == 15) {
						moveTurn = 2;
						++turnCounter;
						currentX = char2._x;
						currentY = char2._y;
						initialX = char2._x;
						initialY = char2._y;
						displaySelectionMulti();
						displayHPMulti();
						displayPsPMulti();
						displayNameMulti();
						displayAttackButtonsMulti();
					} else {
						if (moveTurn == 16 || moveTurn == 0) {
							moveTurn = 1;
							++turnCounter;
							currentX = char1._x;
							currentY = char1._y;
							initialX = char1._x;
							initialY = char1._y;
							displaySelectionMulti();
							displayHPMulti();
							displayPsPMulti();
							displayNameMulti();
							displayAttackButtonsMulti();
						}
					}
				}
			}
			steps = 0;
			velocityX = 0;
			velocityY = 0;
			displayStepsMulti();
			attacked = 0;
			blocked = false;
			moving = false;
		}
		function displayNameMulti() {
			if (moveTurn == 1) {
				charName = name1;
			}
			if (moveTurn == 2) {
				charName = name2;
			}
			if (moveTurn == 3) {
				charName = name3;
			}
			if (moveTurn == 4) {
				charName = name4;
			}
			if (moveTurn == 5) {
				charName = name5;
			}
			if (moveTurn == 6) {
				charName = name6;
			}
			if (moveTurn == 7) {
				charName = name7;
			}
			if (moveTurn == 8) {
				charName = name8;
			}
			if (moveTurn == 9) {
				charName = name9;
			}
			if (moveTurn == 10) {
				charName = name10;
			}
			if (moveTurn == 11) {
				charName = name11;
			}
			if (moveTurn == 12) {
				charName = name12;
			}
			if (moveTurn == 13) {
				charName = name13;
			}
			if (moveTurn == 14) {
				charName = name14;
			}
			if (moveTurn == 15) {
				charName = name15;
			}
			if (moveTurn == 16) {
				charName = name16;
			}
			if (moveTurn == 17) {
				charName = name17;
			}
			if (moveTurn == 18) {
				charName = name18;
			}
			if (moveTurn == 19) {
				charName = name19;
			}
			if (moveTurn == 20) {
				charName = name20;
			}
			if (moveTurn == 21) {
				charName = name21;
			}
			if (moveTurn == 22) {
				charName = name22;
			}
			if (moveTurn == 23) {
				charName = name23;
			}
			if (moveTurn == 24) {
				charName = name24;
			}
			if (moveTurn == 25) {
				charName = name25;
			}
		}
		function displayAttackInfoMulti() {
			if (currAttackType1 == 'none') {
				battleDisplay.attackButton1.gotoAndStop(1);
			}
			if (currAttackType1 == 'mindblast') {
				battleDisplay.attackButton1.gotoAndStop(2);
			}
			if (currAttackType1 == 'pyroblast') {
				battleDisplay.attackButton1.gotoAndStop(3);
			}
			if (currAttackType1 == 'mindshield') {
				battleDisplay.attackButton1.gotoAndStop(4);
			}
			if (currAttackType1 == 'feedback') {
				battleDisplay.attackButton1.gotoAndStop(5);
			}
			if (currAttackType1 == 'melee') {
				battleDisplay.attackButton1.gotoAndStop(6);
			}
			if (currAttackType2 == 'none') {
				battleDisplay.attackButton2.gotoAndStop(1);
			}
			if (currAttackType2 == 'mindblast') {
				battleDisplay.attackButton2.gotoAndStop(2);
			}
			if (currAttackType2 == 'pyroblast') {
				battleDisplay.attackButton2.gotoAndStop(3);
			}
			if (currAttackType2 == 'mindshield') {
				battleDisplay.attackButton2.gotoAndStop(4);
			}
			if (currAttackType2 == 'feedback') {
				battleDisplay.attackButton2.gotoAndStop(5);
			}
			if (currAttackType2 == 'melee') {
				battleDisplay.attackButton2.gotoAndStop(6);
			}
			if (currAttackType3 == 'none') {
				battleDisplay.attackButton3.gotoAndStop(1);
			}
			if (currAttackType3 == 'mindblast') {
				battleDisplay.attackButton3.gotoAndStop(2);
			}
			if (currAttackType3 == 'pyroblast') {
				battleDisplay.attackButton3.gotoAndStop(3);
			}
			if (currAttackType3 == 'mindshield') {
				battleDisplay.attackButton3.gotoAndStop(4);
			}
			if (currAttackType3 == 'feedback') {
				battleDisplay.attackButton3.gotoAndStop(5);
			}
			if (currAttackType3 == 'melee') {
				battleDisplay.attackButton3.gotoAndStop(6);
			}
			if (currAttackType4 == 'none') {
				battleDisplay.attackButton4.gotoAndStop(1);
			}
			if (currAttackType4 == 'mindblast') {
				battleDisplay.attackButton4.gotoAndStop(2);
			}
			if (currAttackType4 == 'pyroblast') {
				battleDisplay.attackButton4.gotoAndStop(3);
			}
			if (currAttackType4 == 'mindshield') {
				battleDisplay.attackButton4.gotoAndStop(4);
			}
			if (currAttackType4 == 'feedback') {
				battleDisplay.attackButton4.gotoAndStop(5);
			}
			if (currAttackType4 == 'melee') {
				battleDisplay.attackButton4.gotoAndStop(6);
			}
		}
		function displayAttackButtonsMulti() {
			if (moveTurn == 1) {
				currAttackType1 = multiChar1AttackType1;
				currAttackType2 = multiChar1AttackType2;
				currAttackType3 = multiChar1AttackType3;
				currAttackType4 = multiChar1AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 2) {
				currAttackType1 = multiChar2AttackType1;
				currAttackType2 = multiChar2AttackType2;
				currAttackType3 = multiChar2AttackType3;
				currAttackType4 = multiChar2AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 3) {
				currAttackType1 = multiChar3AttackType1;
				currAttackType2 = multiChar3AttackType2;
				currAttackType3 = multiChar3AttackType3;
				currAttackType4 = multiChar3AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 4) {
				currAttackType1 = multiChar4AttackType1;
				currAttackType2 = multiChar4AttackType2;
				currAttackType3 = multiChar4AttackType3;
				currAttackType4 = multiChar4AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 5) {
				currAttackType1 = multiChar5AttackType1;
				currAttackType2 = multiChar5AttackType2;
				currAttackType3 = multiChar5AttackType3;
				currAttackType4 = multiChar5AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 6) {
				currAttackType1 = multiChar6AttackType1;
				currAttackType2 = multiChar6AttackType2;
				currAttackType3 = multiChar6AttackType3;
				currAttackType4 = multiChar6AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 7) {
				currAttackType1 = multiChar7AttackType1;
				currAttackType2 = multiChar7AttackType2;
				currAttackType3 = multiChar7AttackType3;
				currAttackType4 = multiChar7AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 8) {
				currAttackType1 = multiChar8AttackType1;
				currAttackType2 = multiChar8AttackType2;
				currAttackType3 = multiChar8AttackType3;
				currAttackType4 = multiChar8AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 9) {
				currAttackType1 = multiChar9AttackType1;
				currAttackType2 = multiChar9AttackType2;
				currAttackType3 = multiChar9AttackType3;
				currAttackType4 = multiChar9AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 10) {
				currAttackType1 = multiChar10AttackType1;
				currAttackType2 = multiChar10AttackType2;
				currAttackType3 = multiChar10AttackType3;
				currAttackType4 = multiChar10AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 11) {
				currAttackType1 = multiChar11AttackType1;
				currAttackType2 = multiChar11AttackType2;
				currAttackType3 = multiChar11AttackType3;
				currAttackType4 = multiChar11AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 12) {
				currAttackType1 = multiChar12AttackType1;
				currAttackType2 = multiChar12AttackType2;
				currAttackType3 = multiChar12AttackType3;
				currAttackType4 = multiChar12AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 13) {
				currAttackType1 = multiChar13AttackType1;
				currAttackType2 = multiChar13AttackType2;
				currAttackType3 = multiChar13AttackType3;
				currAttackType4 = multiChar13AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 14) {
				currAttackType1 = multiChar14AttackType1;
				currAttackType2 = multiChar14AttackType2;
				currAttackType3 = multiChar14AttackType3;
				currAttackType4 = multiChar14AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 15) {
				currAttackType1 = multiChar15AttackType1;
				currAttackType2 = multiChar15AttackType2;
				currAttackType3 = multiChar15AttackType3;
				currAttackType4 = multiChar15AttackType4;
				displayAttackInfoMulti();
			}
			if (moveTurn == 16) {
				currAttackType1 = multiChar16AttackType1;
				currAttackType2 = multiChar16AttackType2;
				currAttackType3 = multiChar16AttackType3;
				currAttackType4 = multiChar16AttackType4;
				displayAttackInfoMulti();
			}
		}
		function displayHPMulti() {
			if (moveTurn == 1) {
				if (char1Damage < 0) {
					char1Damage = 0;
				}
				charHP = MaxHP1 - char1Damage;
				charMaxHP = MaxHP1;
			}
			if (moveTurn == 2) {
				if (char2Damage < 0) {
					char2Damage = 0;
				}
				charHP = MaxHP2 - char2Damage;
				charMaxHP = MaxHP2;
			}
			if (moveTurn == 3) {
				if (char3Damage < 0) {
					char3Damage = 0;
				}
				charHP = MaxHP3 - char3Damage;
				charMaxHP = MaxHP3;
			}
			if (moveTurn == 4) {
				if (char4Damage < 0) {
					char4Damage = 0;
				}
				charHP = MaxHP4 - char4Damage;
				charMaxHP = MaxHP4;
			}
			if (moveTurn == 5) {
				if (char5Damage < 0) {
					char5Damage = 0;
				}
				charHP = MaxHP5 - char5Damage;
				charMaxHP = MaxHP5;
			}
			if (moveTurn == 6) {
				if (char6Damage < 0) {
					char6Damage = 0;
				}
				charHP = MaxHP6 - char6Damage;
				charMaxHP = MaxHP6;
			}
			if (moveTurn == 7) {
				if (char7Damage < 0) {
					char7Damage = 0;
				}
				charHP = MaxHP7 - char7Damage;
				charMaxHP = MaxHP7;
			}
			if (moveTurn == 8) {
				if (char8Damage < 0) {
					char8Damage = 0;
				}
				charHP = MaxHP8 - char8Damage;
				charMaxHP = MaxHP8;
			}
			if (moveTurn == 9) {
				if (char9Damage < 0) {
					char9Damage = 0;
				}
				charHP = MaxHP9 - char9Damage;
				charMaxHP = MaxHP9;
			}
			if (moveTurn == 10) {
				if (char10Damage < 0) {
					char10Damage = 0;
				}
				charHP = MaxHP10 - char10Damage;
				charMaxHP = MaxHP10;
			}
			if (moveTurn == 11) {
				if (char11Damage < 0) {
					char11Damage = 0;
				}
				charHP = MaxHP11 - char11Damage;
				charMaxHP = MaxHP11;
			}
			if (moveTurn == 12) {
				if (char12Damage < 0) {
					char12Damage = 0;
				}
				charHP = MaxHP12 - char12Damage;
				charMaxHP = MaxHP12;
			}
			if (moveTurn == 13) {
				if (char13Damage < 0) {
					char13Damage = 0;
				}
				charHP = MaxHP13 - char13Damage;
				charMaxHP = MaxHP13;
			}
			if (moveTurn == 14) {
				if (char14Damage < 0) {
					char14Damage = 0;
				}
				charHP = MaxHP14 - char14Damage;
				charMaxHP = MaxHP14;
			}
			if (moveTurn == 15) {
				if (char15Damage < 0) {
					char15Damage = 0;
				}
				charHP = MaxHP15 - char15Damage;
				charMaxHP = MaxHP15;
			}
			if (moveTurn == 16) {
				if (char16Damage < 0) {
					char16Damage = 0;
				}
				charHP = MaxHP16 - char16Damage;
				charMaxHP = MaxHP16;
			}
			if (charHP < 0) {
				charHP = 0;
			}
		}
		function displayPsPMulti() {
			if (moveTurn == 1) {
				charPsP = MaxPsP1 - char1Drain;
				charMaxPsP = MaxPsP1;
				if (char1Drain < 0) {
					char1Drain = 0;
				}
			}
			if (moveTurn == 2) {
				charPsP = MaxPsP2 - char2Drain;
				charMaxPsP = MaxPsP2;
				if (char2Drain < 0) {
					char2Drain = 0;
				}
			}
			if (moveTurn == 3) {
				charPsP = MaxPsP3 - char3Drain;
				charMaxPsP = MaxPsP3;
				if (char3Drain < 0) {
					char3Drain = 0;
				}
			}
			if (moveTurn == 4) {
				charPsP = MaxPsP4 - char4Drain;
				charMaxPsP = MaxPsP4;
				if (char4Drain < 0) {
					char4Drain = 0;
				}
			}
			if (moveTurn == 5) {
				charPsP = MaxPsP5 - char5Drain;
				charMaxPsP = MaxPsP5;
				if (char5Drain < 0) {
					char5Drain = 0;
				}
			}
			if (moveTurn == 6) {
				charPsP = MaxPsP6 - char6Drain;
				charMaxPsP = MaxPsP6;
				if (char6Drain < 0) {
					char6Drain = 0;
				}
			}
			if (moveTurn == 7) {
				charPsP = MaxPsP7 - char7Drain;
				charMaxPsP = MaxPsP7;
				if (char7Drain < 0) {
					char7Drain = 0;
				}
			}
			if (moveTurn == 8) {
				charPsP = MaxPsP8 - char8Drain;
				charMaxPsP = MaxPsP8;
				if (char8Drain < 0) {
					char8Drain = 0;
				}
			}
			if (moveTurn == 9) {
				charPsP = MaxPsP9 - char9Drain;
				charMaxPsP = MaxPsP9;
				if (char9Drain < 0) {
					char9Drain = 0;
				}
			}
			if (moveTurn == 10) {
				charPsP = MaxPsP10 - char10Drain;
				charMaxPsP = MaxPsP10;
				if (char10Drain < 0) {
					char10Drain = 0;
				}
			}
			if (moveTurn == 11) {
				charPsP = MaxPsP11 - char11Drain;
				charMaxPsP = MaxPsP11;
				if (char11Drain < 0) {
					char11Drain = 0;
				}
			}
			if (moveTurn == 12) {
				charPsP = MaxPsP12 - char12Drain;
				charMaxPsP = MaxPsP12;
				if (char12Drain < 0) {
					char12Drain = 0;
				}
			}
			if (moveTurn == 13) {
				charPsP = MaxPsP13 - char13Drain;
				charMaxPsP = MaxPsP13;
				if (char13Drain < 0) {
					char13Drain = 0;
				}
			}
			if (moveTurn == 14) {
				charPsP = MaxPsP14 - char14Drain;
				charMaxPsP = MaxPsP14;
				if (char14Drain < 0) {
					char14Drain = 0;
				}
			}
			if (moveTurn == 15) {
				charPsP = MaxPsP15 - char15Drain;
				charMaxPsP = MaxPsP15;
				if (char15Drain < 0) {
					char15Drain = 0;
				}
			}
			if (moveTurn == 16) {
				charPsP = MaxPsP16 - char16Drain;
				charMaxPsP = MaxPsP16;
				if (char16Drain < 0) {
					char16Drain = 0;
				}
			}
			if (charPsP < 0) {
				charPsP = 0;
			}
			if (charPsP > charMaxPsP) {
				charPsP = charMaxPsP;
			}
		}
		function gainFocusMulti() {
			if (moveTurn == 1) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char1Drain -= focus;
				if (char1Drain < 0) {
					char1Drain = 0;
				}
			}
			if (moveTurn == 2) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char2Drain -= focus;
				if (char2Drain < 0) {
					char2Drain = 0;
				}
			}
			if (moveTurn == 3) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char3Drain -= focus;
				if (char3Drain < 0) {
					char3Drain = 0;
				}
			}
			if (moveTurn == 4) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char4Drain -= focus;
				if (char4Drain < 0) {
					char4Drain = 0;
				}
			}
			if (moveTurn == 5) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char5Drain -= focus;
				if (char5Drain < 0) {
					char5Drain = 0;
				}
			}
			if (moveTurn == 6) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char6Drain -= focus;
				if (char6Drain < 0) {
					char6Drain = 0;
				}
			}
			if (moveTurn == 7) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char7Drain -= focus;
				if (char7Drain < 0) {
					char7Drain = 0;
				}
			}
			if (moveTurn == 8) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char8Drain -= focus;
				if (char8Drain < 0) {
					char8Drain = 0;
				}
			}
			if (moveTurn == 9) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char9Drain -= focus;
				if (char9Drain < 0) {
					char9Drain = 0;
				}
			}
			if (moveTurn == 10) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char10Drain -= focus;
				if (char10Drain < 0) {
					char10Drain = 0;
				}
			}
			if (moveTurn == 11) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char11Drain -= focus;
				if (char11Drain < 0) {
					char11Drain = 0;
				}
			}
			if (moveTurn == 12) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char12Drain -= focus;
				if (char12Drain < 0) {
					char12Drain = 0;
				}
			}
			if (moveTurn == 13) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char13Drain -= focus;
				if (char13Drain < 0) {
					char13Drain = 0;
				}
			}
			if (moveTurn == 14) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char14Drain -= focus;
				if (char14Drain < 0) {
					char14Drain = 0;
				}
			}
			if (moveTurn == 15) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char15Drain -= focus;
				if (char15Drain < 0) {
					char15Drain = 0;
				}
			}
			if (moveTurn == 16) {
				if (steps == 0 && attacked == 0) {
					focus = 3;
				}
				if (steps > 0 && attacked == 0) {
					focus = 1;
				}
				if (attacked == 1) {
					focus = 0;
				}
				char16Drain -= focus;
				if (char16Drain < 0) {
					char16Drain = 0;
				}
			}
			if (moveTurn > 16) {
			}
		}
		function displayStepsMulti() {
			if (moveTurn == 1) {
				charSteps = MaxSteps1 - steps;
				charMaxSteps = MaxSteps1;
			}
			if (moveTurn == 2) {
				charSteps = MaxSteps2 - steps;
				charMaxSteps = MaxSteps2;
			}
			if (moveTurn == 3) {
				charSteps = MaxSteps3 - steps;
				charMaxSteps = MaxSteps3;
			}
			if (moveTurn == 4) {
				charSteps = MaxSteps4 - steps;
				charMaxSteps = MaxSteps4;
			}
			if (moveTurn == 5) {
				charSteps = MaxSteps5 - steps;
				charMaxSteps = MaxSteps5;
			}
			if (moveTurn == 6) {
				charSteps = MaxSteps6 - steps;
				charMaxSteps = MaxSteps6;
			}
			if (moveTurn == 7) {
				charSteps = MaxSteps7 - steps;
				charMaxSteps = MaxSteps7;
			}
			if (moveTurn == 8) {
				charSteps = MaxSteps8 - steps;
				charMaxSteps = MaxSteps8;
			}
			if (moveTurn == 9) {
				charSteps = MaxSteps9 - steps;
				charMaxSteps = MaxSteps9;
			}
			if (moveTurn == 10) {
				charSteps = MaxSteps10 - steps;
				charMaxSteps = MaxSteps10;
			}
			if (moveTurn == 11) {
				charSteps = MaxSteps11 - steps;
				charMaxSteps = MaxSteps11;
			}
			if (moveTurn == 12) {
				charSteps = MaxSteps12 - steps;
				charMaxSteps = MaxSteps12;
			}
			if (moveTurn == 13) {
				charSteps = MaxSteps13 - steps;
				charMaxSteps = MaxSteps13;
			}
			if (moveTurn == 14) {
				charSteps = MaxSteps14 - steps;
				charMaxSteps = MaxSteps14;
			}
			if (moveTurn == 15) {
				charSteps = MaxSteps15 - steps;
				charMaxSteps = MaxSteps15;
			}
			if (moveTurn == 16) {
				charSteps = MaxSteps16 - steps;
				charMaxSteps = MaxSteps16;
			}
			if (charSteps < 0) {
				charSteps = 0;
			}
		}
		function reDisplaySelectionMulti() {
			if (_root.moveTurn == 1 && char1Dead == false) {
				char1.gotoAndStop(3);
			}
			if (_root.moveTurn == 2 && char2Dead == false) {
				char2.gotoAndStop(3);
			}
			if (_root.moveTurn == 3 && char3Dead == false) {
				char3.gotoAndStop(3);
			}
			if (_root.moveTurn == 4 && char4Dead == false) {
				char4.gotoAndStop(3);
			}
			if (_root.moveTurn == 5 && char5Dead == false) {
				char5.gotoAndStop(3);
			}
			if (_root.moveTurn == 6 && char6Dead == false) {
				char6.gotoAndStop(3);
			}
			if (_root.moveTurn == 7 && char7Dead == false) {
				char7.gotoAndStop(3);
			}
			if (_root.moveTurn == 8 && char8Dead == false) {
				char8.gotoAndStop(3);
			}
			if (_root.moveTurn == 9 && char9Dead == false) {
				char9.gotoAndStop(3);
			}
			if (_root.moveTurn == 10 && char10Dead == false) {
				char10.gotoAndStop(3);
			}
			if (_root.moveTurn == 11 && char11Dead == false) {
				char11.gotoAndStop(3);
			}
			if (_root.moveTurn == 12 && char12Dead == false) {
				char12.gotoAndStop(3);
			}
			if (_root.moveTurn == 13 && char13Dead == false) {
				char13.gotoAndStop(3);
			}
			if (_root.moveTurn == 14 && char14Dead == false) {
				char14.gotoAndStop(3);
			}
		}
		function showHeartsMulti() {
			if (moveTurn == 1 || moveTurn == 3 || moveTurn == 5 || moveTurn == 7 || moveTurn == 9 || moveTurn == 11 || moveTurn == 13) {
				char2.gotoAndStop(30);
				if (shownHearts == false) {
					char2.heart._rotation += 360 - char2._rotation;
				}
				if (char2Damage < 0.33 * MaxHP2) {
					char2.heart.gotoAndStop(1);
				}
				if (char2Damage >= 0.33 * MaxHP2) {
					char2.heart.gotoAndStop(2);
				}
				if (char2Damage >= 0.66 * MaxHP2) {
					char2.heart.gotoAndStop(3);
				}
				char4.gotoAndStop(30);
				if (shownHearts == false) {
					char4.heart._rotation += 360 - char4._rotation;
				}
				if (char4Damage < 0.33 * MaxHP4) {
					char4.heart.gotoAndStop(1);
				}
				if (char4Damage >= 0.33 * MaxHP4) {
					char4.heart.gotoAndStop(2);
				}
				if (char4Damage >= 0.66 * MaxHP4) {
					char4.heart.gotoAndStop(3);
				}
				char6.gotoAndStop(30);
				if (shownHearts == false) {
					char6.heart._rotation += 360 - char6._rotation;
				}
				if (char6Damage < 0.33 * MaxHP6) {
					char6.heart.gotoAndStop(1);
				}
				if (char6Damage >= 0.33 * MaxHP6) {
					char6.heart.gotoAndStop(2);
				}
				if (char6Damage >= 0.66 * MaxHP6) {
					char6.heart.gotoAndStop(3);
				}
				char8.gotoAndStop(30);
				if (shownHearts == false) {
					char8.heart._rotation += 360 - char8._rotation;
				}
				if (char8Damage < 0.33 * MaxHP8) {
					char8.heart.gotoAndStop(1);
				}
				if (char8Damage >= 0.33 * MaxHP8) {
					char8.heart.gotoAndStop(2);
				}
				if (char8Damage >= 0.66 * MaxHP8) {
					char8.heart.gotoAndStop(3);
				}
				char10.gotoAndStop(30);
				if (shownHearts == false) {
					char10.heart._rotation += 360 - char10._rotation;
				}
				if (char10Damage < 0.33 * MaxHP10) {
					char10.heart.gotoAndStop(1);
				}
				if (char10Damage >= 0.33 * MaxHP10) {
					char10.heart.gotoAndStop(2);
				}
				if (char10Damage >= 0.66 * MaxHP10) {
					char10.heart.gotoAndStop(3);
				}
				char12.gotoAndStop(30);
				if (shownHearts == false) {
					char12.heart._rotation += 360 - char12._rotation;
				}
				if (char12Damage < 0.33 * MaxHP12) {
					char12.heart.gotoAndStop(1);
				}
				if (char12Damage >= 0.33 * MaxHP12) {
					char12.heart.gotoAndStop(2);
				}
				if (char12Damage >= 0.66 * MaxHP12) {
					char12.heart.gotoAndStop(3);
				}
				char14.gotoAndStop(30);
				if (shownHearts == false) {
					char14.heart._rotation += 360 - char14._rotation;
				}
				if (char14Damage < 0.33 * MaxHP14) {
					char14.heart.gotoAndStop(1);
				}
				if (char14Damage >= 0.33 * MaxHP14) {
					char14.heart.gotoAndStop(2);
				}
				if (char14Damage >= 0.66 * MaxHP14) {
					char14.heart.gotoAndStop(3);
				}
			}
			if (moveTurn == 2 || moveTurn == 4 || moveTurn == 6 || moveTurn == 8 || moveTurn == 10 || moveTurn == 12 || moveTurn == 14) {
				char1.gotoAndStop(30);
				if (shownHearts == false) {
					char1.heart._rotation += 360 - char1._rotation;
				}
				if (char1Damage < 0.33 * MaxHP1) {
					char1.heart.gotoAndStop(1);
				}
				if (char1Damage >= 0.33 * MaxHP1) {
					char1.heart.gotoAndStop(2);
				}
				if (char1Damage >= 0.66 * MaxHP1) {
					char1.heart.gotoAndStop(3);
				}
				char3.gotoAndStop(30);
				if (shownHearts == false) {
					char3.heart._rotation += 360 - char3._rotation;
				}
				if (char3Damage < 0.33 * MaxHP3) {
					char3.heart.gotoAndStop(1);
				}
				if (char3Damage >= 0.33 * MaxHP3) {
					char3.heart.gotoAndStop(2);
				}
				if (char3Damage >= 0.66 * MaxHP3) {
					char3.heart.gotoAndStop(3);
				}
				char5.gotoAndStop(30);
				if (shownHearts == false) {
					char5.heart._rotation += 360 - char5._rotation;
				}
				if (char5Damage < 0.33 * MaxHP5) {
					char5.heart.gotoAndStop(1);
				}
				if (char5Damage >= 0.33 * MaxHP5) {
					char5.heart.gotoAndStop(2);
				}
				if (char5Damage >= 0.66 * MaxHP5) {
					char5.heart.gotoAndStop(3);
				}
				char7.gotoAndStop(30);
				if (shownHearts == false) {
					char7.heart._rotation += 360 - char7._rotation;
				}
				if (char7Damage < 0.33 * MaxHP7) {
					char7.heart.gotoAndStop(1);
				}
				if (char7Damage >= 0.33 * MaxHP7) {
					char7.heart.gotoAndStop(2);
				}
				if (char7Damage >= 0.66 * MaxHP7) {
					char7.heart.gotoAndStop(3);
				}
				char9.gotoAndStop(30);
				if (shownHearts == false) {
					char9.heart._rotation += 360 - char9._rotation;
				}
				if (char9Damage < 0.33 * MaxHP9) {
					char9.heart.gotoAndStop(1);
				}
				if (char9Damage >= 0.33 * MaxHP9) {
					char9.heart.gotoAndStop(2);
				}
				if (char9Damage >= 0.66 * MaxHP9) {
					char9.heart.gotoAndStop(3);
				}
				char11.gotoAndStop(30);
				if (shownHearts == false) {
					char11.heart._rotation += 360 - char11._rotation;
				}
				if (char11Damage < 0.33 * MaxHP11) {
					char11.heart.gotoAndStop(1);
				}
				if (char11Damage >= 0.33 * MaxHP11) {
					char11.heart.gotoAndStop(2);
				}
				if (char11Damage >= 0.66 * MaxHP11) {
					char11.heart.gotoAndStop(3);
				}
				char13.gotoAndStop(30);
				if (shownHearts == false) {
					char13.heart._rotation += 360 - char13._rotation;
				}
				if (char13Damage < 0.33 * MaxHP13) {
					char13.heart.gotoAndStop(1);
				}
				if (char13Damage >= 0.33 * MaxHP13) {
					char13.heart.gotoAndStop(2);
				}
				if (char13Damage >= 0.66 * MaxHP13) {
					char13.heart.gotoAndStop(3);
				}
			}
			shownHearts = true;
		}
		function displaySelectionMulti() {
			selected = true;
			if (moveTurn == 1 && char1Dead == false) {
				startX = char1._x;
				startY = char1._y;
				char1.gotoAndStop(3);
			}
			if (moveTurn == 1 && char1Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 2 && char2Dead == false) {
				startX = char2._x;
				startY = char2._y;
				char2.gotoAndStop(3);
			}
			if (moveTurn == 2 && char2Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 3 && char3Dead == false) {
				startX = char3._x;
				startY = char3._y;
				char3.gotoAndStop(3);
			}
			if (moveTurn == 3 && char3Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 4 && char4Dead == false) {
				startX = char4._x;
				startY = char4._y;
				char4.gotoAndStop(3);
			}
			if (moveTurn == 4 && char4Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 5 && char5Dead == false) {
				startX = char5._x;
				startY = char5._y;
				char5.gotoAndStop(3);
			}
			if (moveTurn == 5 && char5Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 6 && char6Dead == false) {
				startX = char6._x;
				startY = char6._y;
				char6.gotoAndStop(3);
			}
			if (moveTurn == 6 && char6Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 7 && char7Dead == false) {
				startX = char7._x;
				startY = char7._y;
				char7.gotoAndStop(3);
			}
			if (moveTurn == 7 && char7Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 8 && char8Dead == false) {
				startX = char8._x;
				startY = char8._y;
				char8.gotoAndStop(3);
			}
			if (moveTurn == 8 && char8Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 9 && char9Dead == false) {
				startX = char9._x;
				startY = char9._y;
				char9.gotoAndStop(3);
			}
			if (moveTurn == 9 && char9Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 10 && char10Dead == false) {
				startX = char10._x;
				startY = char10._y;
				char10.gotoAndStop(3);
			}
			if (moveTurn == 10 && char10Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 11 && char11Dead == false) {
				startX = char11._x;
				startY = char11._y;
				char11.gotoAndStop(3);
			}
			if (moveTurn == 11 && char11Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 12 && char12Dead == false) {
				startX = char12._x;
				startY = char12._y;
				char12.gotoAndStop(3);
			}
			if (moveTurn == 12 && char12Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 13 && char13Dead == false) {
				startX = char13._x;
				startY = char13._y;
				char13.gotoAndStop(3);
			}
			if (moveTurn == 13 && char13Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 14 && char14Dead == false) {
				startX = char14._x;
				startY = char14._y;
				char14.gotoAndStop(3);
			}
			if (moveTurn == 14 && char14Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 15 && char15Dead == false) {
				startX = char15._x;
				startY = char15._y;
				char15.gotoAndStop(3);
			}
			if (moveTurn == 15 && char15Dead == true) {
				changeturnsMulti();
			}
			if (moveTurn == 16 && char16Dead == false) {
				startX = char16._x;
				startY = char16._y;
				char16.gotoAndStop(3);
			}
			if (moveTurn == 16 && char16Dead == true) {
				changeturnsMulti();
			}
		}
		function displayInfo1Multi() {
			if (char1Damage < 0) {
				char1Damage = 0;
			}
			currAttackType1 = multiChar1AttackType1;
			currAttackType2 = multiChar1AttackType2;
			currAttackType3 = multiChar1AttackType3;
			currAttackType4 = multiChar1AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP1 - char1Damage;
			charMaxHP = MaxHP1;
			charPsP = MaxPsP1 - char1Drain;
			charMaxPsP = MaxPsP1;
			charSteps = MaxSteps1;
			charMaxSteps = MaxSteps1;
			charName = name1;
		}
		function displayInfo2Multi() {
			if (char2Damage < 0) {
				char2Damage = 0;
			}
			currAttackType1 = multiChar2AttackType1;
			currAttackType2 = multiChar2AttackType2;
			currAttackType3 = multiChar2AttackType3;
			currAttackType4 = multiChar2AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP2 - char2Damage;
			charMaxHP = MaxHP2;
			charPsP = MaxPsP2 - char2Drain;
			charMaxPsP = MaxPsP2;
			charSteps = MaxSteps2;
			charMaxSteps = MaxSteps2;
			charName = name2;
		}
		function displayInfo3Multi() {
			if (char3Damage < 0) {
				char3Damage = 0;
			}
			currAttackType1 = multiChar3AttackType1;
			currAttackType2 = multiChar3AttackType2;
			currAttackType3 = multiChar3AttackType3;
			currAttackType4 = multiChar3AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP3 - char3Damage;
			charMaxHP = MaxHP3;
			charPsP = MaxPsP3 - char3Drain;
			charMaxPsP = MaxPsP3;
			charSteps = MaxSteps3;
			charMaxSteps = MaxSteps3;
			charName = name3;
		}
		function displayInfo4Multi() {
			if (char4Damage < 0) {
				char4Damage = 0;
			}
			currAttackType1 = multiChar4AttackType1;
			currAttackType2 = multiChar4AttackType2;
			currAttackType3 = multiChar4AttackType3;
			currAttackType4 = multiChar4AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP4 - char4Damage;
			charMaxHP = MaxHP4;
			charPsP = MaxPsP4 - char4Drain;
			charMaxPsP = MaxPsP4;
			charSteps = MaxSteps4;
			charMaxSteps = MaxSteps4;
			charName = name4;
		}
		function displayInfo5Multi() {
			if (char5Damage < 0) {
				char5Damage = 0;
			}
			currAttackType1 = multiChar5AttackType1;
			currAttackType2 = multiChar5AttackType2;
			currAttackType3 = multiChar5AttackType3;
			currAttackType4 = multiChar5AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP5 - char5Damage;
			charMaxHP = MaxHP5;
			charPsP = MaxPsP5 - char5Drain;
			charMaxPsP = MaxPsP5;
			charSteps = MaxSteps5;
			charMaxSteps = MaxSteps5;
			charName = name5;
		}
		function displayInfo6Multi() {
			if (char6Damage < 0) {
				char6Damage = 0;
			}
			currAttackType1 = multiChar6AttackType1;
			currAttackType2 = multiChar6AttackType2;
			currAttackType3 = multiChar6AttackType3;
			currAttackType4 = multiChar6AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP6 - char6Damage;
			charMaxHP = MaxHP6;
			charPsP = MaxPsP6 - char6Drain;
			charMaxPsP = MaxPsP6;
			charSteps = MaxSteps6;
			charMaxSteps = MaxSteps6;
			charName = name6;
		}
		function displayInfo7Multi() {
			if (char7Damage < 0) {
				char7Damage = 0;
			}
			currAttackType1 = multiChar7AttackType1;
			currAttackType2 = multiChar7AttackType2;
			currAttackType3 = multiChar7AttackType3;
			currAttackType4 = multiChar7AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP7 - char7Damage;
			charMaxHP = MaxHP7;
			charPsP = MaxPsP7 - char7Drain;
			charMaxPsP = MaxPsP7;
			charSteps = MaxSteps7;
			charMaxSteps = MaxSteps7;
			charName = name7;
		}
		function displayInfo8Multi() {
			if (char8Damage < 0) {
				char8Damage = 0;
			}
			currAttackType1 = multiChar8AttackType1;
			currAttackType2 = multiChar8AttackType2;
			currAttackType3 = multiChar8AttackType3;
			currAttackType4 = multiChar8AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP8 - char8Damage;
			charMaxHP = MaxHP8;
			charPsP = MaxPsP8 - char8Drain;
			charMaxPsP = MaxPsP8;
			charSteps = MaxSteps8;
			charMaxSteps = MaxSteps8;
			charName = name8;
		}
		function displayInfo9Multi() {
			if (char9Damage < 0) {
				char9Damage = 0;
			}
			currAttackType1 = multiChar9AttackType1;
			currAttackType2 = multiChar9AttackType2;
			currAttackType3 = multiChar9AttackType3;
			currAttackType4 = multiChar9AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP9 - char9Damage;
			charMaxHP = MaxHP9;
			charPsP = MaxPsP9 - char9Drain;
			charMaxPsP = MaxPsP9;
			charSteps = MaxSteps9;
			charMaxSteps = MaxSteps9;
			charName = name9;
		}
		function displayInfo10Multi() {
			if (char10Damage < 0) {
				char10Damage = 0;
			}
			currAttackType1 = multiChar10AttackType1;
			currAttackType2 = multiChar10AttackType2;
			currAttackType3 = multiChar10AttackType3;
			currAttackType4 = multiChar10AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP10 - char10Damage;
			charMaxHP = MaxHP10;
			charPsP = MaxPsP10 - char10Drain;
			charMaxPsP = MaxPsP10;
			charSteps = MaxSteps10;
			charMaxSteps = MaxSteps10;
			charName = name10;
		}
		function displayInfo11Multi() {
			if (char11Damage < 0) {
				char11Damage = 0;
			}
			currAttackType1 = multiChar11AttackType1;
			currAttackType2 = multiChar11AttackType2;
			currAttackType3 = multiChar11AttackType3;
			currAttackType4 = multiChar11AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP11 - char11Damage;
			charMaxHP = MaxHP11;
			charPsP = MaxPsP11 - char11Drain;
			charMaxPsP = MaxPsP11;
			charSteps = MaxSteps11;
			charMaxSteps = MaxSteps11;
			charName = name11;
		}
		function displayInfo12Multi() {
			if (char12Damage < 0) {
				char12Damage = 0;
			}
			currAttackType1 = multiChar12AttackType1;
			currAttackType2 = multiChar12AttackType2;
			currAttackType3 = multiChar12AttackType3;
			currAttackType4 = multiChar12AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP12 - char12Damage;
			charMaxHP = MaxHP12;
			charPsP = MaxPsP12 - char12Drain;
			charMaxPsP = MaxPsP12;
			charSteps = MaxSteps12;
			charMaxSteps = MaxSteps12;
			charName = name12;
		}
		function displayInfo13Multi() {
			if (char13Damage < 0) {
				char13Damage = 0;
			}
			currAttackType1 = multiChar13AttackType1;
			currAttackType2 = multiChar13AttackType2;
			currAttackType3 = multiChar13AttackType3;
			currAttackType4 = multiChar13AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP13 - char13Damage;
			charMaxHP = MaxHP13;
			charPsP = MaxPsP13 - char13Drain;
			charMaxPsP = MaxPsP13;
			charSteps = MaxSteps13;
			charMaxSteps = MaxSteps13;
			charName = name13;
		}
		function displayInfo14Multi() {
			if (char14Damage < 0) {
				char14Damage = 0;
			}
			currAttackType1 = multiChar14AttackType1;
			currAttackType2 = multiChar14AttackType2;
			currAttackType3 = multiChar14AttackType3;
			currAttackType4 = multiChar14AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP14 - char14Damage;
			charMaxHP = MaxHP14;
			charPsP = MaxPsP14 - char14Drain;
			charMaxPsP = MaxPsP14;
			charSteps = MaxSteps14;
			charMaxSteps = MaxSteps14;
			charName = name14;
		}
		function displayInfo15Multi() {
			if (char15Damage < 0) {
				char15Damage = 0;
			}
			currAttackType1 = multiChar15AttackType1;
			currAttackType2 = multiChar15AttackType2;
			currAttackType3 = multiChar15AttackType3;
			currAttackType4 = multiChar15AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP15 - char15Damage;
			charMaxHP = MaxHP15;
			charPsP = MaxPsP15 - char15Drain;
			charMaxPsP = MaxPsP15;
			charSteps = MaxSteps15;
			charMaxSteps = MaxSteps15;
			charName = name15;
		}
		function displayInfo16Multi() {
			if (char16Damage < 0) {
				char16Damage = 0;
			}
			currAttackType1 = multiChar16AttackType1;
			currAttackType2 = multiChar16AttackType2;
			currAttackType3 = multiChar16AttackType3;
			currAttackType4 = multiChar16AttackType4;
			displayAttackInfoMulti();
			charHP = MaxHP16 - char16Damage;
			charMaxHP = MaxHP16;
			charPsP = MaxPsP16 - char16Drain;
			charMaxPsP = MaxPsP16;
			charSteps = MaxSteps16;
			charMaxSteps = MaxSteps16;
			charName = name16;
		}
		function giveDamage1mindblastMulti() {
			MBDmg = char1PsyPower + char1MBlevel;
			if (char1.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char1.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char1.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char1.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char1.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char1.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char1.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char1.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char1._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage1mindshieldMulti() {
			MSDmg = char1PsyDefense + char1MSlevel;
			if (char1.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char1.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char1.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char1.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char1.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char1.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char1.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char1.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage1pyroblastMulti() {
			PBDmg = char1PsyPower + 2 * char1PBlevel + 3;
			if (char1.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char1.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char1.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char1.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char1.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char1.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char1.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char1.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char1._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage1feedbackMulti() {
			if (char1Damage <= char1FBmax) {
				FBDmg = char1Damage;
			} else {
				FBDmg = char1FBmax;
			}
			if (char1.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char1Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char1.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char1Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char1.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char1Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char1.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char1Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char1.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char1Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char1.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char1Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char1.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char1Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char1.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char1Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage3mindblastMulti() {
			MBDmg = char3PsyPower + char3MBlevel;
			if (char3.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char3.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char3.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char3.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char3.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char3.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char3.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char3.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char3._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage3mindshieldMulti() {
			MSDmg = char3PsyDefense + char3MSlevel;
			if (char3.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char3.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char3.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char3.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char3.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char3.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char3.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char3.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage3pyroblastMulti() {
			PBDmg = char3PsyPower + 2 * char3PBlevel + 3;
			if (char3.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char3.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char3.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char3.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char3.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char3.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char3.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char3.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char3._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage3feedbackMulti() {
			if (char3Damage <= char3FBmax) {
				FBDmg = char3Damage;
			} else {
				FBDmg = char3FBmax;
			}
			if (char3.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char3Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char3.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char3Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char3.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char3Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char3.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char3Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char3.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char3Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char3.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char3Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char3.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char3Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char3.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char3Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage5mindblastMulti() {
			MBDmg = char5PsyPower + char5MBlevel;
			if (char5.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char5.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char5.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char5.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char5.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char5.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char5.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char5.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char5._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage5mindshieldMulti() {
			MSDmg = char5PsyDefense + char5MSlevel;
			if (char5.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char5.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char5.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char5.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char5.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char5.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char5.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char5.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage5pyroblastMulti() {
			PBDmg = char5PsyPower + 2 * char5PBlevel + 3;
			if (char5.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char5.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char5.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char5.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char5.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char5.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char5.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char5.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char5._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage5feedbackMulti() {
			if (char5Damage <= char5FBmax) {
				FBDmg = char5Damage;
			} else {
				FBDmg = char5FBmax;
			}
			if (char5.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char5Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char5.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char5Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char5.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char5Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char5.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char5Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char5.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char5Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char5.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char5Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char5.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char5Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char5.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char5Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage7mindblastMulti() {
			MBDmg = char7PsyPower + char7MBlevel;
			if (char7.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char7.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char7.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char7.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char7.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char7.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char7.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char7.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char7._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage7mindshieldMulti() {
			MSDmg = char7PsyDefense + char7MSlevel;
			if (char7.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char7.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char7.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char7.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char7.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char7.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char7.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char7.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage7pyroblastMulti() {
			PBDmg = char7PsyPower + 2 * char7PBlevel + 3;
			if (char7.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char7.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char7.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char7.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char7.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char7.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char7.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char7.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char7._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage7feedbackMulti() {
			if (char7Damage <= char7FBmax) {
				FBDmg = char7Damage;
			} else {
				FBDmg = char7FBmax;
			}
			if (char7.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char7Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char7.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char7Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char7.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char7Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char7.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char7Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char7.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char7Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char7.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char7Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char7.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char7Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char7.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char7Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage9mindblastMulti() {
			MBDmg = char9PsyPower + char9MBlevel;
			if (char9.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char9.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char9.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char9.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char9.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char9.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char9.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char9.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char9._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage9mindshieldMulti() {
			MSDmg = char9PsyDefense + char9MSlevel;
			if (char9.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char9.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char9.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char9.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char9.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char9.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char9.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char9.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage9pyroblastMulti() {
			PBDmg = char9PsyPower + 2 * char9PBlevel + 3;
			if (char9.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char9.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char9.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char9.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char9.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char9.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char9.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char9.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char9._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage9feedbackMulti() {
			if (char9Damage <= char9FBmax) {
				FBDmg = char9Damage;
			} else {
				FBDmg = char9FBmax;
			}
			if (char9.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char9Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char9.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char9Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char9.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char9Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char9.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char9Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char9.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char9Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char9.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char9Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char9.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char9Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char9.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char9Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage11mindblastMulti() {
			MBDmg = char11PsyPower + char11MBlevel;
			if (char11.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char11.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char11.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char11.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char11.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char11.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char11.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char11.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char11._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage11mindshieldMulti() {
			MSDmg = char11PsyDefense + char11MSlevel;
			if (char11.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char11.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char11.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char11.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char11.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char11.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char11.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char11.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage11pyroblastMulti() {
			PBDmg = char11PsyPower + 2 * char11PBlevel + 3;
			if (char11.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char11.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char11.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char11.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char11.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char11.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char11.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char11.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char11._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage11feedbackMulti() {
			if (char11Damage <= char11FBmax) {
				FBDmg = char11Damage;
			} else {
				FBDmg = char11FBmax;
			}
			if (char11.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char11Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char11.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char11Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char11.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char11Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char11.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char11Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char11.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char11Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char11.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char11Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char11.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char11Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char11.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char11Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage13mindblastMulti() {
			MBDmg = char13PsyPower + char13MBlevel;
			if (char13.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char13.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char13.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char13.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char13.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char13.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char13.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char13.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char13._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage13mindshieldMulti() {
			MSDmg = char13PsyDefense + char13MSlevel;
			if (char13.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char13.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char13.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char13.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char13.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char13.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char13.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char13.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage13pyroblastMulti() {
			PBDmg = char13PsyPower + 2 * char13PBlevel + 3;
			if (char13.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char13.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char13.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char13.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char13.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char13.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char13.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char13.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char13._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage13feedbackMulti() {
			if (char13Damage <= char13FBmax) {
				FBDmg = char13Damage;
			} else {
				FBDmg = char13FBmax;
			}
			if (char13.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char13Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char13.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char13Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char13.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char13Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char13.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char13Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char13.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char13Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char13.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char13Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char13.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char13Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char13.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char13Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage15mindblastMulti() {
			MBDmg = char15PsyPower + char15MBlevel;
			if (char15.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char2._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char2Damage += MBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char15.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char4._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char4Damage += MBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char15.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char6._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char6Damage += MBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char15.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char8._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char8Damage += MBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char15.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char10._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char10Damage += MBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char15.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char12._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char12Damage += MBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char15.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char14._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char14Damage += MBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char15.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char16._rotation == char15._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char16Damage += MBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage15mindshieldMulti() {
			MSDmg = char15PsyDefense + char15MSlevel;
			if (char15.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char1Damage -= MSDmg;
				if (char1Damage < 0) {
					char1Damage = 0;
				}
			}
			if (char15.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char3Damage -= MSDmg;
				if (char3Damage < 0) {
					char3Damage = 0;
				}
			}
			if (char15.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char5Damage -= MSDmg;
				if (char5Damage < 0) {
					char5Damage = 0;
				}
			}
			if (char15.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char7Damage -= MSDmg;
				if (char7Damage < 0) {
					char7Damage = 0;
				}
			}
			if (char15.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char9Damage -= MSDmg;
				if (char9Damage < 0) {
					char9Damage = 0;
				}
			}
			if (char15.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char11Damage -= MSDmg;
				if (char11Damage < 0) {
					char11Damage = 0;
				}
			}
			if (char15.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char13Damage -= MSDmg;
				if (char13Damage < 0) {
					char13Damage = 0;
				}
			}
			if (char15.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char15Damage -= MSDmg;
				if (char15Damage < 0) {
					char15Damage = 0;
				}
			}
		}
		function giveDamage15pyroblastMulti() {
			PBDmg = char15PsyPower + 2 * char15PBlevel + 3;
			if (char15.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char2._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char2Damage += PBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char15.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char4._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char4Damage += PBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char15.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char6._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char6Damage += PBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char15.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char8._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char8Damage += PBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char15.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char10._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char10Damage += PBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char15.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char12._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char12Damage += PBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char15.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char14._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char14Damage += PBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char15.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char16._rotation == char15._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char16Damage += PBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage15feedbackMulti() {
			if (char15Damage <= char15FBmax) {
				FBDmg = char15Damage;
			} else {
				FBDmg = char15FBmax;
			}
			if (char15.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char2Damage += FBDmg;
				char15Damage -= FBDmg;
				char2.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char15.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char4Damage += FBDmg;
				char15Damage -= FBDmg;
				char4.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char15.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char6Damage += FBDmg;
				char15Damage -= FBDmg;
				char6.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char15.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char8Damage += FBDmg;
				char15Damage -= FBDmg;
				char8.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char15.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char10Damage += FBDmg;
				char15Damage -= FBDmg;
				char10.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char15.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char12Damage += FBDmg;
				char15Damage -= FBDmg;
				char12.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char15.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char14Damage += FBDmg;
				char15Damage -= FBDmg;
				char14.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char15.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char16Damage += FBDmg;
				char15Damage -= FBDmg;
				char16.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage2mindblastMulti() {
			MBDmg = char2PsyPower + char2MBlevel;
			if (char2.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char2.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char2.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char2.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char2.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char2.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char2.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char2.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char2._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage2mindshieldMulti() {
			MSDmg = char2PsyDefense + char2MSlevel;
			if (char2.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char2.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char2.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char2.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char2.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char2.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char2.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char2.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage2pyroblastMulti() {
			PBDmg = char2PsyPower + 2 * char2PBlevel + 3;
			if (char2.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char2.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char2.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char2.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char2.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char2.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char2.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char2.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char2._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage2feedbackMulti() {
			if (char2Damage <= char2FBmax) {
				FBDmg = char2Damage;
			} else {
				FBDmg = char2FBmax;
			}
			if (char2.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char2Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char2.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char2Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char2.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char2Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char2.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char2Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char2.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char2Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char2.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char2Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char2.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char2Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char2.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char2Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage4mindblastMulti() {
			MBDmg = char4PsyPower + char4MBlevel;
			if (char4.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char4.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char4.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char4.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char4.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char4.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char4.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char4.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char4._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage4mindshieldMulti() {
			MSDmg = char4PsyDefense + char4MSlevel;
			if (char4.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char4.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char4.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char4.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char4.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char4.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char4.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char4.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage4pyroblastMulti() {
			PBDmg = char4PsyPower + 2 * char4PBlevel + 3;
			if (char4.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char4.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char4.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char4.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char4.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char4.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char4.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char4.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char4._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage4feedbackMulti() {
			if (char4Damage <= char4FBmax) {
				FBDmg = char4Damage;
			} else {
				FBDmg = char4FBmax;
			}
			if (char4.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char4Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char4.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char4Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char4.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char4Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char4.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char4Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char4.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char4Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char4.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char4Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char4.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char4Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char4.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char4Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage6mindblastMulti() {
			MBDmg = char6PsyPower + char6MBlevel;
			if (char6.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char6.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char6.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char6.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char6.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char6.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char6.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char6.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char6._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage6mindshieldMulti() {
			MSDmg = char6PsyDefense + char6MSlevel;
			if (char6.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char6.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char6.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char6.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char6.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char6.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char6.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char6.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage6pyroblastMulti() {
			PBDmg = char6PsyPower + 2 * char6PBlevel + 3;
			if (char6.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char6.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char6.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char6.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char6.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char6.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char6.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char6.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char6._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage6feedbackMulti() {
			if (char6Damage <= char6FBmax) {
				FBDmg = char6Damage;
			} else {
				FBDmg = char6FBmax;
			}
			if (char6.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char6Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char6.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char6Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char6.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char6Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char6.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char6Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char6.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char6Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char6.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char6Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char6.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char6Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char6.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char6Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage8mindblastMulti() {
			MBDmg = char8PsyPower + char8MBlevel;
			if (char8.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char8.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char8.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char8.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char8.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char8.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char8.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char8.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char8._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage8mindshieldMulti() {
			MSDmg = char8PsyDefense + char8MSlevel;
			if (char8.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char8.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char8.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char8.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char8.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char8.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char8.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char8.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage8pyroblastMulti() {
			PBDmg = char8PsyPower + 2 * char8PBlevel + 3;
			if (char8.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char8.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char8.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char8.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char8.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char8.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char8.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char8.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char8._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage8feedbackMulti() {
			if (char8Damage <= char8FBmax) {
				FBDmg = char8Damage;
			} else {
				FBDmg = char8FBmax;
			}
			if (char8.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char8Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char8.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char8Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char8.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char8Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char8.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char8Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char8.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char8Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char8.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char8Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char8.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char8Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char8.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char8Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage10mindblastMulti() {
			MBDmg = char10PsyPower + char10MBlevel;
			if (char10.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char10.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char10.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char10.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char10.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char10.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char10.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char10.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char10._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage10mindshieldMulti() {
			MSDmg = char10PsyDefense + char10MSlevel;
			if (char10.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char10.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char10.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char10.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char10.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char10.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char10.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char10.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage10pyroblastMulti() {
			PBDmg = char10PsyPower + 2 * char10PBlevel + 3;
			if (char10.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char10.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char10.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char10.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char10.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char10.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char10.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char10.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char10._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage10feedbackMulti() {
			if (char10Damage <= char10FBmax) {
				FBDmg = char10Damage;
			} else {
				FBDmg = char10FBmax;
			}
			if (char10.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char10Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char10.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char10Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char10.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char10Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char10.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char10Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char10.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char10Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char10.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char10Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char10.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char10Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char10.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char10Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage12mindblastMulti() {
			MBDmg = char12PsyPower + char12MBlevel;
			if (char12.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char12.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char12.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char12.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char12.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char12.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char12.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char12.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char12._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage12mindshieldMulti() {
			MSDmg = char12PsyDefense + char12MSlevel;
			if (char12.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char12.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char12.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char12.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char12.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char12.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char12.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char12.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage12pyroblastMulti() {
			PBDmg = char12PsyPower + 2 * char12PBlevel + 3;
			if (char12.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char12.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char12.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char12.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char12.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char12.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char12.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char12.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char12._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage12feedbackMulti() {
			if (char12Damage <= char12FBmax) {
				FBDmg = char12Damage;
			} else {
				FBDmg = char12FBmax;
			}
			if (char12.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char12Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char12.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char12Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char12.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char12Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char12.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char12Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char12.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char12Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char12.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char12Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char12.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char12Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char12.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char12Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage14mindblastMulti() {
			MBDmg = char14PsyPower + char14MBlevel;
			if (char14.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char14.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char14.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char14.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char14.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char14.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char14.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char14.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char14._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage14mindshieldMulti() {
			MSDmg = char14PsyDefense + char14MSlevel;
			if (char14.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char14.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char14.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char14.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char14.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char14.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char14.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char14.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage14pyroblastMulti() {
			PBDmg = char14PsyPower + 2 * char14PBlevel + 3;
			if (char14.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char14.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char14.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char14.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char14.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char14.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char14.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char14.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char14._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage14feedbackMulti() {
			if (char14Damage <= char14FBmax) {
				FBDmg = char14Damage;
			} else {
				FBDmg = char14FBmax;
			}
			if (char14.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char14Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char14.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char14Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char14.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char14Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char14.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char14Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char14.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char14Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char14.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char14Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char14.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char14Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char14.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char14Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function giveDamage16mindblastMulti() {
			MBDmg = char16PsyPower + char16MBlevel;
			if (char16.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char1._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char1Damage += MBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char16.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char3._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char3Damage += MBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char16.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char5._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char5Damage += MBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char16.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char7._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char7Damage += MBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char16.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char9._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char9Damage += MBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char16.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char11._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char11Damage += MBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char16.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char13._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char13Damage += MBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			if (char16.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + MBDmg + ' damage with Mind Blast!';
				if (char15._rotation == char16._rotation) {
					MBDmg *= 1.5;
					MBDmg = Math.round(MBDmg);
					display = charName + ' deals ' + MBDmg + ' backstab damage with Mind Blast!';
				}
				char15Damage += MBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = MBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage16mindshieldMulti() {
			MSDmg = char16PsyDefense + char16MSlevel;
			if (char16.reticle.hitTest(char2._x, char2._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char2Damage -= MSDmg;
				if (char2Damage < 0) {
					char2Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char4._x, char4._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char4Damage -= MSDmg;
				if (char4Damage < 0) {
					char4Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char6._x, char6._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char6Damage -= MSDmg;
				if (char6Damage < 0) {
					char6Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char8._x, char8._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char8Damage -= MSDmg;
				if (char8Damage < 0) {
					char8Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char10._x, char10._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char10Damage -= MSDmg;
				if (char10Damage < 0) {
					char10Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char12._x, char12._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char12Damage -= MSDmg;
				if (char12Damage < 0) {
					char12Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char14._x, char14._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char14Damage -= MSDmg;
				if (char14Damage < 0) {
					char14Damage = 0;
				}
			}
			if (char16.reticle.hitTest(char16._x, char16._y, true)) {
				display = charName + ' boosts defense by ' + MSDmg + ' with Mind Shield!';
				char16Damage -= MSDmg;
				if (char16Damage < 0) {
					char16Damage = 0;
				}
			}
		}
		function giveDamage16pyroblastMulti() {
			PBDmg = char16PsyPower + 2 * char16PBlevel + 3;
			if (char16.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char1._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char1Damage += PBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char16.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char3._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char3Damage += PBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char16.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char5._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char5Damage += PBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char16.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char7._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char7Damage += PBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char16.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char9._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char9Damage += PBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char16.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char11._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char11Damage += PBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char16.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char13._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char13Damage += PBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			if (char16.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' deals ' + PBDmg + ' damage with Pyro Blast!';
				if (char15._rotation == char16._rotation) {
					PBDmg *= 1.5;
					PBDmg = Math.round(PBDmg);
					display = charName + ' deals ' + PBDmg + ' backstab damage with Pyro Blast!';
				}
				char15Damage += PBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = PBDmg;
			}
			checkDeathMulti();
		}
		function giveDamage16feedbackMulti() {
			if (char16Damage <= char16FBmax) {
				FBDmg = char16Damage;
			} else {
				FBDmg = char16FBmax;
			}
			if (char16.reticle.hitTest(char1._x, char1._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char1Damage += FBDmg;
				char16Damage -= FBDmg;
				char1.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char16.reticle.hitTest(char3._x, char3._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char3Damage += FBDmg;
				char16Damage -= FBDmg;
				char3.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char16.reticle.hitTest(char5._x, char5._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char5Damage += FBDmg;
				char16Damage -= FBDmg;
				char5.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char16.reticle.hitTest(char7._x, char7._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char7Damage += FBDmg;
				char16Damage -= FBDmg;
				char7.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char16.reticle.hitTest(char9._x, char9._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char9Damage += FBDmg;
				char16Damage -= FBDmg;
				char9.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char16.reticle.hitTest(char11._x, char11._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char11Damage += FBDmg;
				char16Damage -= FBDmg;
				char11.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char16.reticle.hitTest(char13._x, char13._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char13Damage += FBDmg;
				char16Damage -= FBDmg;
				char13.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			if (char16.reticle.hitTest(char15._x, char15._y, true)) {
				display = charName + ' returns ' + FBDmg + ' damage with Feedback!';
				char15Damage += FBDmg;
				char16Damage -= FBDmg;
				char15.gotoAndPlay(10);
				damageDisplay = FBDmg;
			}
			displayHPMulti();
			checkDeathMulti();
		}
		function attackMulti() {
			if (chosenAttack == 'mindblast') {
				charAtkDrain = mindBlastDrain;
			}
			if (chosenAttack == 'pyroblast') {
				charAtkDrain = pyroBlastDrain;
			}
			if (chosenAttack == 'mindshield') {
				charAtkDrain = mindShieldDrain;
			}
			if (chosenAttack == 'feedback') {
				charAtkDrain = feedbackDrain;
			}
			if (chosenAttack == 'melee') {
				charAtkDrain = meleeDrain;
			}
			if (moveTurn == 1) {
				if (char1._rotation == 0 && subCollision.hitTest(char1._x, char1._y + 30, true)) {
					blocked = true;
				}
				if (char1._rotation == -90 && subCollision.hitTest(char1._x + 30, char1._y, true)) {
					blocked = true;
				}
				if (char1._rotation == 180 && subCollision.hitTest(char1._x, char1._y - 30, true)) {
					blocked = true;
				}
				if (char1._rotation == 90 && subCollision.hitTest(char1._x - 30, char1._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char1.gotoAndStop(6);
						giveDamage1mindblastMulti();
						char1Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char1.gotoAndStop(7);
						giveDamage1mindshieldMulti();
						char1Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char1.gotoAndStop(8);
							giveDamage1pyroblastMulti();
							char1Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char1.gotoAndStop(9);
							giveDamage1feedbackMulti();
							char1Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 2) {
				if (char2._rotation == 0 && subCollision.hitTest(char2._x, char2._y + 30, true)) {
					blocked = true;
				}
				if (char2._rotation == -90 && subCollision.hitTest(char2._x + 30, char2._y, true)) {
					blocked = true;
				}
				if (char2._rotation == 180 && subCollision.hitTest(char2._x, char2._y - 30, true)) {
					blocked = true;
				}
				if (char2._rotation == 90 && subCollision.hitTest(char2._x - 30, char2._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char2.gotoAndStop(6);
						giveDamage2mindblastMulti();
						char2Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char2.gotoAndStop(7);
						giveDamage2mindshieldMulti();
						char2Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char2.gotoAndStop(8);
							giveDamage2pyroblastMulti();
							char2Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char2.gotoAndStop(9);
							giveDamage2feedbackMulti();
							char2Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 3) {
				if (char3._rotation == 0 && subCollision.hitTest(char3._x, char3._y + 30, true)) {
					blocked = true;
				}
				if (char3._rotation == -90 && subCollision.hitTest(char3._x + 30, char3._y, true)) {
					blocked = true;
				}
				if (char3._rotation == 180 && subCollision.hitTest(char3._x, char3._y - 30, true)) {
					blocked = true;
				}
				if (char3._rotation == 90 && subCollision.hitTest(char3._x - 30, char3._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char3.gotoAndStop(6);
						giveDamage3mindblastMulti();
						char3Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char3.gotoAndStop(7);
						giveDamage3mindshieldMulti();
						char3Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char3.gotoAndStop(8);
							giveDamage3pyroblastMulti();
							char3Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char3.gotoAndStop(9);
							giveDamage3feedbackMulti();
							char3Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 4) {
				if (char4._rotation == 0 && subCollision.hitTest(char4._x, char4._y + 30, true)) {
					blocked = true;
				}
				if (char4._rotation == -90 && subCollision.hitTest(char4._x + 30, char4._y, true)) {
					blocked = true;
				}
				if (char4._rotation == 180 && subCollision.hitTest(char4._x, char4._y - 30, true)) {
					blocked = true;
				}
				if (char4._rotation == 90 && subCollision.hitTest(char4._x - 30, char4._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char4.gotoAndStop(6);
						giveDamage4mindblastMulti();
						char4Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char4.gotoAndStop(7);
						giveDamage4mindshieldMulti();
						char4Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char4.gotoAndStop(8);
							giveDamage4pyroblastMulti();
							char4Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char4.gotoAndStop(9);
							giveDamage4feedbackMulti();
							char4Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 5) {
				if (char5._rotation == 0 && subCollision.hitTest(char5._x, char5._y + 30, true)) {
					blocked = true;
				}
				if (char5._rotation == -90 && subCollision.hitTest(char5._x + 30, char5._y, true)) {
					blocked = true;
				}
				if (char5._rotation == 180 && subCollision.hitTest(char5._x, char5._y - 30, true)) {
					blocked = true;
				}
				if (char5._rotation == 90 && subCollision.hitTest(char5._x - 30, char5._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char5.gotoAndStop(6);
						giveDamage5mindblastMulti();
						char5Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char5.gotoAndStop(7);
						giveDamage5mindshieldMulti();
						char5Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char5.gotoAndStop(8);
							giveDamage5pyroblastMulti();
							char5Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char5.gotoAndStop(9);
							giveDamage5feedbackMulti();
							char5Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 6) {
				if (char6._rotation == 0 && subCollision.hitTest(char6._x, char6._y + 30, true)) {
					blocked = true;
				}
				if (char6._rotation == -90 && subCollision.hitTest(char6._x + 30, char6._y, true)) {
					blocked = true;
				}
				if (char6._rotation == 180 && subCollision.hitTest(char6._x, char6._y - 30, true)) {
					blocked = true;
				}
				if (char6._rotation == 90 && subCollision.hitTest(char6._x - 30, char6._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char6.gotoAndStop(6);
						giveDamage6mindblastMulti();
						char6Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char6.gotoAndStop(7);
						giveDamage6mindshieldMulti();
						char6Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char6.gotoAndStop(8);
							giveDamage6pyroblastMulti();
							char6Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char6.gotoAndStop(9);
							giveDamage6feedbackMulti();
							char6Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 7) {
				if (char7._rotation == 0 && subCollision.hitTest(char7._x, char7._y + 30, true)) {
					blocked = true;
				}
				if (char7._rotation == -90 && subCollision.hitTest(char7._x + 30, char7._y, true)) {
					blocked = true;
				}
				if (char7._rotation == 180 && subCollision.hitTest(char7._x, char7._y - 30, true)) {
					blocked = true;
				}
				if (char7._rotation == 90 && subCollision.hitTest(char7._x - 30, char7._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char7.gotoAndStop(6);
						giveDamage7mindblastMulti();
						char7Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char7.gotoAndStop(7);
						giveDamage7mindshieldMulti();
						char7Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char7.gotoAndStop(8);
							giveDamage7pyroblastMulti();
							char7Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char7.gotoAndStop(9);
							giveDamage7feedbackMulti();
							char7Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 8) {
				if (char8._rotation == 0 && subCollision.hitTest(char8._x, char8._y + 30, true)) {
					blocked = true;
				}
				if (char8._rotation == -90 && subCollision.hitTest(char8._x + 30, char8._y, true)) {
					blocked = true;
				}
				if (char8._rotation == 180 && subCollision.hitTest(char8._x, char8._y - 30, true)) {
					blocked = true;
				}
				if (char8._rotation == 90 && subCollision.hitTest(char8._x - 30, char8._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char8.gotoAndStop(6);
						giveDamage8mindblastMulti();
						char8Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char8.gotoAndStop(7);
						giveDamage8mindshieldMulti();
						char8Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char8.gotoAndStop(8);
							giveDamage8pyroblastMulti();
							char8Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char8.gotoAndStop(9);
							giveDamage8feedbackMulti();
							char8Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 9) {
				if (char9._rotation == 0 && subCollision.hitTest(char9._x, char9._y + 30, true)) {
					blocked = true;
				}
				if (char9._rotation == -90 && subCollision.hitTest(char9._x + 30, char9._y, true)) {
					blocked = true;
				}
				if (char9._rotation == 180 && subCollision.hitTest(char9._x, char9._y - 30, true)) {
					blocked = true;
				}
				if (char9._rotation == 90 && subCollision.hitTest(char9._x - 30, char9._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char9.gotoAndStop(6);
						giveDamage9mindblastMulti();
						char9Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char9.gotoAndStop(7);
						giveDamage9mindshieldMulti();
						char9Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char9.gotoAndStop(8);
							giveDamage9pyroblastMulti();
							char9Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char9.gotoAndStop(9);
							giveDamage9feedbackMulti();
							char9Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 10) {
				if (char10._rotation == 0 && subCollision.hitTest(char10._x, char10._y + 30, true)) {
					blocked = true;
				}
				if (char10._rotation == -90 && subCollision.hitTest(char10._x + 30, char10._y, true)) {
					blocked = true;
				}
				if (char10._rotation == 180 && subCollision.hitTest(char10._x, char10._y - 30, true)) {
					blocked = true;
				}
				if (char10._rotation == 90 && subCollision.hitTest(char10._x - 30, char10._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char10.gotoAndStop(6);
						giveDamage10mindblastMulti();
						char10Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char10.gotoAndStop(7);
						giveDamage10mindshieldMulti();
						char10Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char10.gotoAndStop(8);
							giveDamage10pyroblastMulti();
							char10Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char10.gotoAndStop(9);
							giveDamage10feedbackMulti();
							char10Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 11) {
				if (char11._rotation == 0 && subCollision.hitTest(char11._x, char11._y + 30, true)) {
					blocked = true;
				}
				if (char11._rotation == -90 && subCollision.hitTest(char11._x + 30, char11._y, true)) {
					blocked = true;
				}
				if (char11._rotation == 180 && subCollision.hitTest(char11._x, char11._y - 30, true)) {
					blocked = true;
				}
				if (char11._rotation == 90 && subCollision.hitTest(char11._x - 30, char11._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char11.gotoAndStop(6);
						giveDamage11mindblastMulti();
						char11Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char11.gotoAndStop(7);
						giveDamage11mindshieldMulti();
						char11Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char11.gotoAndStop(8);
							giveDamage11pyroblastMulti();
							char11Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char11.gotoAndStop(9);
							giveDamage11feedbackMulti();
							char11Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 12) {
				if (char12._rotation == 0 && subCollision.hitTest(char12._x, char12._y + 30, true)) {
					blocked = true;
				}
				if (char12._rotation == -90 && subCollision.hitTest(char12._x + 30, char12._y, true)) {
					blocked = true;
				}
				if (char12._rotation == 180 && subCollision.hitTest(char12._x, char12._y - 30, true)) {
					blocked = true;
				}
				if (char12._rotation == 90 && subCollision.hitTest(char12._x - 30, char12._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char12.gotoAndStop(6);
						giveDamage12mindblastMulti();
						char12Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char12.gotoAndStop(7);
						giveDamage12mindshieldMulti();
						char12Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char12.gotoAndStop(8);
							giveDamage12pyroblastMulti();
							char12Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char12.gotoAndStop(9);
							giveDamage12feedbackMulti();
							char12Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 13) {
				if (char13._rotation == 0 && subCollision.hitTest(char13._x, char13._y + 30, true)) {
					blocked = true;
				}
				if (char13._rotation == -90 && subCollision.hitTest(char13._x + 30, char13._y, true)) {
					blocked = true;
				}
				if (char13._rotation == 180 && subCollision.hitTest(char13._x, char13._y - 30, true)) {
					blocked = true;
				}
				if (char13._rotation == 90 && subCollision.hitTest(char13._x - 30, char13._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char13.gotoAndStop(6);
						giveDamage13mindblastMulti();
						char13Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char13.gotoAndStop(7);
						giveDamage13mindshieldMulti();
						char13Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char13.gotoAndStop(8);
							giveDamage13pyroblastMulti();
							char13Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char13.gotoAndStop(9);
							giveDamage13feedbackMulti();
							char13Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 14) {
				if (char14._rotation == 0 && subCollision.hitTest(char14._x, char14._y + 30, true)) {
					blocked = true;
				}
				if (char14._rotation == -90 && subCollision.hitTest(char14._x + 30, char14._y, true)) {
					blocked = true;
				}
				if (char14._rotation == 180 && subCollision.hitTest(char14._x, char14._y - 30, true)) {
					blocked = true;
				}
				if (char14._rotation == 90 && subCollision.hitTest(char14._x - 30, char14._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char14.gotoAndStop(6);
						giveDamage14mindblastMulti();
						char14Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char14.gotoAndStop(7);
						giveDamage14mindshieldMulti();
						char14Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char14.gotoAndStop(8);
							giveDamage14pyroblastMulti();
							char14Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char14.gotoAndStop(9);
							giveDamage14feedbackMulti();
							char14Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 15) {
				if (char15._rotation == 0 && subCollision.hitTest(char15._x, char15._y + 30, true)) {
					blocked = true;
				}
				if (char15._rotation == -90 && subCollision.hitTest(char15._x + 30, char15._y, true)) {
					blocked = true;
				}
				if (char15._rotation == 180 && subCollision.hitTest(char15._x, char15._y - 30, true)) {
					blocked = true;
				}
				if (char15._rotation == 90 && subCollision.hitTest(char15._x - 30, char15._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char15.gotoAndStop(6);
						giveDamage15mindblastMulti();
						char15Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char15.gotoAndStop(7);
						giveDamage15mindshieldMulti();
						char15Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char15.gotoAndStop(8);
							giveDamage15pyroblastMulti();
							char15Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char15.gotoAndStop(9);
							giveDamage15feedbackMulti();
							char15Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
			if (moveTurn == 16) {
				if (char16._rotation == 0 && subCollision.hitTest(char16._x, char16._y + 30, true)) {
					blocked = true;
				}
				if (char16._rotation == -90 && subCollision.hitTest(char16._x + 30, char16._y, true)) {
					blocked = true;
				}
				if (char16._rotation == 180 && subCollision.hitTest(char16._x, char16._y - 30, true)) {
					blocked = true;
				}
				if (char16._rotation == 90 && subCollision.hitTest(char16._x - 30, char16._y, true)) {
					blocked = true;
				}
				if (charPsP < charAtkDrain) {
					display = charName + ' needs more Psy Points.';
				}
				if (charPsP >= charAtkDrain) {
					display = charName + ' misses!';
					if (chosenAttack == 'mindblast') {
						char16.gotoAndStop(6);
						giveDamage16mindblastMulti();
						char16Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'mindshield') {
						char16.gotoAndStop(7);
						giveDamage16mindshieldMulti();
						char16Drain += charAtkDrain;
						displayPsPMulti();
						attacked = 1;
					}
					if (chosenAttack == 'pyroblast') {
						if (blocked == false) {
							char16.gotoAndStop(8);
							giveDamage16pyroblastMulti();
							char16Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
					if (chosenAttack == 'feedback') {
						if (blocked == false) {
							char16.gotoAndStop(9);
							giveDamage16feedbackMulti();
							char16Drain += charAtkDrain;
							displayPsPMulti();
							attacked = 1;
						}
						if (blocked == true) {
							display = 'Cannot attack through walls!';
							blocked = false;
						}
					}
				}
			}
		}
		function checkDeathMulti() {
			if (char1Damage >= MaxHP1) {
				char1Dead = true;
				char1.gotoAndStop(4);
			}
			if (char2Damage >= MaxHP2) {
				char2Dead = true;
				char2.gotoAndStop(4);
			}
			if (char3Damage >= MaxHP3) {
				char3Dead = true;
				char3.gotoAndStop(4);
			}
			if (char4Damage >= MaxHP4) {
				char4Dead = true;
				char4.gotoAndStop(4);
			}
			if (char5Damage >= MaxHP5) {
				char5Dead = true;
				char5.gotoAndStop(4);
			}
			if (char6Damage >= MaxHP6) {
				char6Dead = true;
				char6.gotoAndStop(4);
			}
			if (char7Damage >= MaxHP7) {
				char7Dead = true;
				char7.gotoAndStop(4);
			}
			if (char8Damage >= MaxHP8) {
				char8Dead = true;
				char8.gotoAndStop(4);
			}
			if (char9Damage >= MaxHP9) {
				char9Dead = true;
				char9.gotoAndStop(4);
			}
			if (char10Damage >= MaxHP10) {
				char10Dead = true;
				char10.gotoAndStop(4);
			}
			if (char11Damage >= MaxHP11) {
				char11Dead = true;
				char11.gotoAndStop(4);
			}
			if (char12Damage >= MaxHP12) {
				char12Dead = true;
				char12.gotoAndStop(4);
			}
			if (char13Damage >= MaxHP13) {
				char13Dead = true;
				char13.gotoAndStop(4);
			}
			if (char14Damage >= MaxHP14) {
				char14Dead = true;
				char14.gotoAndStop(4);
			}
			if (char15Damage >= MaxHP15) {
				char15Dead = true;
				char15.gotoAndStop(4);
			}
			if (char16Damage >= MaxHP16) {
				char16Dead = true;
				char16.gotoAndStop(4);
			}
			checkedForDead = true;
		}
		function undoMoveMulti() {
			if (moveTurn == 1) {
				char1._rotation = 0;
				char1._x = startX;
				char1._y = startY;
				steps = 0;
			}
			if (moveTurn == 2) {
				char2._rotation = 180;
				char2._x = startX;
				char2._y = startY;
				steps = 0;
			}
			if (moveTurn == 3) {
				char3._rotation = 0;
				char3._x = startX;
				char3._y = startY;
				steps = 0;
			}
			if (moveTurn == 4) {
				char4._rotation = 180;
				char4._x = startX;
				char4._y = startY;
				steps = 0;
			}
			if (moveTurn == 5) {
				char5._rotation = 0;
				char5._x = startX;
				char5._y = startY;
				steps = 0;
			}
			if (moveTurn == 6) {
				char6._rotation = 180;
				char6._x = startX;
				char6._y = startY;
				steps = 0;
			}
			if (moveTurn == 7) {
				char7._rotation = 0;
				char7._x = startX;
				char7._y = startY;
				steps = 0;
			}
			if (moveTurn == 8) {
				char8._rotation = 180;
				char8._x = startX;
				char8._y = startY;
				steps = 0;
			}
			if (moveTurn == 9) {
				char9._rotation = 0;
				char9._x = startX;
				char9._y = startY;
				steps = 0;
			}
			if (moveTurn == 10) {
				char10._rotation = 180;
				char10._x = startX;
				char10._y = startY;
				steps = 0;
			}
			if (moveTurn == 11) {
				char11._rotation = 0;
				char11._x = startX;
				char11._y = startY;
				steps = 0;
			}
			if (moveTurn == 12) {
				char12._rotation = 180;
				char12._x = startX;
				char12._y = startY;
				steps = 0;
			}
			if (moveTurn == 13) {
				char13._rotation = 0;
				char13._x = startX;
				char13._y = startY;
				steps = 0;
			}
			if (moveTurn == 14) {
				char14._rotation = 180;
				char14._x = startX;
				char14._y = startY;
				steps = 0;
			}
			if (moveTurn == 15) {
				char15._rotation = 0;
				char15._x = startX;
				char15._y = startY;
				steps = 0;
			}
			if (moveTurn == 16) {
				char16._rotation = 180;
				char16._x = startX;
				char16._y = startY;
				steps = 0;
			}
		}
		turnType = 'Staggered';
		teamSize = 5;
		mapChosen = '';
		MultiMenu.MultiMenuMid.SettingsDisplay.done._visible = false;
		multiChar1Dead = false;
		multiChar2Dead = false;
		multiChar3Dead = false;
		multiChar4Dead = false;
		multiChar5Dead = false;
		multiChar6Dead = false;
		multiChar7Dead = false;
		multiChar8Dead = false;
		multiChar9Dead = false;
		multiChar10Dead = false;
		multiChar11Dead = false;
		multiChar12Dead = false;
		multiChar13Dead = false;
		multiChar14Dead = false;
		multiChar15Dead = false;
		multiChar16Dead = false;
	}
	movieClip 3635	{
	}
	movieClip 3638	{
	}
	movieClip 3641	{
	}
	movieClip 3644	{
	}
	movieClip 3647	{
	}
	movieClip 3650	{
	}
	movieClip 3651	{
	}
	movieClip 3656	{
	}
	movieClip 3659	{
	}
	movieClip 3662	{
	}
	movieClip 3665	{
	}
	movieClip 3668	{
	}
	movieClip 3671	{
	}
	movieClip 3674	{
	}
	movieClip 3677	{
	}
	movieClip 3680	{
	}
	movieClip 3683	{
	}
	movieClip 3686	{
	}
	movieClip 3689	{
	}
	movieClip 3692	{
	}
	movieClip 3695	{
	}
	movieClip 3698	{
	}
	movieClip 3701	{
	}
	movieClip 3704	{
	}
	movieClip 3707	{
	}
	movieClip 3710	{
	}
	movieClip 3713	{
	}
	movieClip 3716	{
	}
	movieClip 3719	{
	}
	movieClip 3726	{
	}
	movieClip 3727	{
	}
	movieClip 3730	{
	}
	movieClip 3731	{
	}
	movieClip 3738	{
	}
	movieClip 3744	{
	}
	movieClip 3747	{
	}
	movieClip 3750	{
	}
	movieClip 3753	{
	}
	movieClip 3756	{
	}
	movieClip 3759	{
	}
	movieClip 3762	{
	}
	movieClip 3768	{
	}
	movieClip 3771	{
	}
	movieClip 3777	{
	}
	movieClip 3783	{
	}
	movieClip 3789	{
	}
	movieClip 3795	{
	}
	movieClip 3796	{
	}
	movieClip 3797	{
	}
	movieClip 3803	{
	}
	movieClip 3809	{
	}
	movieClip 3815	{
	}
	movieClip 3818	{
	}
	movieClip 3821	{
	}
	movieClip 3824	{
	}
	movieClip 3825	{
	}
	movieClip 3826	{
	}
	movieClip 3832	{
	}
	movieClip 3835	{
	}
	movieClip 3838	{
	}
	movieClip 3841	{
	}
	movieClip 3843	{
	}
	movieClip 3850	{
	}
	movieClip 3851	{
	}
	movieClip 3857	{
	}
	movieClip 3858	{
	}
	movieClip 3864	{
	}
	movieClip 3865	{
	}
	movieClip 3868	{
	}
	movieClip 3871	{
	}
	movieClip 3874	{
	}
	movieClip 3877	{
	}
	movieClip 3880	{
	}
	movieClip 3883	{
	}
	movieClip 3886	{
	}
	movieClip 3892	{
	}
	movieClip 3893	{
	}
	movieClip 3899	{
	}
	movieClip 3900	{
	}
	movieClip 3903	{
	}
	movieClip 3906	{
	}
	movieClip 3909	{
	}
	movieClip 3912	{
	}
	movieClip 3915	{
	}
	movieClip 3918	{
	}
	movieClip 3921	{
	}
	movieClip 3927	{
	}
	movieClip 3928	{
	}
	movieClip 3931	{
	}
	movieClip 3934	{
	}
	movieClip 3938	{
	}
	movieClip 3941	{
	}
	movieClip 3944	{
	}
	movieClip 3947	{
	}
	movieClip 3951	{
	}
	movieClip 3952	{
	}
	movieClip 3957	{
	}
	movieClip 3961	{
	}
	movieClip 3964	{
	}
	movieClip 3967	{
	}
	movieClip 3971	{
	}
	movieClip 3974	{
	}
	movieClip 3976	{
	}
	movieClip 3980	{
	}
	movieClip 3983	{
	}
	movieClip 3989	{
	}
	movieClip 3995	{
	}
	movieClip 3998	{
	}
	movieClip 4004	{
	}
	movieClip 4007	{
	}
	movieClip 4013	{
	}
	movieClip 4014	{
	}
	movieClip 4015	{
	}
	movieClip 4018	{
	}
	movieClip 4019	{
	}
	movieClip 4020	{
		frame 1 {
			stop();
		}
	}
	movieClip 4030	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 4031	{
		instance done of movieClip 3256 doneButton {
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuSelect();
				_root.char1type = 'Psy Assassin';
				_root.char2type = 'Psy Assassin';
				_root.char3type = 'Psy Fighter';
				_root.char4type = 'Psy Fighter';
				_root.char5type = 'Psy Healer';
				_root.char6type = 'Psy Healer';
				_root.char7type = 'Shadowling';
				_root.char8type = 'Shadowling';
				_root.char9type = 'Psy Fighter';
				_root.char10type = 'Psy Fighter';
				_root.char11type = 'Psy Healer';
				_root.char12type = 'Psy Healer';
				_root.char13type = 'Shadowling';
				_root.char14type = 'Shadowling';
				_root.char15type = 'Psy Fighter';
				_root.char16type = 'Psy Fighter';
				if (_root.teamSize == 4) {
					_root.char9type = '';
					_root.char10type = '';
					_root.char11type = '';
					_root.char12type = '';
					_root.char13type = '';
					_root.char14type = '';
					_root.char15type = '';
					_root.char16type = '';
				}
				if (_root.teamSize == 5) {
					_root.char11type = '';
					_root.char12type = '';
					_root.char13type = '';
					_root.char14type = '';
					_root.char15type = '';
					_root.char16type = '';
				}
				if (_root.teamSize == 6) {
					_root.char13type = '';
					_root.char14type = '';
					_root.char15type = '';
					_root.char16type = '';
				}
				if (_root.teamSize == 7) {
					_root.char15type = '';
					_root.char16type = '';
				}
				_root.MultiMenu.gotoAndStop(2);
			}
		}
		instance of movieClip 4030	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.gotoAndPlay('GameMenu');
			}
		}
	}
	button 4038 {
		on (press) {
			_root.playMenuClick();
			_root.teamSize = 6;
		}
	}
	button 4042 {
		on (press) {
			_root.playMenuClick();
			_root.turnType = 'Whole Team';
		}
	}
	button 4045 {
		on (press) {
			_root.playMenuClick();
			_root.turnType = 'Staggered';
		}
	}
	button 4048 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Field of Screams';
		}
	}
	button 4051 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Calamity Castle';
		}
	}
	button 4054 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Bridge to Deadsville';
		}
	}
	button 4057 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Balls of Fire';
		}
	}
	button 4060 {
		on (press) {
			_root.playMenuClick();
			_root.teamSize = 5;
		}
	}
	button 4063 {
		on (press) {
			_root.playMenuClick();
			_root.teamSize = 7;
		}
	}
	button 4064 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Rumble in the Streets';
		}
	}
	button 4067 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Special Die-livery';
		}
	}
	button 4068 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Woods of Woe';
		}
	}
	button 4069 {
		on (rollOver) {
			_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
		}
		on (rollOut, dragOut) {
			if (_root.mapChosen == '') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(1);
			}
			if (_root.mapChosen == 'Field of Screams') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(2);
			}
			if (_root.mapChosen == 'Calamity Castle') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(3);
			}
			if (_root.mapChosen == 'Bridge to Deadsville') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(4);
			}
			if (_root.mapChosen == 'Balls of Fire') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(5);
			}
			if (_root.mapChosen == 'Woods of Woe') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(6);
			}
			if (_root.mapChosen == 'Rumble in the Streets') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(7);
			}
			if (_root.mapChosen == 'Golem Maze Massacre') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(8);
			}
			if (_root.mapChosen == 'Special Die-livery') {
				_root.MultiMenu.MultiMenuMid.mapViewer.gotoAndStop(9);
			}
		}
		on (press) {
			_root.playMenuClick();
			_root.mapChosen = 'Golem Maze Massacre';
		}
	}
	button 4070 {
		on (press) {
			_root.playMenuClick();
			_root.teamSize = 4;
		}
	}
	movieClip 4071	{
	}
	movieClip 4075	{
	}
	movieClip 4076	{
	}
	movieClip 4096	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	button 4100 {
		on (release) {
			_root.playMenuSelect();
			_quality = 'HIGH';
		}
	}
	button 4101 {
		on (release) {
			_root.playMenuSelect();
			_quality = 'MEDIUM';
		}
	}
	button 4102 {
		on (release) {
			_root.playMenuSelect();
			_quality = 'LOW';
		}
	}
	button 4103 {
		on (press) {
			_root.musicOn = true;
			_root.playBattleMusic01();
		}
	}
	button 4104 {
		on (press) {
			_root.musicOn = true;
			_root.playBattleMusic02();
		}
	}
	button 4105 {
		on (press) {
			_root.musicOn = true;
			_root.playInfiltrationMusic();
		}
	}
	movieClip 4108	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	button 4109 {
		on (press) {
			_root.musicOn = true;
			_root.playAdventureMusic01();
		}
	}
	button 4110 {
		on (press) {
			_root.musicOn = true;
			_root.playFinalBossMusic();
		}
	}
	movieClip 4113	{
	}
	movieClip 4115	{
	}
	movieClip 4117	{
	}
	movieClip 4119	{
	}
	movieClip 4121	{
	}
	movieClip 4123	{
	}
	movieClip 4125	{
	}
	movieClip 4127	{
	}
	movieClip 4128	{
	}
	movieClip 4129	{
	}
	movieClip 4130	{
		frame 1 {
			stop();
		}
		frame 2 {
			_root.multiMusic = 'battleMusic01';
		}
		instance of movieClip 3594	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuSelect();
				if (_root.mapChosen == 'Field of Screams') {
					_root.gotoAndPlay('multiBattle01setup');
				}
				if (_root.mapChosen == 'Calamity Castle') {
					_root.gotoAndPlay('multiBattle02setup');
				}
				if (_root.mapChosen == 'Bridge to Deadsville') {
					_root.gotoAndPlay('multiBattle03setup');
				}
				if (_root.mapChosen == 'Balls of Fire') {
					_root.gotoAndPlay('multiBattle04setup');
				}
				if (_root.mapChosen == 'Woods of Woe') {
					_root.gotoAndPlay('multiBattle05setup');
				}
				if (_root.mapChosen == 'Rumble in the Streets') {
					_root.gotoAndPlay('multiBattle06setup');
				}
				if (_root.mapChosen == 'Golem Maze Massacre') {
					_root.gotoAndPlay('multiBattle07setup');
				}
				if (_root.mapChosen == 'Special Die-livery') {
					_root.gotoAndPlay('multiBattle08setup');
				}
			}
		}
		instance of movieClip 4030	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.MultiMenu.gotoAndStop(1);
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass1();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass2();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass3();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass4();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass5();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass6();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass7();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass8();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass9();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass10();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass11();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.playMenuClick();
				_root.changeClass12();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.changeClass13();
			}
		}
		instance of movieClip 4096	{
			onClipEvent (press) {
				_root.changeClass14();
			}
		}
		instance of movieClip 4108	{
			onClipEvent (press) {
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
				} else {
					this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
				}
				_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
				_global.Behaviors.Sound.MenuClick.start(0, 1);
				stopAllSounds();
			}
		}
	}
	frame 74 {
		doneWithSettings();
		changedType = false;
	}
	frame 75 {
		stop();
		gotoAndPlay('duelSetup2');
	}
	frame 76 {
		deathMessage1 = 'So it was that ' + mainCharName + '\'s light at last winked out';
		deathMessage2 = 'and with it, the futures of countless others.';
		deathMessage3 = 'Or so it would have been,';
		deathMessage4 = 'had fate not seen fit to intervene...';
	}
	movieClip 4133	{
	}
	movieClip 4136	{
	}
	movieClip 4137	{
		frame 115 {
			stop();
		}
	}
	movieClip 4139	{
	}
	movieClip 4141	{
	}
	movieClip 4143	{
	}
	movieClip 4145	{
	}
	movieClip 4147	{
	}
	button 4148 {
		on (press) {
			_root.playMenuSelect();
			_root.gotoAndPlay('CreateChar');
		}
	}
	movieClip 4152	{
	}
	button 4153 {
		on (press) {
			_root.playMenuSelect();
			_root.gotoAndPlay('SavedGames');
		}
	}
	movieClip 4154	{
		instance of movieClip 4139	{
			onClipEvent (press) {
				_parent.gotoAndStop(640);
			}
		}
		frame 640 {
			stop();
		}
		instance armorGames of movieClip 3533	{
			onClipEvent (release) {
				getURL('http://www.armorgames.com', '_blank');
			}
		}
		instance sinisterDesign of movieClip 4152	{
			onClipEvent (release) {
				getURL('http://www.sinisterdesign.net/', '_blank');
			}
		}
	}
	movieClip 4157	{
		frame 1 {
			_root.playTastidianIntro();
		}
		frame 680 {
			_root.goingtoScene = 'town02B';
			_root.changeScene();
		}
	}
	frame 78 {
		function newGamePlus() {
			mainCharResists = 'none';
			mainCharAttackType1 = 'mindblast';
			mainCharAttackType2 = 'mindshield';
			mainCharAttackType3 = 'pyroblast';
			mainCharAttackType4 = 'feedback';
			mainCharSpeed = 5;
			mainCharDamage = 0;
			mainCharDrain = 0;
			money = 0;
			hyperFocus = false;
			mission1Done = false;
			mission2Done = false;
			mission3Done = false;
			mission4Done = false;
			mission5Done = false;
			mission6Done = false;
			mission7Done = false;
			mission8Done = false;
			mission9Done = false;
			mission10Done = false;
			mission11Done = false;
			mission12Done = false;
			var v2 = 0;
			var v1 = 0;
			beat05A = false;
			beat06A = false;
			if (gameDifficulty !== 'easy') {
				beatGame = 1;
			}
			gotSaw = false;
			gotFlameThrower = false;
			gotCapacitor = false;
			gotGuardGold = false;
			workshopOpened = false;
			gotBlueOrb = false;
			gotOrangeOrb = false;
			gotBlackOrb = false;
			gotWhiteOrb = false;
			gotIndigoOrb = false;
			gotGreenOrb = false;
			gotYellowOrb = false;
			gotRedOrb = false;
			slot1 = 'none';
			slot2 = 'none';
			slot3 = 'none';
			slot5 = 'none';
			slot6 = 'none';
			slot7 = 'none';
			slot8 = 'none';
			darklingDead = true;
			shadowboxerDead = true;
			festusDead = true;
			nivenDead = true;
			flintDead = true;
			helenaDead = true;
			grotiusDead = true;
			anyaDead = true;
			guyDead = true;
			dorgonDead = true;
			jackDead = true;
			lucaDead = true;
			magellanDead = true;
			xerxesDead = true;
			gotDarkling = false;
			gotShadowboxer = false;
			gotFestus = false;
			gotNiven = false;
			gotFlint = false;
			gotHelena = false;
			gotGrotius = false;
			gotAnya = false;
			gotGuy = false;
			gotDorgan = false;
			gotJack = false;
			gotLuca = false;
			gotMagellan = false;
			gotXerxes = false;
			spokeToNarrator = 0;
			spokeToTastidian = 0;
			spokeToSnarl = 0;
			spokeToNiven = 0;
			spokeToJack = 0;
			spokeToFestus = 0;
			spokeToHellion = 0;
			spokeToNelis = 0;
			spokeToNegatus = 0;
			spokeToAnya = 0;
			spokeToGuy = 0;
			spokeToGrotius = 0;
			spokeToFlavin = 0;
			spokeToVagrant = 0;
			spokeToLala = 0;
			spokeToGelf = 0;
			spokeToPiter = 0;
			spokeToDavid = 0;
			openedAccount = false;
			amtInAccount = 0;
			mainCharLeftToLevel = 3;
			formation = 1;
			moneyWon = 0;
			randomBattles = 0;
			darklingMovement = 'flying';
			darklingResists = 'none';
			darklingHP = 21;
			darklingPsP = 20;
			darklingSpeed = 9;
			darklingMBLevel = 1;
			darklingMSLevel = 0;
			darklingPBLevel = 0;
			darklingFBLevel = 0;
			darklingPsyPower = 4;
			darklingPsyDefense = 3;
			darklingAttackType1 = 'mindblast';
			darklingAttackType2 = 'none';
			darklingAttackType3 = 'none';
			darklingAttackType4 = 'none';
			shadowboxerMovement = 'flying';
			shadowboxerResists = 'none';
			shadowboxerHP = 25;
			shadowboxerPsP = 20;
			shadowboxerSpeed = 8;
			shadowboxerMBLevel = 1;
			shadowboxerMSLevel = 0;
			shadowboxerPBLevel = 0;
			shadowboxerFBLevel = 0;
			shadowboxerPsyPower = 5;
			shadowboxerPsyDefense = 3;
			shadowboxerAttackType1 = 'mindblast';
			shadowboxerAttackType2 = 'none';
			shadowboxerAttackType3 = 'none';
			shadowboxerAttackType4 = 'none';
			festusMovement = 'flying';
			festusResists = 'none';
			festusHP = 24;
			festusPsP = 20;
			festusSpeed = 7;
			festusMBLevel = 1;
			festusMSLevel = 5;
			festusPBLevel = 0;
			festusFBLevel = 0;
			festusPsyPower = 3;
			festusPsyDefense = 5;
			festusAttackType1 = 'mindblast';
			festusAttackType2 = 'mindshield';
			festusAttackType3 = 'none';
			festusAttackType4 = 'none';
			nivenMovement = 'flying';
			nivenResists = 'none';
			nivenHP = 24;
			nivenPsP = 9;
			nivenSpeed = 7;
			nivenMBLevel = 0;
			nivenMSLevel = 0;
			nivenPBLevel = 0;
			nivenFBLevel = 0;
			nivenStrength = 6;
			nivenPsyPower = 1;
			nivenPsyDefense = 1;
			nivenAttackType1 = 'knife';
			nivenAttackType2 = 'fling';
			nivenAttackType3 = 'none';
			nivenAttackType4 = 'none';
			flintMovement = 'land';
			flintResists = 'none';
			flintHP = 38;
			flintPsP = 0;
			flintSpeed = 3;
			flintMBLevel = 0;
			flintMSLevel = 0;
			flintPBLevel = 0;
			flintFBLevel = 0;
			flintStrength = 14;
			flintPsyPower = 0;
			flintPsyDefense = 9;
			flintAttackType1 = 'melee';
			flintAttackType2 = 'none';
			flintAttackType3 = 'none';
			flintAttackType4 = 'none';
			helenaMovement = 'land';
			helenaResists = 'none';
			helenaHP = 29;
			helenaPsP = 13;
			helenaSpeed = 5;
			helenaMBLevel = 0;
			helenaMSLevel = 0;
			helenaPBLevel = 0;
			helenaFBLevel = 0;
			helenaStrength = 11;
			helenaPsyPower = 1;
			helenaPsyDefense = 7;
			helenaAttackType1 = 'melee';
			helenaAttackType2 = 'none';
			helenaAttackType3 = 'none';
			helenaAttackType4 = 'none';
			grotiusMovement = 'flying';
			grotiusResists = 'Cold';
			grotiusHP = 28;
			grotiusPsP = 20;
			grotiusSpeed = 7;
			grotiusMBLevel = 4;
			grotiusMSLevel = 0;
			grotiusPBLevel = 3;
			grotiusFBLevel = 0;
			grotiusStrength = 1;
			grotiusPsyPower = 7;
			grotiusPsyDefense = 4;
			grotiusAttackType1 = 'mindblast';
			grotiusAttackType2 = 'frostblast';
			grotiusAttackType3 = 'none';
			grotiusAttackType4 = 'none';
			anyaMovement = 'land';
			anyaResists = 'none';
			anyaHP = 27;
			anyaPsP = 20;
			anyaSpeed = 5;
			anyaMBLevel = 1;
			anyaMSLevel = 5;
			anyaPBLevel = 0;
			anyaFBLevel = 0;
			anyaPsyPower = 3;
			anyaPsyDefense = 7;
			anyaAttackType1 = 'mindblast';
			anyaAttackType2 = 'farshield';
			anyaAttackType3 = 'none';
			anyaAttackType4 = 'none';
			guyMovement = 'land';
			guyResists = 'none';
			guyHP = 20;
			guyPsP = 20;
			guySpeed = 5;
			guyMBLevel = 1;
			guyMSLevel = 0;
			guyPBLevel = 1;
			guyFBLevel = 0;
			guyPsyPower = 7;
			guyPsyDefense = 5;
			guyAttackType1 = 'mindblast';
			guyAttackType2 = 'pyroblast';
			guyAttackType3 = 'none';
			guyAttackType4 = 'none';
			dorgonMovement = 'land';
			dorgonResists = 'Heat';
			dorgonHP = 20;
			dorgonPsP = 20;
			dorgonSpeed = 7;
			dorgonMBLevel = 1;
			dorgonMSLevel = 3;
			dorgonPBLevel = 0;
			dorgonFBLevel = 0;
			dorgonStrength = 1;
			dorgonPsyPower = 16;
			dorgonPsyDefense = 7;
			dorgonAttackType1 = 'mindblast';
			dorgonAttackType2 = 'none';
			dorgonAttackType3 = 'none';
			dorgonAttackType4 = 'none';
			jackMovement = 'land';
			jackResists = 'none';
			jackHP = 27;
			jackPsP = 10;
			jackSpeed = 5;
			jackMBLevel = 0;
			jackMSLevel = 0;
			jackPBLevel = 0;
			jackFBLevel = 0;
			jackStrength = 9;
			jackPsyPower = 1;
			jackPsyDefense = 4;
			jackAttackType1 = 'melee';
			jackAttackType2 = 'none';
			jackAttackType3 = 'none';
			jackAttackType4 = 'none';
			lucaMovement = 'land';
			lucaResists = 'Light';
			lucaHP = 40;
			lucaPsP = 20;
			lucaSpeed = 7;
			lucaMBLevel = 1;
			lucaMSLevel = 0;
			lucaPBLevel = 0;
			lucaFBLevel = 0;
			lucaStrength = 1;
			lucaPsyPower = 7;
			lucaPsyDefense = 17;
			lucaAttackType1 = 'mindblast';
			lucaAttackType2 = 'none';
			lucaAttackType3 = 'none';
			lucaAttackType4 = 'none';
			magellanMovement = 'flying';
			magellanResists = 'none';
			magellanHP = 32;
			magellanPsP = 20;
			magellanSpeed = 7;
			magellanMBLevel = 1;
			magellanMSLevel = 0;
			magellanPBLevel = 0;
			magellanFBLevel = 0;
			magellanStrength = 1;
			magellanPsyPower = 12;
			magellanPsyDefense = 14;
			magellanAttackType1 = 'mindblast';
			magellanAttackType2 = 'none';
			magellanAttackType3 = 'none';
			magellanAttackType4 = 'none';
			xerxesMovement = 'land';
			xerxesResists = 'none';
			xerxesHP = 30;
			xerxesPsP = 9;
			xerxesSpeed = 2;
			xerxesMBLevel = 1;
			xerxesMSLevel = 0;
			xerxesPBLevel = 0;
			xerxesFBLevel = 0;
			xerxesStrength = 1;
			xerxesPsyPower = 25;
			xerxesPsyDefense = 10;
			xerxesAttackType1 = 'mindblast';
			xerxesAttackType2 = 'none';
			xerxesAttackType3 = 'none';
			xerxesAttackType4 = 'none';
			deriveStats2();
			goingtoScene = 'intro';
			changeScene();
		}
		function deriveStats2() {
			if (gameDifficulty == 'hard') {
				gameDifficulty = 'brutal';
			}
			if (gameDifficulty == 'normal') {
				gameDifficulty = 'hard';
			}
			if (gameDifficulty == 'easy') {
				gameDifficulty = 'normal';
			}
			money = mainCharPersonality * 40 + 60;
		}
		stop();
		if (endingText == 1) {
			endingSegment1 = 'And so it was that ' + mainCharName + '\'s story came finally to an end...';
			endingSegment2 = 'With Tastidian and the Shadowling Queen gone, the spriggats were at last able to return to Somnus. In accordance with Cerzak\'s wishes, they established a constitutional democracy over the Shadowlands.';
			endingSegment3 = 'David, an excellent student, became a black cape at the head of his class in record time. He is currently recognized as having the most advanced Scanning abilities of any Psy alive.';
			endingSegment4 = 'Shadowboxer and Darkling, no longer needed as assassins, started a popular restaurant in the heart of Somnus called \'The Barracks\'. (On ' + mainCharName + '\'s advice, they import their beer from places other than Somnus.)';
			endingSegment5 = 'Festus took the opportunity to retire from the Queen\'s service and set up a private practice in Somnus as a doctor. In his off-time, he volunteers at the new Somnus National Library.';
			endingSegment6 = 'Niven, glad to be done with soldiering, returned to Somnus and reclaimed his title as the greatest knife-thrower in the Shadowlands. He peforms at \'The Barracks\' Tuesdays and Thursdays.';
			endingSegment7 = 'Helena, making use of the money she earned campaigning with ' + mainCharName + ', started a new mercenary group to rival the Mechanics. (Flint helps out, too.)';
			endingSegment8 = 'Gamblin\' Jack, impressed with the shadowling card game Psy War, created a popular derivative: Gamblin\' War. And while Gamblin\' Jack still gambles, he doesn\'t gamble with his freedom anymore.';
			endingSegment9 = 'Grotius became an instructor at the Psy Academy, where he began a curriculum in cryokinesis. He is now considered a living legend among the spriggats for his role in the Shadowling Queen\'s defeat.';
			endingSegment10 = 'Anya and Guy, relieved that the war was finally at an end, joined ' + mainCharName + ' in finishing their studies. Anya eventually became Dean of the Academy--Guy, a General.';
			endingSegment11 = 'And finally, we come to ' + mainCharName + ', who is now celebrated as a hero: among humans, for ending the shadowling threat, and among shadowlings, for bringing an end to the monarchy.';
			endingSegment12 = '' + mainCharName + ' has given up military service, and now lives a quiet, happy life among friends.' + String.fromCharCode(13) + String.fromCharCode(13) + 'As it should be.';
		}
		if (endingText == 2) {
			endingSegment1 = 'And so it was that ' + mainCharName + '\'s story came finally to an end...';
			endingSegment2 = 'With the Psy Academy under his foot and a new supply of Energy Golems, Tastidian was able at long last to crush the spriggat rebellion.';
			endingSegment3 = 'Meanwhile, impressed with ' + mainCharName + '\'s loyalty, Tastidian convinced the Shadowling Queen to appoint ' + mainCharName + ' provisional ruler over the human lands.';
			endingSegment4 = 'Shadowboxer became ' + mainCharName + '\'s chief bodyguard, and Darkling was appointed head of ' + mainCharName + '\'s personal spy service. Both came to be feared and hated throughout the world of men.';
			endingSegment5 = 'Festus took the opportunity to retire from the Queen\'s service and set up a private practice in Somnus as a doctor. In his off-time, he volunteers at the new Somnus National Library.';
			endingSegment6 = 'Niven, glad to be done with soldiering, returned to Somnus and reclaimed his title as the greatest knife-thrower in the Shadowlands. Business never did get as good as he wanted it, though--after all, it wasn\'t long before the Queen embarked on a new war.';
			endingSegment7 = 'Helena, making use of the money she earned campaigning with ' + mainCharName + ', started a new mercenary group to rival the Mechanics. (Flint helps out, too.)';
			endingSegment8 = 'Gamblin\' Jack, impressed with the shadowling card game Psy War, created a popular derivative: Gamblin\' War. And while Gamblin\' Jack still gambles, he doesn\'t gamble with his freedom anymore.';
			endingSegment9 = 'Grotius, no longer welcome among the spriggats, became an instructor at the Psy Academy, where he began a curriculum in cryokinesis.';
			endingSegment10 = 'Anya and Guy, feeling betrayed by their close friend, fled the Psy Academy and went into hiding. ' + mainCharName + ' never heard from them again.';
			endingSegment11 = 'And finally, we come to ' + mainCharName + '. Now reviled as a traitor to humankind, ' + mainCharName + ' ekes out a solitary existence as ruler of the human lands.';
			endingSegment12 = 'Embittered by loneliness, ' + mainCharName + ' first learned to become a cold and vengeful ruler, then finally left the crown behind altogether to fight in the Shadowling Queen\'s new wars.' + String.fromCharCode(13) + String.fromCharCode(13) + 'And so it was, until ' + mainCharName + '\'s final days.';
		}
	}
	movieClip 4159	{
		frame 230 {
			_root.ending.gotoAndStop('end01_Tastidian');
		}
	}
	movieClip 4161	{
		frame 400 {
			if (_root.endingText == 1) {
				_root.ending.gotoAndStop('end01_David');
			}
			if (_root.endingText == 2) {
				_root.ending.gotoAndStop('end02_Tastidian');
			}
		}
	}
	movieClip 4163	{
		frame 400 {
			_root.ending.gotoAndStop('end01_DarklingShadowboxer');
		}
	}
	movieClip 4165	{
		frame 400 {
			_root.ending.gotoAndStop('end01_DarklingShadowboxer');
		}
	}
	movieClip 4167	{
		frame 400 {
			_root.ending.gotoAndStop('end01_Festus');
		}
	}
	movieClip 4169	{
		frame 400 {
			if (_root.gotNiven == true) {
				_root.ending.gotoAndStop('end01_Niven');
			} else {
				if (_root.gotHelena == true) {
					_root.ending.gotoAndStop('end01_Helena');
				} else {
					if (_root.gotJack == true) {
						_root.ending.gotoAndStop('end01_Jack');
					} else {
						if (_root.gotGrotius == true) {
							_root.ending.gotoAndStop('end01_Grotius');
						} else {
							_root.ending.gotoAndStop('end01_AnyaGuy');
						}
					}
				}
			}
		}
	}
	movieClip 4171	{
		frame 400 {
			if (_root.gotHelena == true) {
				_root.ending.gotoAndStop('end01_Helena');
			} else {
				if (_root.gotJack == true) {
					_root.ending.gotoAndStop('end01_Jack');
				} else {
					if (_root.gotGrotius == true) {
						_root.ending.gotoAndStop('end01_Grotius');
					} else {
						_root.ending.gotoAndStop('end01_AnyaGuy');
					}
				}
			}
		}
	}
	movieClip 4173	{
		frame 400 {
			if (_root.gotJack == true) {
				_root.ending.gotoAndStop('end01_Jack');
			} else {
				if (_root.gotGrotius == true) {
					_root.ending.gotoAndStop('end01_Grotius');
				} else {
					_root.ending.gotoAndStop('end01_AnyaGuy');
				}
			}
		}
	}
	movieClip 4175	{
		frame 400 {
			if (_root.gotGrotius == true) {
				_root.ending.gotoAndStop('end01_Grotius');
			} else {
				_root.ending.gotoAndStop('end01_AnyaGuy');
			}
		}
	}
	movieClip 4177	{
		frame 400 {
			_root.ending.gotoAndStop('end01_AnyaGuy');
		}
	}
	movieClip 4179	{
		frame 400 {
			_root.ending.gotoAndStop('end01_MC1');
		}
	}
	movieClip 4181	{
		frame 400 {
			_root.ending.gotoAndStop('end01_MC2');
		}
	}
	button 4188 {
		on (press) {
			_root.playMenuSelect();
			_root.newGamePlus();
		}
	}
	movieClip 4189	{
		frame 270 {
			stop();
		}
		instance armorGames of movieClip 3533	{
			onClipEvent (release) {
				getURL('http://www.armorgames.com', '_blank');
			}
		}
		instance sinisterDesign of movieClip 4152	{
			onClipEvent (release) {
				getURL('http://www.sinisterdesign.net/', '_blank');
			}
		}
	}
	movieClip 4190	{
		frame 1 {
			stop();
		}
	}
	frame 79 {
		stop();
		talking = false;
	}
	button 4196 {
		on (rollOver) {
			this.gotoAndStop(2);
		}
		on (rollOut, dragOut) {
			this.gotoAndStop(1);
		}
	}
	movieClip 4201	{
		frame 1 {
			stop();
		}
	}
	movieClip 4202	{
		instance of movieClip 4201	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (release) {
			}
		}
	}
	instance TutorialBarBG of movieClip 4202	{
		onClipEvent (load) {
			this._visible = false;
		}
	}
	movieClip 4203	{
	}
	movieClip 4204	{
		frame 1 {
			stop();
		}
		instance of movieClip 65	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 4205	{
		frame 3 {
			if (_root.floorType == 'tile') {
				_root.playStepTile1();
			}
			if (_root.floorType == 'grass') {
				_root.playStepGrass1();
			}
		}
		frame 11 {
			if (_root.floorType == 'tile') {
				_root.playStepTile2();
			}
			if (_root.floorType == 'grass') {
				_root.playStepGrass2();
			}
		}
	}
	movieClip 4206	{
	}
	movieClip 4207	{
	}
	movieClip 4219	{
		frame 120 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4220	{
		frame 36 {
			stop();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4221	{
		frame 25 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4222	{
		frame 1 {
			stop();
		}
		frame 8 {
			stop();
		}
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
			}
			if (_root.talking == 0) {
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.mainChar._x += movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.mainChar._x -= movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.mainChar._y -= movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.mainChar._y += movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.mainChar._x += movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.mainChar._x -= movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.mainChar._y -= movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.TutorialText.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.mainChar._y += movespeed;
					}
				}
			}
			if (Key.isDown(68) || Key.isDown(39)) {
				if (_root.TutorialText.Collision.hitTest(this._x + 35, this._y, true)) {
					_root.mainChar._x -= movespeed;
				} else {
					if (_root.TutorialText.Collision.hitTest(this._x + 20, this._y, true)) {
						_root.mainChar._x -= movespeed;
					}
				}
			}
			if (Key.isDown(65) || Key.isDown(37)) {
				if (_root.TutorialText.Collision.hitTest(this._x - 35, this._y, true)) {
					_root.mainChar._x += movespeed;
				} else {
					if (_root.TutorialText.Collision.hitTest(this._x - 20, this._y, true)) {
						_root.mainChar._x += movespeed;
					}
				}
			}
			if (Key.isDown(87) || Key.isDown(38)) {
				if (_root.TutorialText.Collision.hitTest(this._x, this._y - 40, true)) {
					_root.mainChar._y += movespeed;
				} else {
					if (_root.TutorialText.Collision.hitTest(this._x, this._y - 20, true)) {
						_root.mainChar._y += movespeed;
					}
				}
			}
			if (Key.isDown(83) || Key.isDown(40)) {
				if (_root.TutorialText.Collision.hitTest(this._x, this._y + 40, true)) {
					_root.mainChar._y -= movespeed;
				} else {
					if (_root.TutorialText.Collision.hitTest(this._x, this._y + 20, true)) {
						_root.mainChar._y -= movespeed;
					}
				}
			}
		}
	}
	movieClip 4225	{
	}
	button 4232 {
		on (press) {
			playMenuClick();
			play();
		}
	}
	movieClip 4247	{
	}
	button 4255 {
		on (release) {
			playMenuClick();
			play();
		}
	}
	button 4257 {
		on (release) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_quality = 'HIGH';
		}
	}
	button 4258 {
		on (release) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_quality = 'MEDIUM';
		}
	}
	button 4259 {
		on (release) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_quality = 'LOW';
		}
	}
	button 4260 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_root.saveDisplay = 'Game Saved.';
		}
	}
	button 4261 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_root.saveDisplay = 'Game Loaded.';
		}
	}
	button 4262 {
		on (release) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_root.saveDisplay = 'Brutal difficulty set.';
		}
	}
	button 4263 {
		on (release) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_root.saveDisplay = 'Hard difficulty set.';
		}
	}
	button 4264 {
		on (release) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
			_root.saveDisplay = 'Normal difficulty set.';
		}
	}
	button 4266 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
			} else {
				this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
			}
			_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
			_global.Behaviors.Sound.MenuSelect.start(0, 1);
		}
	}
	movieClip 4286	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		instance muteButton of movieClip 2740	{
			onClipEvent (press) {
				if (_root.musicOn == true) {
					this.gotoAndStop(4);
					_root.musicOn = false;
					_root.saveDisplay = 'Music Off.';
					stopAllSounds();
				} else {
					if (_root.musicOn == false) {
						this.gotoAndStop(2);
						_root.saveDisplay = 'Music On.';
						_root.musicOn = true;
						_root.playAdventureMusic01();
					}
				}
				if (_global.Behaviors == null) {
					_global.Behaviors = {};
				}
				if (_global.Behaviors.Sound == null) {
					_global.Behaviors.Sound = {};
				}
				if (typeof this.createEmptyMovieClip == 'undefined') {
					this._parent.createEmptyMovieClip('BS_MenuSelect', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MenuSelect = new Sound(this._parent.BS_MenuSelect);
				} else {
					this.createEmptyMovieClip('_MenuSelect_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
					_global.Behaviors.Sound.MenuSelect = new Sound(this.BS_MenuSelect);
				}
				_global.Behaviors.Sound.MenuSelect.attachSound('MenuSelect');
				_global.Behaviors.Sound.MenuSelect.start(0, 1);
			}
			onClipEvent (rollOver) {
				if (_root.musicOn == true) {
					this.gotoAndStop(2);
				}
				if (_root.musicOn == false) {
					this.gotoAndStop(4);
				}
			}
			onClipEvent (rollOut, dragOut) {
				if (_root.musicOn == true) {
					this.gotoAndStop(1);
				}
				if (_root.musicOn == false) {
					this.gotoAndStop(3);
				}
			}
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			_root.slot1 = 'none';
			_root.slot2 = 'none';
			_root.slot3 = 'none';
			_root.slot4 = 'Your Character';
			_root.slot5 = 'none';
			_root.slot6 = 'none';
			_root.slot7 = 'none';
			_root.slot8 = 'none';
		}
		instance of movieClip 2911	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuSelect();
				_root.formation = 1;
				_parent.showFormation();
			}
		}
		instance of movieClip 2914	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuSelect();
				_root.formation = 2;
				_parent.showFormation();
			}
		}
	}
	movieClip 4287	{
	}
	button 4288 {
		on (press) {
			playMenuClick();
		}
	}
	button 4289 {
		on (press) {
			playMenuClick();
			_root.TutorialText.ingametutorialMenu.ingameMenuDisplay.gotoAndStop('MenuOptions');
			play();
		}
	}
	button 4290 {
		on (press) {
			playMenuClick();
		}
	}
	button 4291 {
		on (press) {
			playMenuClick();
		}
	}
	button 4293 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
	}
	button 4294 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
	}
	button 4295 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
	}
	button 4296 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
	}
	button 4298 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
			_root.ingametutorialMenu.ingameMenuDisplay.gotoAndStop('MenuOptions');
		}
	}
	movieClip 4300	{
	}
	movieClip 4303	{
	}
	movieClip 4304	{
		instance of movieClip 4303	{
			onClipEvent (press) {
			}
		}
	}
	movieClip 4306	{
	}
	movieClip 4321	{
		frame 1 {
			stop();
			_root.TutorialText.ConvBox.Clarifier._visible = false;
			_root.reply1 = 'You\'re on!';
			_root.reply2 = 'Wow...those eggs look pretty gross.';
			_root.reply3 = 'Do you usually carry those around with you?';
			_root.reply4 = 'Uh, no thanks.';
		}
		instance of movieClip 3150	{
			onClipEvent (rollOver) {
				_root.TutorialText.ConvBox.Clarifier._visible = true;
			}
			onClipEvent (rollOut, dragOut) {
				_root.TutorialText.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton1 of movieClip 3189	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.TutorialText.ConvBox.gotoAndStop(2);
				_root.playMenuClick();
				_root.TutorialText.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton2 of movieClip 3191	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.TutorialText.ConvBox.gotoAndStop(3);
				_root.playMenuClick();
				_root.TutorialText.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton3 of movieClip 3193	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.TutorialText.ConvBox.gotoAndStop(4);
				_root.playMenuClick();
				_root.TutorialText.ConvBox.Clarifier._visible = false;
			}
		}
		instance replyButton4 of movieClip 3195	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.TutorialText.ConvBox.gotoAndStop(5);
				_root.playMenuClick();
				_root.TutorialText.ConvBox.Clarifier._visible = false;
			}
		}
		frame 2 {
			stop();
			_root.TutorialText.ConvBox.Clarifier._visible = false;
			_root.reply1 = 'Those things? I mean, of course. Well, bye.';
			_root.reply2 = '';
			_root.reply3 = '';
			_root.reply4 = '';
		}
		instance replyButton1 of movieClip 3189	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				_root.TutorialText.play();
			}
		}
		instance replyButton2 of movieClip 3191	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				this.gotoAndStop(1);
				_root.replied = 2;
				_root.reply();
			}
		}
		instance replyButton3 of movieClip 3193	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				this.gotoAndStop(1);
				_root.replied = 3;
				_root.reply();
			}
		}
		instance replyButton4 of movieClip 3195	{
			onClipEvent (load) {
				this.gotoAndStop(1);
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.playMenuClick();
				this.gotoAndStop(1);
				_root.replied = 4;
				_root.reply();
			}
		}
		frame 3 {
			stop();
			_root.TutorialText.ConvBox.Clarifier._visible = false;
			_root.reply1 = 'How charming. Well, goodbye now.';
			_root.reply2 = '';
			_root.reply3 = '';
			_root.reply4 = '';
		}
		frame 4 {
			stop();
			_root.TutorialText.ConvBox.Clarifier._visible = false;
			_root.reply1 = 'No thanks. But happy birthday and all.';
			_root.reply2 = '';
			_root.reply3 = '';
			_root.reply4 = '';
		}
		frame 5 {
			stop();
			_root.TutorialText.ConvBox.Clarifier._visible = false;
			_root.reply1 = 'Damn! There goes my paycheck.';
			_root.reply2 = '';
			_root.reply3 = '';
			_root.reply4 = '';
		}
	}
	movieClip 4323	{
		frame 1 {
			stop();
			_root.talking = 1;
		}
		frame 2 {
			stop();
			_root.talking = 0;
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
			_root.talking = true;
		}
		frame 8 {
			stop();
		}
		frame 9 {
			stop();
		}
		frame 10 {
			stop();
			_root.TutorialBarBG._visible = true;
			_root.talking = false;
			_root.mainChar._x = 242.7;
			_root.mainChar._y = 211.6;
		}
		frame 11 {
			stop();
			_root.TutorialBarBG._visible = false;
		}
		frame 12 {
			stop();
			_root.TutorialText.Collision.talker.onPress = function () {
				delta_x = _root.TutorialText.Collision.talker._x - mainChar._x;
				delta_y = _root.TutorialText.Collision.talker._y - mainChar._y;
				_root.TutorialText.Collision.talker._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				_root.TutorialText.play();
			};
		}
		frame 13 {
			stop();
			_root.talking = true;
		}
		frame 14 {
			stop();
			_root.talking = false;
		}
	}
	button 4329 {
		on (press) {
			playMenuClick();
			gotoAndStop('Tutorials');
		}
	}
	frame 80 {
		function displayNameTut() {
			_root.charName = _root.name1;
		}
		function displayAttackInfoTut() {
			if (_root.currAttackType1 == 'none') {
				_root.TutorialText.attackButton1.gotoAndStop(1);
			}
			if (_root.currAttackType1 == 'mindblast') {
				_root.TutorialText.attackButton1.gotoAndStop(2);
			}
			if (_root.currAttackType1 == 'pyroblast') {
				_root.TutorialText.attackButton1.gotoAndStop(3);
			}
			if (_root.currAttackType1 == 'mindshield') {
				_root.TutorialText.attackButton1.gotoAndStop(4);
			}
			if (_root.currAttackType1 == 'feedback') {
				_root.TutorialText.attackButton1.gotoAndStop(5);
			}
			if (_root.currAttackType1 == 'melee') {
				_root.TutorialText.attackButton1.gotoAndStop(6);
			}
			if (_root.currAttackType2 == 'none') {
				_root.TutorialText.attackButton2.gotoAndStop(1);
			}
			if (_root.currAttackType2 == 'mindblast') {
				_root.TutorialText.attackButton2.gotoAndStop(2);
			}
			if (_root.currAttackType2 == 'pyroblast') {
				_root.TutorialText.attackButton2.gotoAndStop(3);
			}
			if (_root.currAttackType2 == 'mindshield') {
				_root.TutorialText.attackButton2.gotoAndStop(4);
			}
			if (_root.currAttackType2 == 'feedback') {
				_root.TutorialText.attackButton2.gotoAndStop(5);
			}
			if (_root.currAttackType2 == 'melee') {
				_root.TutorialText.attackButton2.gotoAndStop(6);
			}
			if (_root.currAttackType3 == 'none') {
				_root.TutorialText.attackButton3.gotoAndStop(1);
			}
			if (_root.currAttackType3 == 'mindblast') {
				_root.TutorialText.attackButton3.gotoAndStop(2);
			}
			if (_root.currAttackType3 == 'pyroblast') {
				_root.TutorialText.attackButton3.gotoAndStop(3);
			}
			if (_root.currAttackType3 == 'mindshield') {
				_root.TutorialText.attackButton3.gotoAndStop(4);
			}
			if (_root.currAttackType3 == 'feedback') {
				_root.TutorialText.attackButton3.gotoAndStop(5);
			}
			if (_root.currAttackType3 == 'melee') {
				_root.TutorialText.attackButton3.gotoAndStop(6);
			}
			if (_root.currAttackType4 == 'none') {
				_root.TutorialText.attackButton4.gotoAndStop(1);
			}
			if (_root.currAttackType4 == 'mindblast') {
				_root.TutorialText.attackButton4.gotoAndStop(2);
			}
			if (_root.currAttackType4 == 'pyroblast') {
				_root.TutorialText.attackButton4.gotoAndStop(3);
			}
			if (_root.currAttackType4 == 'mindshield') {
				_root.TutorialText.attackButton4.gotoAndStop(4);
			}
			if (_root.currAttackType4 == 'feedback') {
				_root.TutorialText.attackButton4.gotoAndStop(5);
			}
			if (_root.currAttackType4 == 'melee') {
				_root.TutorialText.attackButton4.gotoAndStop(6);
			}
		}
		function displayAttackButtonsTut() {
			_root.currAttackType1 = _root.char1AttackType1;
			_root.currAttackType2 = _root.char1AttackType2;
			_root.currAttackType3 = _root.char1AttackType3;
			_root.currAttackType4 = _root.char1AttackType4;
			displayAttackInfoTut();
		}
		function displayHPTut() {
			if (char1Damage < 0) {
				char1Damage = 0;
			}
			_root.charHP = MaxHP1 - char1Damage;
			_root.charMaxHP = MaxHP1;
		}
		function displayPsPTut() {
			_root.charPsP = MaxPsP1 - char1Drain;
			_root.charMaxPsP = MaxPsP1;
			if (char1Drain < 0) {
				char1Drain = 0;
			}
		}
		function changeturnsTut() {}
		function displayStepsTut() {
			_root.charSteps = MaxSteps1 - _root.steps;
			if (_root.steps > MaxSteps1) {
				_root.steps = MaxSteps1;
			}
		}
		function displayInfo1Tut() {
			if (char1Damage < 0) {
				char1Damage = 0;
			}
			_root.currAttackType1 = _root.char1AttackType1;
			_root.currAttackType2 = _root.char1AttackType2;
			_root.currAttackType3 = _root.char1AttackType3;
			_root.currAttackType4 = _root.char1AttackType4;
			displayAttackInfoTut();
			_root.charHP = MaxHP1 - char1Damage;
			_root.charMaxHP = MaxHP1;
			_root.charPsP = MaxPsP1 - char1Drain;
			_root.charMaxPsP = MaxPsP1;
			_root.charSteps = MaxSteps1 - _root.steps;
			_root.charName = _root.name1;
		}
		function displayInfo2Tut() {
			if (char2Damage < 0) {
				char2Damage = 0;
			}
			_root.currAttackType1 = _root.char2AttackType1;
			_root.currAttackType2 = _root.char2AttackType2;
			_root.currAttackType3 = _root.char2AttackType3;
			_root.currAttackType4 = _root.char2AttackType4;
			displayAttackInfoTut();
			_root.charHP = MaxHP2 - char2Damage;
			_root.charMaxHP = MaxHP2;
			_root.charPsP = MaxPsP2 - char2Drain;
			_root.charMaxPsP = MaxPsP2;
			_root.charSteps = MaxSteps2 - _root.steps;
			_root.charName = _root.name2;
		}
		function displayInfo3Tut() {
			if (char3Damage < 0) {
				char3Damage = 0;
			}
			_root.currAttackType1 = _root.char3AttackType1;
			_root.currAttackType2 = _root.char3AttackType2;
			_root.currAttackType3 = _root.char3AttackType3;
			_root.currAttackType4 = _root.char3AttackType4;
			displayAttackInfoTut();
			_root.charHP = MaxHP3 - char3Damage;
			_root.charMaxHP = MaxHP3;
			_root.charPsP = MaxPsP3 - char3Drain;
			_root.charMaxPsP = MaxPsP3;
			_root.charSteps = MaxSteps3 - _root.steps;
			_root.charName = _root.name3;
		}
		stop();
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		damageDisplay = 0;
		moving = false;
		wonBattle = false;
		lostBattle = false;
		attacked = 0;
		shouldAttack = 0;
		display = '';
		chosenAttack = 'none';
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		name1 = 'Bob the Grand';
		name2 = 'Dirk the Gray';
		name3 = 'Darkling';
		char1Dead = false;
		char2Dead = false;
		char3Dead = false;
		MaxHP1 = 25;
		MaxHP2 = 28;
		MaxHP3 = 24;
		MaxHP16 = 15;
		MaxHP17 = 15;
		MaxHP18 = 15;
		MaxPsP1 = 25;
		MaxPsP2 = 0;
		MaxPsP3 = 22;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxSteps1 = 5;
		MaxSteps2 = 4;
		MaxSteps3 = 9;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		char1AttackType1 = 'mindblast';
		char1AttackType2 = 'mindshield';
		char1AttackType3 = 'pyroblast';
		char1AttackType4 = 'feedback';
		char2AttackType1 = 'melee';
		char2AttackType2 = 'none';
		char2AttackType3 = 'none';
		char2AttackType4 = 'none';
		char3AttackType1 = 'mindblast';
		char3AttackType2 = 'mindshield';
		char3AttackType3 = 'none';
		char3AttackType4 = 'none';
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'crossbow';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char16Damage = 0;
		char17Damage = 6;
		char18Damage = 12;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char1Strength = 1;
		char2Strength = 6;
		char3Strength = 1;
		char1PsyPower = 6;
		char2PsyPower = 1;
		char3PsyPower = 4;
		char1PsyDefense = 10;
		char2PsyDefense = 1;
		char3PsyDefense = 3;
		char1MBlevel = 1;
		char2MBlevel = 1;
		char3MBlevel = 1;
		char1MSlevel = 1;
		char2MSlevel = 1;
		char3MSlevel = 1;
		char1PBlevel = 1;
		char2PBlevel = 1;
		char3PBlevel = 1;
		char1FBmax = 1;
		char2FBmax = 1;
		char3FBmax = 1;
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
	}
	instance watertile of movieClip 14 watertile {
		onClipEvent (enterFrame) {
			if (_root.TutorialText.char1.hitTest(this._x, this._y, true)) {
				_root.TutorialText.nextButton._x -= 200;
			}
		}
	}
	button 4331 {
		on (press) {
			playMenuClick();
			play();
		}
	}
	movieClip 4336	{
	}
	movieClip 4339	{
	}
	movieClip 4344	{
	}
	movieClip 4346	{
	}
	movieClip 4348	{
	}
	movieClip 4352	{
	}
	movieClip 4357	{
	}
	movieClip 4369	{
	}
	movieClip 4381	{
	}
	movieClip 4395	{
	}
	movieClip 4402	{
	}
	movieClip 4406	{
	}
	movieClip 4413	{
	}
	movieClip 4416	{
	}
	movieClip 4437	{
	}
	movieClip 4448	{
	}
	movieClip 4467	{
	}
	movieClip 4473	{
	}
	movieClip 4482	{
		frame 1 {
			stop();
		}
	}
	movieClip 4492	{
	}
	movieClip 4497	{
	}
	movieClip 4499	{
	}
	movieClip 4501	{
	}
	movieClip 4504	{
	}
	movieClip 4505	{
	}
	button 4506 {
		on (rollOver) {
			_root.display = 'This rotates a character.';
		}
		on (rollOut, dragOut) {
			_root.display = '';
		}
	}
	movieClip 4510	{
	}
	movieClip 4513	{
	}
	button 4514 {
		on (rollOver) {
			_root.display = 'This undoes the character\'s moves from this turn.';
		}
		on (rollOut, dragOut) {
			_root.display = '';
		}
	}
	button 4518 {
		on (rollOver) {
			_root.display = 'This ends the character\'s turn.';
		}
		on (rollOut, dragOut) {
			_root.display = '';
		}
	}
	movieClip 4519	{
		frame 1 {
			stop();
		}
	}
	movieClip 4534	{
	}
	movieClip 4535	{
		frame 1 {
			stop();
		}
		instance of movieClip 4534	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 4536	{
	}
	movieClip 4537	{
		frame 81 {
			stop();
		}
	}
	movieClip 4538	{
	}
	movieClip 4540	{
	}
	movieClip 4541	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 4542	{
	}
	movieClip 4543	{
		frame 110 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4544	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	button 4553 {
		on (press) {
			if (moveTurn == 1 && attacked == 0) {
				rotateCW1();
			}
			if (moveTurn == 2 && attacked == 0) {
				rotateCW2();
			}
			if (moveTurn == 3 && attacked == 0) {
				rotateCW3();
			}
		}
	}
	button 4554 {
		on (press) {
			_root.TutorialText.char1._rotation = 0;
			_root.TutorialText.char1._x = _root.startX;
			_root.TutorialText.char1._y = _root.startY;
			_root.steps = 0;
		}
	}
	button 4563 {
		on (press) {
			play();
		}
	}
	movieClip 4574	{
		frame 120 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 4575	{
		frame 106 {
			stop();
		}
	}
	movieClip 4576	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4577	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 4579	{
	}
	movieClip 4580	{
	}
	movieClip 4581	{
		frame 110 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 4582	{
	}
	movieClip 4583	{
		frame 110 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4584	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4585	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 4587	{
	}
	movieClip 4588	{
	}
	movieClip 4589	{
		frame 110 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4590	{
		frame 105 {
			stop();
		}
	}
	movieClip 4591	{
	}
	movieClip 4592	{
		frame 110 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4593	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4594	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	movieClip 4603	{
	}
	movieClip 4622	{
	}
	movieClip 4634	{
		frame 145 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4646	{
		frame 145 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4647	{
		frame 145 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4659	{
		frame 145 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4660	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 4680	{
	}
	movieClip 4682	{
	}
	movieClip 4684	{
	}
	movieClip 4687	{
	}
	movieClip 4689	{
	}
	movieClip 4691	{
	}
	movieClip 4693	{
	}
	movieClip 4695	{
	}
	movieClip 4698	{
	}
	movieClip 4706	{
	}
	movieClip 4713	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 4714	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		instance attackButton1 of movieClip 4482	{
			onClipEvent (rollOver) {
				_root.display = 'These display a character\'s attacks.';
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
			}
		}
		instance moveGUIbutton of movieClip 4492	{
			onClipEvent (load) {
				this.stop();
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
				_root.display = 'This moves the graphic display to another corner of the screen.';
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
				_root.display = '';
			}
		}
		instance attackButton2 of movieClip 4482	{
			onClipEvent (rollOver) {
				_root.display = 'These display a character\'s attacks.';
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
			}
		}
		instance attackButton3 of movieClip 4482	{
			onClipEvent (rollOver) {
				_root.display = 'These display a character\'s attacks.';
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
			}
		}
		instance attackButton4 of movieClip 4482	{
			onClipEvent (rollOver) {
				_root.display = 'These display a character\'s attacks.';
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
			}
		}
		instance minimizeGUIbutton of movieClip 4497	{
			onClipEvent (load) {
				this.stop();
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
				_root.display = 'This minimizes the graphic display.';
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
				_root.display = '';
			}
		}
		instance HealthIcon of movieClip 2623	{
			onClipEvent (rollOver) {
				_root.display = 'Here is a character\'s current and total health.';
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
			}
		}
		instance PsPIcon of movieClip 2589	{
			onClipEvent (rollOver) {
				_root.display = 'Here is a character\'s current and total PsP.';
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
			}
		}
		instance MoveIcon of movieClip 4499	{
			onClipEvent (rollOver) {
				_root.display = 'Here is a character\'s remaining moves.';
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
			}
		}
		instance whoseTurnButton of movieClip 4519	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
				_root.display = 'This reminds you whose turn it is and shows how injured enemys are.';
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
				_root.display = '';
			}
		}
		frame 3 {
			_root.displaySelection();
			_root.displayNameTut();
			_root.displayAttackButtonsTut();
			_root.displayHPTut();
			_root.displayPsPTut();
			_root.displayStepsTut();
			stop();
		}
		instance char3 of movieClip 1134 shadowlingRedGood {
			onClipEvent (rollOver) {
				_root.displayInfo3Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayStepsTut();
				_root.displayHPTut();
				_root.displayPsPTut();
				_root.displayNameTut();
				_root.displayAttackButtonsTut();
			}
		}
		instance char2 of movieClip 4544	{
			onClipEvent (rollOver) {
				_root.displayInfo2Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayStepsTut();
				_root.displayHPTut();
				_root.displayPsPTut();
				_root.displayNameTut();
				_root.displayAttackButtonsTut();
			}
		}
		instance char1 of movieClip 550 mainChar {
			onClipEvent (rollOver) {
				_root.displayInfo1Tut();
			}
			onClipEvent (press, rollOut) {
			}
		}
		instance attackButton1 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType1 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType1 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType1 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType1 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType1 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType1 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		instance moveGUIbutton of movieClip 4492	{
			onClipEvent (load) {
				this.stop();
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
		}
		instance attackButton2 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType2 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType2 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType2 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType2 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType2 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType2 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		instance attackButton3 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType3 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType3 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType3 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType3 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType3 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType3 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		instance attackButton4 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType4 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType4 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType4 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType4 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType4 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType4 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		instance minimizeGUIbutton of movieClip 4497	{
			onClipEvent (load) {
				this.stop();
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
		}
		instance whoseTurnButton of movieClip 4519	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
		}
		frame 4 {
			stop();
		}
		instance moveGUIbutton of movieClip 4492	{
			onClipEvent (load) {
				this.stop();
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
		}
		instance minimizeGUIbutton of movieClip 4497	{
			onClipEvent (load) {
				this.stop();
			}
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
		}
		frame 5 {
			stop();
		}
		frame 6 {
			_root.TutorialText.char2.gotoAndStop(3);
			_root.displayInfo2Tut();
			stop();
		}
		instance char3 of movieClip 1134 shadowlingRedGood {
			onClipEvent (rollOver) {
				_root.displayInfo3Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayInfo2Tut();
			}
		}
		instance char1 of movieClip 550 mainChar {
			onClipEvent (rollOver) {
				_root.displayInfo1Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayInfo2Tut();
			}
		}
		frame 7 {
			stop();
			_root.TutorialText.char2.gotoAndStop(1);
		}
		instance char16 of movieClip 4577	{
			onClipEvent (rollOver) {
				if (_root.attacked !== 1 && _root.moveTurn < 16) {
					_root.displayInfo16();
				}
			}
			onClipEvent (press, rollOut, dragOut) {
				_root.displaySteps();
				_root.displayHP();
				_root.displayPsP();
				_root.displayName();
				_root.displayAttackButtons();
			}
			onClipEvent (enterFrame) {
				if (_root.moveTurn == 16 && _root.attacked == 3) {
					_root.changeturns();
				}
			}
		}
		instance char17 of movieClip 4585	{
			onClipEvent (rollOver) {
				if (_root.attacked !== 1 && _root.moveTurn < 16) {
					_root.displayInfo17();
				}
			}
			onClipEvent (press, rollOut, dragOut) {
				_root.displaySteps();
				_root.displayHP();
				_root.displayPsP();
				_root.displayName();
				_root.displayAttackButtons();
			}
			onClipEvent (enterFrame) {
				if (_root.moveTurn == 17 && _root.attacked == 3) {
					_root.changeturns();
				}
			}
		}
		instance char18 of movieClip 4594	{
			onClipEvent (rollOver) {
				if (_root.attacked !== 1 && _root.moveTurn < 16) {
					_root.displayInfo18();
				}
			}
			onClipEvent (press, rollOut, dragOut) {
				_root.displaySteps();
				_root.displayHP();
				_root.displayPsP();
				_root.displayName();
				_root.displayAttackButtons();
			}
			onClipEvent (enterFrame) {
				if (_root.moveTurn == 18 && _root.attacked == 3) {
					_root.changeturns();
				}
			}
		}
		instance whoseTurnButton of movieClip 4519	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				_root.TutorialText.char2.gotoAndStop(2);
				_root.TutorialText.char2.selector.gotoAndPlay(1);
				_root.TutorialText.char16.gotoAndStop(30);
				_root.TutorialText.char16.heart.gotoAndStop(1);
				_root.TutorialText.char16.heart._rotation -= 180;
				_root.TutorialText.char17.gotoAndStop(30);
				_root.TutorialText.char17.heart.gotoAndStop(2);
				_root.TutorialText.char17.heart._rotation -= 180;
				_root.TutorialText.char18.gotoAndStop(30);
				_root.TutorialText.char18.heart.gotoAndStop(3);
				_root.TutorialText.char18.heart._rotation -= 180;
			}
		}
		frame 8 {
			_root.TutorialText.char2.gotoAndStop(1);
			_root.displayStepsTut();
			_root.displayHPTut();
			_root.displayPsPTut();
			_root.displayNameTut();
			_root.displayAttackButtonsTut();
			stop();
		}
		instance char3 of movieClip 1134 shadowlingRedGood {
			onClipEvent (rollOver) {
				_root.displayInfo3Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayStepsTut();
				_root.displayHPTut();
				_root.displayPsPTut();
				_root.displayNameTut();
				_root.displayAttackButtonsTut();
			}
		}
		instance char2 of movieClip 4544	{
			onClipEvent (rollOver) {
				_root.displayInfo2Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayStepsTut();
				_root.displayHPTut();
				_root.displayPsPTut();
				_root.displayNameTut();
				_root.displayAttackButtonsTut();
			}
		}
		instance char1 of movieClip 550 mainChar {
			onClipEvent (rollOver) {
				_root.displayInfo1Tut();
			}
			onClipEvent (press, rollOut) {
			}
		}
		instance whoseTurnButton of movieClip 4519	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
		}
		frame 9 {
			_root.startX = 42.9;
			_root.startY = 135;
			_root.moving = false;
			stop();
		}
		instance char1 of movieClip 550 mainChar {
			onClipEvent (load) {
				speed = 5;
				tileSize = 50;
				velocityX = 0;
				velocityY = 0;
				currentX = this._x;
				currentY = this._y;
				initialX = this._x;
				initialY = this._y;
			}
			onClipEvent (enterFrame) {
				if (Key.isDown(65) && _root.moving == false) {
					this._rotation = 90;
					_root.display = '';
				}
				if (Key.isDown(65) && _root.moving == false && _root.TutorialText.Collision.hitTest(this._x - 50, this._y, false)) {
					_root.moving = true;
					this.gotoAndStop(5);
					initialX = this._x;
					initialY = this._y;
					velocityX = -1 * speed;
					_root.steps += 1;
				}
				if (Key.isDown(68) && _root.moving == false) {
					this._rotation = 270;
					_root.display = '';
				}
				if (Key.isDown(68) && _root.moving == false && _root.TutorialText.Collision.hitTest(this._x + 50, this._y, false)) {
					_root.moving = true;
					this.gotoAndStop(5);
					initialX = this._x;
					initialY = this._y;
					velocityX = speed;
					_root.steps += 1;
				}
				if (Key.isDown(87) && _root.moving == false) {
					this._rotation = 180;
					_root.display = '';
				}
				if (Key.isDown(87) && _root.moving == false && _root.TutorialText.Collision.hitTest(this._x, this._y - 50, false)) {
					_root.moving = true;
					this.gotoAndStop(5);
					initialX = this._x;
					initialY = this._y;
					velocityY = -1 * speed;
					_root.steps += 1;
				}
				if (Key.isDown(83) && _root.moving == false) {
					this._rotation = 0;
					_root.display = '';
				}
				if (Key.isDown(83) && _root.moving == false && _root.TutorialText.Collision.hitTest(this._x, this._y + 50, false)) {
					_root.moving = true;
					this.gotoAndStop(5);
					initialX = this._x;
					initialY = this._y;
					velocityY = speed;
					_root.steps += 1;
				}
				if (_root.MaxSteps1 - _root.steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					_root.moving = false;
					this.gotoAndStop(1);
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				this._x += velocityX;
				this._y += velocityY;
				currentX = this._x;
				currentY = this._y;
				_root.displayStepsTut();
			}
		}
		frame 10 {
			_root.displayAttackButtonsTut();
			stop();
		}
		instance char3 of movieClip 1134 shadowlingRedGood {
			onClipEvent (rollOver) {
				_root.displayInfo3Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayStepsTut();
				_root.displayHPTut();
				_root.displayPsPTut();
				_root.displayNameTut();
				_root.displayAttackButtonsTut();
			}
		}
		instance char2 of movieClip 4544	{
			onClipEvent (rollOver) {
				_root.displayInfo2Tut();
			}
			onClipEvent (press, rollOut) {
				_root.displayStepsTut();
				_root.displayHPTut();
				_root.displayPsPTut();
				_root.displayNameTut();
				_root.displayAttackButtonsTut();
			}
		}
		instance attackButton1 of movieClip 4482	{
			onClipEvent (press) {
				_root.TutorialText.char1.gotoAndStop(6);
			}
			onClipEvent (rollOver) {
				if (_root.currAttackType1 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType1 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType1 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType1 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType1 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType1 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		instance attackButton2 of movieClip 4482	{
			onClipEvent (press) {
				_root.TutorialText.char1.gotoAndStop(7);
			}
			onClipEvent (rollOver) {
				if (_root.currAttackType2 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType2 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType2 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType2 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType2 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType2 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		instance attackButton3 of movieClip 4482	{
			onClipEvent (press) {
				_root.TutorialText.char1.gotoAndStop(8);
			}
			onClipEvent (rollOver) {
				if (_root.currAttackType3 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType3 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType3 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType3 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType3 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType3 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		instance attackButton4 of movieClip 4482	{
			onClipEvent (press) {
				_root.TutorialText.char1.gotoAndStop(9);
			}
			onClipEvent (rollOver) {
				if (_root.currAttackType4 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType4 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType4 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType4 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType4 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType4 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.display = '';
				_root.displayAttackButtonsTut();
			}
		}
		frame 11 {
			stop();
		}
		frame 12 {
			stop();
		}
		instance char1 of movieClip 4660	{
			onClipEvent (rollOver) {
				_root.displayInfo1();
			}
			onClipEvent (press, rollOut) {
				_root.displaySteps();
				_root.displayHP();
				_root.displayPsP();
				_root.displayName();
				_root.displayAttackButtons();
			}
		}
		frame 13 {
			stop();
		}
		frame 14 {
			stop();
		}
		frame 15 {
			stop();
		}
		frame 16 {
			stop();
		}
		instance of movieClip 4713	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut, dragOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				playMenuSelect();
				_root.gotoAndPlay('startTutBattle');
			}
		}
		frame 17 {
			stop();
		}
		frame 18 {
			stop();
		}
		frame 19 {
			stop();
		}
		frame 20 {
			stop();
		}
		frame 21 {
			stop();
		}
		frame 22 {
			stop();
		}
		frame 23 {
			stop();
		}
		frame 24 {
			stop();
		}
		frame 25 {
			stop();
		}
		frame 26 {
			stop();
		}
		frame 27 {
			stop();
		}
	}
	frame 81 {
		stop();
	}
	button 4720 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
	}
	button 4721 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
	}
	button 4722 {
		on (press) {
			if (_global.Behaviors == null) {
				_global.Behaviors = {};
			}
			if (_global.Behaviors.Sound == null) {
				_global.Behaviors.Sound = {};
			}
			if (typeof this.createEmptyMovieClip == 'undefined') {
				this._parent.createEmptyMovieClip('BS_MenuClick', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this._parent.BS_MenuClick);
			} else {
				this.createEmptyMovieClip('_MenuClick_', (new Date()).getTime() - Math.floor((new Date()).getTime() / 10000) * 10000);
				_global.Behaviors.Sound.MenuClick = new Sound(this.BS_MenuClick);
			}
			_global.Behaviors.Sound.MenuClick.attachSound('MenuClick');
			_global.Behaviors.Sound.MenuClick.start(0, 1);
		}
	}
	movieClip 4728	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
			menu.gotoAndStop(5);
			_root.slot4 = 'Your Character';
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
			_root.talking = true;
		}
		frame 8 {
			stop();
		}
	}
	frame 82 {
		function __com_mochibot__(swfid, mc, lv, trk) {
			var x;
			var g;
			var s;
			var fv;
			var sb;
			var u;
			var res;
			var mb;
			var mbc;
			mb = '__mochibot__';
			mbc = 'mochibot.com';
			g = _global ? _global : _level0._root;
			if (g[mb + swfid]) {
				return g[mb + swfid];
			}
			s = System.security;
			x = mc._root.getSWFVersion;
			fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
			if (!s) {
				s = {};
			}
			sb = s.sandboxType;
			if (sb == 'localWithFile') {
				return null;
			}
			x = s.allowDomain;
			if (x) {
				s.allowDomain(mbc);
			}
			x = s.allowInsecureDomain;
			if (x) {
				s.allowInsecureDomain(mbc);
			}
			u = 'http://' + mbc + '/my/core.swf?mv=7&fv=' + fv + '&v=' + escape(/:$version) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
			lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
			g[mb + 'level'] = lv;
			if (fv == 5) {
				res = '_level' + lv;
				if (!eval(res)) {
					loadMovieNum(u, lv);
				}
				return res;
			}
			res = mc.createEmptyMovieClip(mb + swfid, lv);
			res.loadMovie(u);
			return res;
		}
		__com_mochibot__('c05a24b9', this, 10301, true);
	}
	frame 82 {
		function conversation() {
			if (talking == 0) {
				convBoxClosed = true;
				refreshMenu();
			}
			if (talking == 1) {
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
			}
			if (convID == 'narrative1' || convID == 'snarl1' || convID == 'shadguard1' || convID == 'tastidian1' || convID == 'flavin1' || convID == 'vagrant1' || convID == 'thallion1' || convID == 'hellion1' || convID == 'penumbra1' || convID == 'lala1') {
				conv01();
			} else {
				if (convID == 'negatus1' || convID == 'nightling1' || convID == 'guy2' || convID == 'anya2' || convID == 'guard1' || convID == 'guard2' || convID == 'trainer1' || convID == 'bookseller1' || convID == 'druggist1') {
					conv03();
				} else {
					conv02();
				}
			}
		}
		function conv01() {
			if (convID == 'narrative1') {
				ConvBox.gotoAndStop(6);
				if (convBranch == 1) {
					convtext1 = 'This book is bound in a vivid blue fabric. You can\'t read the script it\'s written in, but you can pick up thought impressions from when the owner last read it. It is a guide to the various gems of the earth and their market value among various societies.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					convtext1 = 'This book is bound in a sort of black leather. You can\'t read the script it\'s written in, but you can pick up thought impressions from when the owner last read it. It seems to be some sort of self-motivation book called Think Yourself Richer.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					convtext1 = 'This is a mug of Somnus ale. Shadowling brewers are notoriously awful, and this particular drink is the bright, shining emblem of that awfulness. It is bitter and watery, with little pieces of hops floating in it like the pulp in orange juice. You vaguely recall having had the misfortune to sample Somnus ale during your time in the city, and you have little desire to relive the experience.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					convtext1 = 'This book is bound in a vivid blue fabric. You can\'t read the script it\'s written in, but you can pick up thought impressions from when the owner last read it. It seems to be a history of the Shadowlands and her people--a strikingly violent one. The book spans thousands of years, and yet there never seem to be more than a few consecutive months of peace. It relieves you to know that shadowlings rarely venture above ground--otherwise, they would probably be at war with your homeland right now.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					convtext1 = 'This is a barrel. You\'re not sure what\'s inside.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					convtext1 = 'A wall target. For practice with archery or some other ranged attack, perhaps.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					convtext1 = 'This appears to be a ledger of some sort. You can\'t read the script it\'s written in, and the thought impressions it provides are weak and uninformative. Just names you\'ve never heard before, mainly, and jumbled fragments of account numbers.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					convtext1 = 'You can\'t read the script the sign is written in, but you can pick up the thought impressions of those who\'ve read it. This seems to be advertising the building next to it as a place to invest in the Queen\'s war effort.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					convtext1 = 'You see a jumbled pile of discarded golem parts. None of it looks useful.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					convtext1 = 'Tools are scattered all over this table. Presumably, you\'d use these in assembling a golem.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					convtext1 = 'An energy golem. It looks more or less fully assembled, but it\'s clearly inactive.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					convtext1 = 'This appears to be a manual on golem maintenance and assembly.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					convtext1 = 'This appears to be some sort of parts manifest, listing thousands of individual components, the number in supply, and where they\'re located.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					convtext1 = 'The North Gate is just as you remembered it: which is to say, utterly worthless as a means of entry or exit.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					convtext1 = 'The gates appear to have been reinforced since you last visited the Academy. Even with your improved telekinetic power, you won\'t be able to open this without help from the guards.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					convtext1 = 'This is a bed. You\'re not certain, but you think it might be yours. For some reason, you simply cannot remember. You were definitely sleeping there, though.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					convtext1 = 'This is your old bed. You feel that you are probably entitled to sleep in it if you choose.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 18) {
					convtext1 = 'You examine the lamp. The craftsmanship is simply remarkable--the twists and turns of the lamp\'s \'stem\' are almost hypnotic, and lifelike leaves protrude at regular intervals. It culminates in an indigo stained glass lampshade shaped like the petals of a half-open flower.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 19) {
					convtext1 = 'This is a bed. There\'s not much remarkable about it, really.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 20) {
					convtext1 = 'This old, worn chest appears to be locked tightly.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 21) {
					convtext1 = 'The sign reads: \'The Psy Academy\'s Administrative Offices are closed for the summer.\'';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 46) {
					speaker1 = 'Helena';
					speaker2 = '';
					ConvBox.gotoAndStop(1);
					ConvBox.portraitFinder.gotoAndStop(7);
					convtext1 = 'Don\'t bother tryin\' to force those things. Flint can\'t even dent \'em. You wanna get into the workshop? Go throw the switches down at the security station. There\'s 10 of \'em. Careful, though--there\'s a lot of nasty golems down there. They\'re slow and have lousy vision--just don\'t let \'em see you!';
					convtext2 = '';
					reply1 = 'Hm, okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 47) {
					convtext1 = 'These doors are thick and made of metal. You see no handles, and a pyroblast probably wouldn\'t even budge these things. There has to be some opening mechanism somewhere...';
					convtext2 = '';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 48) {
					speaker1 = 'Helena';
					speaker2 = '';
					ConvBox.gotoAndStop(1);
					ConvBox.portraitFinder.gotoAndStop(7);
					convtext1 = '[She seems eager to wreak havoc on the workshop.] There you are! Thought I was gonna die of boredom for a minute there. Now comes the fun part. You ready or what?';
					convtext2 = '';
					reply1 = 'Let\'s do it.';
					reply2 = 'Hm. Let\'s go back and train first.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 49) {
					convtext1 = 'It looks like you managed to trigger the mechanism to unlock these doors. The entrance to the workshop lays open to you...';
					convtext2 = '';
					reply1 = '[Continue.]';
					reply2 = 'Not just yet...';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 50) {
					convtext1 = 'This looks a lot like something you\'d find inside the torso of a bronze golem.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 51) {
					convtext1 = 'It\'s the blue orb you got from Grotius. It still pulses faintly with some sort of power. Touch it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 52) {
					convtext1 = 'It\'s the orange orb you found in the Great Forest. It still pulses faintly with some sort of power. Touch it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 53) {
					convtext1 = 'It\'s the black orb your little brother David gave you. It pulses faintly with some sort of power. Touch it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 54) {
					convtext1 = 'It\'s the white orb you got from Lala. It still pulses faintly with some sort of power. Touch it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 55) {
					convtext1 = 'It\'s the green orb you got from Pirate Pete. It still pulses faintly with some sort of power. Touch it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 56) {
					convtext1 = 'It\'s the crimson orb you found in the Deeper Downs. It still pulses faintly with some sort of power. Touch it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 57) {
					convtext1 = 'It\'s the yellow orb you found on an island in Lake Alto. It still pulses faintly with some sort of power. Touch it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 58) {
					convtext1 = 'It\'s the bronze lamp you bought from Gelf. The bulb still pulses faintly with some sort of power. Examine it?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 59) {
					convtext1 = 'You reach down and touch the orb. It is cold to the touch. Freezing, even. And suddenly, you can\'t feel the cold. You can\'t feel the chilly, cavernous air of Somnus either. Everything feels pleasantly warm.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 60) {
					convtext1 = 'You reach down and touch the orb. Intense, scalding heat washes over you. You break instantly into a sweat. And suddenly, you can\'t feel it anymore. Everything seems pleasantly cool.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 61) {
					convtext1 = 'You reach down and touch the orb. Your eyes are suddenly filled with a purplish-black mist, and your skin feels clammy and cold. There is a hissing in your ears. And suddenly, you can see again, though everything seems very bright now.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 62) {
					convtext1 = 'You reach down and touch the orb. Your eyes are suddenly filled with brilliant, searing light. There is a roaring in your ears. And suddenly, you can see again, though everything seems very dim now.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 63) {
					convtext1 = 'You reach down and touch the orb. Your limbs begin to tingle, and suddenly, you can practically feel blood roaring through your veins, as if you had been pumped full of adrenaline. You\'ve never had this much physical energy before--you feel like you could run a mile.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 64) {
					convtext1 = 'You reach down and touch the orb. Suddenly, you are seized with the overwhelming desire to destroy everything around you with fire. You\'re no longer sure that you can control your pyrokinesis quite the way you once could.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 65) {
					convtext1 = 'As you reach down and touch the orb, you feel a surge of clarity wash over you. Everything around you seems to be in much sharper detail now--nothing escapes your notice.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 66) {
					convtext1 = 'You reach into the lamp and grasp the bulb. Instantly, a sense of calmness and security comes over you. You feel you have the power to reach out and deflect all harm from yourself and those around you.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch >= 67 && convBranch <= 69) {
					convtext1 = 'Disembark?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 70) {
					convtext1 = 'Cerzak is apparently knocked out cold.';
					convtext2 = '';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 71) {
					convtext1 = 'This is your old bed. With every step forward, it seems softer and more comfortable. You feel the weight of the last few years dragging you down with heavy hands, until finally you topple like a domino onto the bedspread and give in to sleep\'s warm embrace...';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 72) {
					convtext1 = 'This old, worn chest appears to be locked tightly. Use David\'s key?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'No.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 73) {
					convtext1 = 'You open the chest. Inside, you notice a deep ebony glass ball, perhaps the size of your fist. It pulses with a dim light. You can plainly sense some sort of power emanating from it.';
					convtext2 = '';
					reply1 = '[Pick it up.]';
					reply2 = 'Maybe I\'d better not touch it...';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'tastidian1') {
				speaker1 = 'Tastidian';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(16);
				if (convBranch == 0) {
					ConvBox.gotoAndStop(2);
					speaker2 = '';
					convtext1 = 'Greetings ' + mainCharName + '. You may be having trouble remembering certain things right now, so allow me to orient you. We are in Somnus, a magnificent city far beneath the surface of the earth. I am Tastidian, and you are my slave. The Queen has bid me to use you in our war against the dissidents.';
					convtext2 = '[This creature looks very familiar, though you can\'t quite place him...]';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'So ' + mainCharName + ', are you ready for your first mission?';
					convtext2 = '';
					reply1 = 'I suppose so.';
					reply2 = 'Not...just yet.';
					reply3 = 'Depends. What is it?';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good. Your first mission involves a mercenary organization known as the Mechanics. Ordinarily they are of little concern to us, but lately they\'ve been making a nuisance of themselves.';
					convtext2 = 'I suppose so.';
					reply1 = 'Nuisance?';
					reply2 = 'Who are the Mechanics, anyway?';
					reply3 = 'Interesting. Well, I\'ll be back later...';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Your first mission involves a mercenary organization known as the Mechanics. Ordinarily they are of little concern to us, but lately they\'ve been making a nuisance of themselves.';
					convtext2 = 'Depends. What is it?';
					reply1 = 'Nuisance?';
					reply2 = 'Who are the Mechanics, anyway?';
					reply3 = 'Interesting. Well, I\'ll be back later...';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yes. They\'ve made a point of raiding our above-ground resourcing operations over the last month, and have even begun to make small incursions below ground. We believe they are being retained by the separatists.';
					convtext2 = 'Nuisance?';
					reply1 = 'Why?';
					reply2 = 'Who are the Mechanics, anyway?';
					reply3 = 'Okay, I get it. What\'s the mission, then?';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'They are a human mercenary group known to peddle in black market gadgetry. They are dangerous in numbers, but aside from the occassional Golem they might have for support, simple to dispatch.';
					convtext2 = 'Who are the Mechanics, anyway?';
					reply1 = 'Nuisance?';
					reply2 = 'Okay, I get it. What\'s the mission, then?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'It is simple enough. All you have to do is find their base and dispatch any patrols you encounter along the way.';
					convtext2 = 'Okay, I get it. What\'s the mission, then?';
					reply1 = 'Am I doing this alone?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'No. I\'ve selected three soldiers to assist you: Festus, Shadowboxer, and Darkling. They await you in headquarters if you wish to meet them.';
					convtext2 = 'Am I doing this alone?';
					reply1 = 'No need--I\'m ready to do this now!';
					reply2 = 'I\'ll return when I\'ve spoken to them.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I suspect they may have been retained to disrupt our supply lines, though for some reason they have been limiting their looting to certain high-energy gemstones. It is curious indeed.';
					convtext2 = 'Why?';
					reply1 = 'Who are the Mechanics, anyway?';
					reply2 = 'Okay, I get it. What\'s the mission, then?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', you\'ve returned. Have you located the Mechanics\' base yet?';
					convtext2 = '';
					reply1 = 'Well, no...';
					if (mission1Done == true) {
						reply1 = 'Yes, I have.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Then stop wasting time and go find it! Her Majesty has no patience for laziness.';
					convtext2 = 'Well, no...';
					reply1 = 'Right away, sir!';
					reply2 = 'Where should I be looking?';
					reply3 = 'I\'ll get to it in a little while.';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Above ground, of course. We encounter them most often in the Lowlands, just north of the Great Forest, so I suggest starting there. The base is probably hidden, so be prepared to search for a while.';
					convtext2 = 'Where should I be looking?';
					reply1 = 'Okay, I\'m off!';
					reply2 = 'I\'ll check there in a little while.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good work. Rest your men and train--I\'ll have another mission for you shortly. In the meanwhile, I have a small sum for you. [He drops a cloth sack into your hand.]';
					convtext2 = 'Yes, I have.';
					reply1 = 'Thank you, sir.';
					reply2 = 'I could use a rest.';
					reply3 = 'Where can I train?';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', I have a new mission for you. Are you ready?';
					convtext2 = '';
					reply1 = 'Yes, I am.';
					reply2 = 'Not just yet...';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good. Since you located the base, our spies have been Scanning the area for information, and have come up with some troubling reports.';
					convtext2 = 'Yes, I am.';
					reply1 = 'Really? What have they found?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'As we suspected, the Mechanics are working for the dissidents. But worse, plans for some kind of new weapon are apparently in the works. That\'s why they\'ve been raiding for supplies.';
					convtext2 = 'Really? What have they found?';
					reply1 = 'We have to stop them!';
					reply2 = 'So what do you want me to do about it?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That\'s the idea, ' + mainCharName + '. But you\'re going to have to be the one to do it. We can\'t spare the men. Just destroy the base and steal the plans.';
					convtext2 = 'We have to stop them!';
					reply1 = 'Simple. I\'ll do that right now.';
					reply2 = 'How am I supposed to take down an entire base?';
					reply3 = 'Give me a minute to rest and train, here.';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He frowns.] What are you going to do? You are going to steal their plans and destroy their base. Simple as that.';
					convtext2 = 'So what do you want me to do about it?';
					reply1 = 'Simple. I\'ll do that right now.';
					reply2 = 'How am I supposed to take down an entire base?';
					reply3 = 'Give me a minute to rest and train, here.';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'According to our spies, they do not have a very large garrison there--most of their men are out on raids during the day, and the place should be ripe for an assault.';
					convtext2 = 'How am I supposed to take down an entire base?';
					reply1 = 'Sounds simple. I\'ll do that right now.';
					reply2 = 'Give me a minute to rest and train, here.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 19) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', you\'ve returned. Have you stolen the Mechanics\' plans yet?';
					convtext2 = '';
					reply1 = 'Well, no...';
					if (mission2Done == true) {
						reply1 = 'Yes, I have.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Then stop wasting time and go find it! Her Majesty has no patience for laziness.';
					convtext2 = 'Well, no...';
					reply1 = 'Right away, sir!';
					reply2 = 'I don\'t think I\'m strong enough.';
					reply3 = 'I\'ll get to it in a little while.';
					reply4 = '';
				}
				if (convBranch == 21) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That\'s no excuse. Go find and speak with Hellion--I\'ve retained him so that you may train yourself and your men.';
					convtext2 = 'I don\'t think I\'m strong enough.';
					reply1 = 'I\'ll do that.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 22) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Excellent work, ' + mainCharName + '. Give us some time to study these--I\'ll have a new mission for you shortly. In the meantime, rest and train your men. Here is some gold for the purpose. [Tastidian drops a sizeable sack of coins into your hand.]';
					convtext2 = 'Yes, I have.';
					reply1 = 'Thank you, sir.';
					reply2 = 'I could use a rest.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 23) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', I have a new mission for you. Are you ready?';
					convtext2 = '';
					reply1 = 'Yes, I am.';
					reply2 = 'Not just yet...';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 24) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We\'ve had a look at the plans you recovered, and they are worrisome. It looks like the enemy has created some sort of Energy Golem that can accurately strike multiple targets over long distances.';
					convtext2 = 'Yes, I am.';
					reply1 = 'I think I\'ve fought one of those already.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 25) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He frowns.] We currently have no answer to the Energy Golem--this puts us as at a tactical disadvantage against the Spriggats. And if they\'ve started producing these already, as you claim, then we truly have no time to waste.';
					convtext2 = 'I think I\'ve fought one of those already.';
					reply1 = 'What are we going to do?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 26) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Our spies have picked up thoughts of a workshop hidden in the Great Forest where these automatons are being assembled. We need you to find it and destroy it.';
					convtext2 = 'What are we going to do?';
					reply1 = 'Is that all?';
					reply2 = 'I can do that.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 27) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'No--there are a couple more things. First, the place is likely to be heavily guarded, so be careful. Second, if you can, try to capture an inoperative Energy Golem--we may be able to use it.';
					convtext2 = 'Is that all?';
					reply1 = 'All right; I\'ll go now.';
					reply2 = 'I\'ll be back in a little while.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 28) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'There are a couple more things to bear in mind before you go. First, the place is likely to be heavily guarded, so be careful. Second, if you can, try to capture an inoperative Energy Golem--we may be able to use it.';
					convtext2 = 'I can do that.';
					reply1 = 'All right; I\'ll go now.';
					reply2 = 'I\'ll be back in a little while.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 29) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', you\'ve returned. Have you destroyed the Energy Golem workshop yet?';
					convtext2 = '';
					reply1 = 'Well, no...';
					if (mission3Done == true) {
						reply1 = 'No--it turned out to be a trap.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 30) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Then do so immediately--the longer you delay, the more of our men will pay for it with their lives.';
					convtext2 = 'Well, no...';
					reply1 = 'Right away, sir!';
					reply2 = 'I just need a minute here.';
					reply3 = 'What am I doing, again?';
					reply4 = '';
				}
				if (convBranch == 31) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Tastidian\'s eyes narrow.] You are trying my patience, fleshling. Go to the Great Forest, then find and destroy the Mechanics\' Energy Golem workshop. Return with an inoperative Energy Golem if at all possible.';
					convtext2 = 'What am I doing, again?';
					reply1 = 'Right away, sir!';
					reply2 = 'Okay--let me just take care of something first.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 32) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Tastidian frowns.] What do you mean, \'a trap\'?';
					convtext2 = 'No--it turned out to be a trap.';
					reply1 = 'I mean, there was no workshop there.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 33) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Tastidian taps his chin with a long, pointy finger.] Very well. Go rest and recover, then return in a little while. I have some...business...to take care of.';
					convtext2 = 'I mean, there was no workshop there.';
					reply1 = 'All right.';
					reply2 = 'What are you going to do?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 34) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Make sure we don\'t get any more misinformation. It won\'t take long.';
					convtext2 = 'What are you going to do?';
					reply1 = 'Hm. Okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 35) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', I have a new mission for you. Are you ready?';
					convtext2 = '';
					reply1 = 'Yes, I am.';
					reply2 = 'Give me a few minutes...';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 36) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good. I discovered a mole in our spy service who was feeding us bad information. He is currently undergoing involuntary scanning.';
					convtext2 = 'Yes, I am.';
					reply1 = 'What is that? Torture?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 37) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'No. Torture is crude and ineffective--only a fool would depend on it. The risk of driving the subject insane without getting anything useful is far too great. No, ' + mainCharName + '--with involuntary scanning, we simply delve into the subject\'s mind and extract the information ourselves.';
					convtext2 = 'What is that? Torture?';
					reply1 = 'I...see. What did you find?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 38) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'It appears that there is an energy golem workshop after all: in the Deeper Downs, a series of lava-filled caverns just west of Lake Alto. I\'ll draw it on your map so you know where to go. All you have to do is seek out the workshop and destroy it.';
					convtext2 = 'I...see. What did you find?';
					reply1 = 'Will there be many enemies?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 39) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Possibly--we aren\'t too far into the involuntary scanning process yet. But either way, we can\'t spare the troops for a major assault. You\'ve been quite capable so far--I have faith in your abilities.';
					convtext2 = 'Will there be many enemies?';
					reply1 = 'Thank you, sir. I\'ll go right now.';
					reply2 = 'Maybe I\'d better prepare first...';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 40) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', you\'ve returned. Have you destroyed the Energy Golem workshop yet?';
					convtext2 = '';
					reply1 = 'Well, no...';
					if (mission5Done == true) {
						reply1 = 'Yes, I have.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 41) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Then stop wasting time--the Queen is depending on us.';
					convtext2 = 'Well, no...';
					reply1 = 'Yes, sir. I\'ll go right now!';
					reply2 = 'I just need a minute to prepare.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 42) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hellion, our master trainer, lives to the northeast of here. You can oftentimes spot him meditating outside of his house. Go tell him I sent you.';
					convtext2 = 'Where can I train?';
					reply1 = 'Yes, sir.';
					reply2 = 'Great, thanks.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 43) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Excellent work. [The corner of his mouth twitches--it\'s the closest you\'ve ever seen him come to a smile.] ' + mainCharName + ', you make me gladder I acquired you with every passing day. You deserve a rest. However, circumstances do not permit it. Return once you\'ve recovered and trained.';
					convtext2 = 'Yes, I have.';
					reply1 = 'Yes, sir.';
					reply2 = 'Thanks. I think.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 44) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello, ' + mainCharName + '. We have no time to waste. Are you ready for your next mission?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'Not quite yet, actually.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 45) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good. I was recently contacted with the news that one of our commanders, General Darkeye, has been wounded in battle on a large island in the middle of Lake Alto. Your task is to find him and escort him back to Somnus safely.';
					convtext2 = 'Yes.';
					reply1 = 'How will I find him?';
					reply2 = 'Why not send a larger force?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 46) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We have a small ship anchored for you at a pier on the south side of Lake Alto. It\'s loaded with high resonance crystals that will allow you to control the ship with your mind--just be sure not to ram it into too many things, or it may explode.';
					convtext2 = 'How will I find him?';
					reply1 = 'How do I return?';
					reply2 = 'Why not send a larger force?';
					reply3 = 'Okay, got it. Let\'s do this...';
					reply4 = '';
				}
				if (convBranch == 47) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That part of the lake has since fallen under dissident control and been filled with mines. We would be at a severe disadvantage without support from a fleet of ships, but the way the lake is mined, sending in an armada would incur unacceptably heavy losses.';
					convtext2 = 'Why not send a larger force?';
					reply1 = 'How will I find him?';
					reply2 = 'How do I return?';
					reply3 = 'Okay, got it. Let\'s do this...';
					reply4 = '';
				}
				if (convBranch == 48) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Simply bring the boat safely to a stop at the end of a pier to disembark. Oh, and be careful about staying on the lake too long--you\'re likely to be spotted by patrols.';
					convtext2 = 'How do I return?';
					reply1 = 'How will I find him?';
					reply2 = 'Why not send a larger force?';
					reply3 = 'Okay, got it. Let\'s do this...';
					reply4 = '';
				}
				if (convBranch == 49) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', you\'ve returned. Where is General Darkeye?';
					convtext2 = '';
					reply1 = 'I haven\'t rescued him yet...';
					if (mission6Done == true) {
						reply1 = 'He\'s resting back at headquarters.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 50) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hurry! He\'s one of our best commanders--we can\'t risk losing him.';
					convtext2 = 'I haven\'t rescued him yet...';
					reply1 = 'Yes, sir. I\'ll go right now!';
					reply2 = 'I just need a minute to prepare.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 51) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Excellent work! I knew we could count on you. The Queen has authorized me to give you this as a small token of her gratitude. [He hands you a small chest.] Rest and train your team, then return when you are ready for your next mission.';
					convtext2 = 'He\'s resting back at headquarters.';
					reply1 = 'Thank you, sir.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 52) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', your destruction of the golem workshop has restored our advantage in this war. Not only have the dissidents lost the ability to manufacture Energy Golems, we have gained it as well.';
					convtext2 = '';
					reply1 = 'Oh really?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 53) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We\'ve had our greatest scholars studying the inactive energy golems you captured. We have already reverse engineered them and begun to produce our own--like theirs, only better. It is only a matter of time before we crush the dissidents and end this war once and for all.';
					convtext2 = 'Oh really?';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 54) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'The dissidents know this, and have begun to grow desperate. You remember the mole who led you into that trap in the Great Forest, yes?';
					convtext2 = '';
					reply1 = 'Sure.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 55) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We have finished his involuntary scanning. We now know that as a last-ditch attempt to save their flagging rebellion, the dissidents have dispatched emissaries to the human Psy Academy to plead for support.';
					convtext2 = 'Sure.';
					reply1 = 'Hm. So what\'s the mission?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 56) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I know that you are familiar with the Psy Academy. Your mission is to ensure that they do not forge an alliance with the dissidents.';
					convtext2 = 'Hm. So what\'s the mission?';
					reply1 = 'Yes sir. I\'ll go right now!';
					reply2 = '...and if they do?';
					reply3 = 'I\'ll leave in a little while.';
					reply4 = '';
				}
				if (convBranch == 57) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That shouldn\'t be an issue. They would be fools to ally themselves with the dissidents.';
					convtext2 = '...and if they do?';
					reply1 = 'Very well. I\'ll go right now.';
					reply2 = 'I\'ll leave in a little while.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 58) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', you\'ve returned. Have you ensured that the Academy will not be allying themselves with the dissidents?';
					convtext2 = '';
					reply1 = 'Not yet...';
					if (spokeToPiter == 2) {
						reply1 = 'It\'s too late for that.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 59) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Then do so immediately--we can\'t risk giving the dissidents a new source of support when we\'re so close to destroying them.';
					convtext2 = 'Not yet...';
					reply1 = 'Yes, sir. I\'ll go right now!';
					reply2 = 'I just need a minute to prepare.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 60) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'So they have already chosen the dissidents\' side? How foolish of them. [Tastidian gives you a long look up and down.] ' + mainCharName + ', I have an important task for you. It will be difficult, however.';
					convtext2 = 'It\'s too late for that.';
					reply1 = 'What sort of task?...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 61) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You must destroy the Psy Academy. If they are allowed to intervene, this war could drag on for years longer than necessary. And already, this bloodshed has gone long enough.';
					convtext2 = 'What sort of task?...';
					reply1 = 'You can\'t be serious...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 62) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Why not?';
					convtext2 = 'You can\'t be serious...';
					reply1 = 'That place is packed with powerful psy warriors.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 63) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I think you are underestimating your own power, ' + mainCharName + '. It is well within your ability to bring your former military academy to its knees. If you have doubts, however, Hellion is always available to you. Is that all?';
					convtext2 = 'That place is packed with powerful psy warriors.';
					reply1 = 'Well...also...I have friends there.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 64) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Tastidian nods patiently.] I understand that this may be hard for you to do. However, if we do not end this war soon, even more of your friends\' lives may be lost. I am giving you this opportunity to mount the assault--you know whom to spare. Left to their own devices, our shadowling troops will not.';
					convtext2 = 'Well...also...I have friends there. I can\'t risk killing people I know.';
					reply1 = 'I...understand.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 65) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Don\'t worry about them, ' + mainCharName + '. Simply let me know when you are ready to go. But do not tarry long--we cannot afford to let the dissidents regroup.';
					convtext2 = 'Anya...';
					reply1 = 'I\'m ready to do this now.';
					reply2 = 'Just give me a little time...';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 66) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = mainCharName + ', you\'ve returned. Have you destroyed the Academy?';
					convtext2 = '';
					reply1 = 'Not yet...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 67) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Then do so immediately--we must end this war now, while we still can!';
					convtext2 = 'Not yet...';
					reply1 = 'Yes, sir. I\'ll go right now!';
					reply2 = 'I just need a minute to prepare.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 68) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Guy';
					ConvBox.portraitFinder.gotoAndStop(10);
					convtext1 = '' + mainCharName + ', I think you\'ve officially lost it. I mean it. If you think I spent the last year trying to get you back to the Academy just to help you destroy it... Well, forget it. I\'m out of here.';
					convtext2 = 'I...understand.';
					reply1 = 'Guy...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 69) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Anya';
					ConvBox.portraitFinder.gotoAndStop(9);
					convtext1 = 'I\'m sorry, ' + mainCharName + '. I don\'t think I can stay with you. You\'re just not the person I remember. Goodbye.';
					convtext2 = 'Guy...';
					reply1 = 'Anya...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 95) {
					ConvBox.gotoAndStop(2);
					convtext1 = mainCharName + ', I\'m disappointed in you. After all these years, I thought I could trust you with a little free will. [A sudden, electrifying jolt runs through your body. Your knees buckle beneath you, and you feel yourself collapsing to the ground. It has become extremely difficult to breathe, as though a large rock were pressing on your chest.]';
					convtext2 = '[Your slave bracelet suddenly contracts. You cannot speak or move.]';
					reply1 = 'Tas...tidian...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 96) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Obviously, I was mistaken in that belief. The Queen does not like fleshlings running about, assaulting the citizens of this city. [He leans in close, a frightening look in his eyes.] And I do not like it when my slaves make me look foolish in front of the Queen.';
					convtext2 = '[You try to form words, but the bracelet chokes them in your throat.]';
					reply1 = 'Wa...wait...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 97) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Tastidian continues, seemingly unaware that you are now on your knees, gasping for air.] One more incident like this, and there will be permanent consequences. But for now, let\'s get back to business, hm? I\'d rather forget that this little incident ever happened. Return when you are ready to continue.';
					convtext2 = '[You are suffocating, starting to black out. And suddenly, the bracelet releases.]';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'hellion1') {
				speaker1 = 'Hellion';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(18);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[A particularly large and dour-looking Shadowling floats before you. You notice that he is wearing a bone mask similar to the one Noctus wore. His voice echoes in your mind.] I don\'t have time for you, fleshling.';
					convtext2 = '';
					reply1 = 'Why not?';
					reply2 = 'I was told you could help me train.';
					reply3 = 'What\'s the deal with these bone masks?';
					reply4 = 'Okay, never mind.';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He gives you a dismissive look.] I\'m busy.';
					convtext2 = 'Why not?';
					reply1 = 'Don\'t you know who I am?';
					reply2 = 'I was told you could help me train.';
					reply3 = 'What\'s the deal with these bone masks?';
					reply4 = 'Okay, never mind.';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I know exactly who you are. You are a flesh creature, frail and pitiful. You are also Tastidian\'s pet.';
					convtext2 = 'Don\'t you know who I am?';
					reply1 = 'I was told you could help me train.';
					reply2 = 'What\'s the deal with these bone masks?';
					reply3 = 'Okay, never mind.';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'These masks are a sign of power and service to the Queen. [You wait for him to continue, but he doesn\'t.]';
					convtext2 = 'What\'s the deal with these bone masks?';
					reply1 = 'So...I was told you could help me train.';
					reply2 = 'Okay, never mind.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[You hear a sound in your head reminiscent of a snort.] Train you? What\'s the matter--has Tastidian not housebroken you? No, fleshling. I don\'t care what Tastidian says. Prove yourself on the field of battle first--then talk to me.';
					convtext2 = 'So...I was told you could help me train.';
					reply1 = 'Fine then--that\'s exactly what I\'ll do.';
					reply2 = 'Okay, never mind.';
					reply3 = 'But I\'ve done that already!';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He looks you up and down slowly]. Yes, apparently.';
					convtext2 = 'I\'m back.';
					reply1 = 'I\'ve proven myself on the field of battle.';
					reply2 = 'Well...this is awkward. I guess I\'ll be going.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Fool, do you think I know nothing of the reports coming back from the field? You have done no such thing. Go away.';
					convtext2 = 'I\'ve proven myself on the field of battle.';
					reply1 = 'Oh, right...heh heh. Oops.';
					reply2 = 'Well...this is awkward. I guess I\'ll be going.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'So I\'ve heard. Perhaps you aren\'t completely useless after all.';
					convtext2 = 'I\'ve proven myself on the field of battle.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					ConvBox.portraitFinder.gotoAndStop(18);
					convtext1 = 'Now that you\'ve proven your worth to us, what would you ask of me?';
					convtext2 = '';
					reply1 = 'I\'d like you to train me.';
					reply2 = 'I\'d like you to train someone in my group.';
					reply3 = 'Teach me about different stats and skills.';
					reply4 = 'Nothing actually. I\'ll be back later.';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What do you want to know?';
					convtext2 = 'Teach me about different stats and skills.';
					reply1 = 'Tell me about my stats and what they do.';
					reply2 = 'Tell me about the different combat skills.';
					reply3 = 'Actually, I have a different request.';
					reply4 = 'Nothing actually. I\'ll be back later.';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Psy Power affects your attack damage and total PsP; Psy Defense affects your hit points, defensive skills, and total PsP; Personality determines your persuasiveness and leadership ability; Aptitude determines how easily you learn and improve; and Speed determines how far you can move in a turn during combat.';
					convtext2 = 'Tell me about my stats and what they do.';
					reply1 = 'Tell me about the different combat skills.';
					reply2 = 'Actually, I have a different request.';
					reply3 = 'Nothing actually. I\'ll be back later.';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Mind Blast is a purely psychic attack that overloads the target\'s synapses; Mind Shield erects a psychic and kinetic shield that absorbs damaging attacks; Pyro Blast creates a powerful pyrokinetic explosion; and Feedback funnels harmful energy from your wounds out of you and into an enemy.';
					convtext2 = 'Tell me about the different combat skills.';
					reply1 = 'Tell me about my stats and what they do.';
					reply2 = 'Actually, I have a different request.';
					reply3 = 'Nothing actually. I\'ll be back later.';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'How shall I train you, fleshling?';
					convtext2 = 'I\'d like you to train me.';
					reply1 = 'I\'d like to improve my Psy Power.';
					reply2 = 'I\'d like to improve my Psy Defense.';
					reply3 = 'I\'d like to improve a combat skill.';
					reply4 = 'Actually, I have a different request.';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Very well, fleshling, but it will cost you ' + trainingCost + ' gold to improve your Psy Power.';
					convtext2 = 'I\'d like to improve my Psy Power.';
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Very well, fleshling, but it will cost you ' + trainingCost + ' gold to improve your Psy Defense.';
					convtext2 = 'I\'d like to improve my Psy Defense.';
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Which skill would you like to train?';
					convtext2 = 'I\'d like to improve a combat skill.';
					reply1 = 'Mind Blast.';
					reply2 = 'Mind Shield.';
					if (mainCharAttackType2 == 'bigshield') {
						reply2 = 'Big Shield';
					}
					reply3 = 'Pyro Blast.';
					if (mainCharAttackType3 == 'pyrohail') {
						reply3 = 'Pyro Hail';
					}
					reply4 = 'Feedback.';
					if (mainCharAttackType4 == 'vengeance') {
						reply4 = 'Vengeance';
					}
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Very well, fleshling. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharMBLevel + '.';
					convtext2 = 'Mind Blast.';
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Very well, fleshling. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharMSLevel + '.';
					convtext2 = 'Mind Shield.';
					if (mainCharAttackType2 == 'bigshield') {
						convtext2 = 'Big Shield.';
					}
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 19) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Very well, fleshling. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharPBLevel + '.';
					convtext2 = 'Pyro Blast.';
					if (mainCharAttackType3 == 'pyrohail') {
						convtext2 = 'Pyro Hail.';
					}
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Very well, fleshling. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharFBLevel + '.';
					convtext2 = 'Feedback.';
					if (mainCharAttackType4 == 'vengeance') {
						convtext2 = 'Vengeance.';
					}
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 21) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'This isn\'t enough money. My time is valuable, and training materials aren\'t free. If you can\'t pay the price, don\'t waste my time.';
					convtext2 = 'Sounds good to me--let\'s do it.';
					reply1 = 'Sorry. I guess I\'ll go find some more money...';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 22) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Let us begin, then. [Several hours of intense training pass, with Hellion teaching you new tricks and techniques you hadn\'t figured out before.] Congratulations, ' + mainCharName + '; you\'re now a stronger warrior than you were before.';
					convtext2 = 'Sounds good to me--let\'s do it.';
					reply1 = 'Thank you--that was very helpful.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have another request.';
					reply4 = '';
				}
				if (convBranch == 23) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What would you like to improve?';
					convtext2 = 'I\'d like to improve something else, actually.';
					reply1 = 'I\'d like to improve my Psy Power.';
					reply2 = 'I\'d like to improve my Psy Defense.';
					reply3 = 'I\'d like to improve a combat skill.';
					reply4 = 'Actually, I have a different request.';
				}
				if (convBranch == 24) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'If what you say is true, I will hear of it soon. Return later.';
					convtext2 = 'But I\'ve done that already!';
					reply1 = 'Fine. I\'ll be back.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 25) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Very well. Let\'s have a look at your roster and see what we can do.';
					convtext2 = '';
					reply1 = 'Actually, I have a different request.';
					reply2 = 'Okay!';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 26) {
					ConvBox.gotoAndStop(5);
					reply1 = 'That\'s enough for now.';
				}
				if (convBranch == 95) {
					ConvBox.gotoAndStop(6);
					speaker2 = '';
					convtext1 = 'The chest is empty.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 96) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'I suppose you want what\'s in that chest, now don\'t you?';
					convtext2 = '';
					reply1 = 'Actually, yes...';
					reply2 = 'Uh, never mind.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 97) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hmph. Well, I guess you\'ve earned it. Go ahead then, open it. [Inside the chest, you find a small fortune--a whopping 5000 gold!]';
					convtext2 = 'Actually, yes...';
					reply1 = '[Take the gold.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 98) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Fool--don\'t touch things that don\'t belong to you. Especially not in this city.';
					convtext2 = '';
					reply1 = 'Sorry! I was just curious.';
					reply2 = 'I\'ll fight you for this chest.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 99) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He stares at you for a moment, then suddenly erupts into knee-slapping, gut-splitting laughter. He doesn\'t stop for a solid thirty seconds. Finally, he wipes a tear from the corner of his eye and stops to catch his breath.] Oh. Oh, thank you. I haven\'t had a laugh like that...in quite some time. You...fight ME! Ahahahaha!';
					convtext2 = 'I\'ll fight you for this chest.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'shadguard1') {
				speaker1 = 'Palace Guard';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(18);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[A deep voice resonates in your mind.] Flesh creatures are not permitted inside the palace.';
					convtext2 = '';
					reply1 = 'Oh, okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'penumbra1') {
				speaker1 = 'Penumbra';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(23);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Welcome to the Somnus branch of the Shadowlands National Bond Office! My name is Penumbra. Here on business for your master?';
					convtext2 = '';
					reply1 = 'No, actually.';
					reply2 = '[Lie.] Um...yes. Yes I am.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m sorry, but we don\'t permit fleshlings to have their own accounts here. That\'s our policy.';
					convtext2 = 'No, actually.';
					reply1 = 'Oh. I see.';
					reply2 = 'That\'s a pretty stupid policy.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She gives you an incredulous look. Clearly, she doesn\'t believe you.] I\'m sorry, but we don\'t permit fleshlings to have their own accounts here. That\'s our policy.';
					convtext2 = 'Um...yes. Yes I am.';
					reply1 = 'Oh. I see.';
					reply2 = 'That\'s a pretty stupid policy.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She shrugs.] They don\'t pay me to make the rules. They just pay me to enforce them. Sorry.';
					convtext2 = 'That\'s a pretty stupid policy.';
					reply1 = 'Fine. So long.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Great. Do you have your master\'s account number handy? Or does your master wish to open a new account?';
					convtext2 = 'Um...yes. Yes I am.';
					if (openedAccount == true) {
						reply1 = '[Give her your account number.]';
					} else {
						reply1 = 'He needs to open a new account.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Great. What with the civil war going on, values in the war bonds market are skyrocketing. War bonds are very liquid--they\'re pegged to troop movements, so you can retrieve them any time a mission is completed. Returns are usually 25%, no compound interest. Got it?';
					convtext2 = 'He needs to open a new account.';
					reply1 = 'Yes.';
					reply2 = 'What do you mean, \'liquid\'?';
					reply3 = 'What do you mean, \'returns\'?';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Bonds are selling for 100 gold apiece right now. How many do you wish to buy?';
					convtext2 = '';
					reply1 = 'One.';
					reply2 = 'Two.';
					reply3 = 'Three.';
					reply4 = '[More options.]';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Bonds are selling for 100 gold apiece right now. How many do you wish to buy?';
					convtext2 = '';
					reply1 = 'Four.';
					reply2 = 'Five.';
					reply3 = 'Six.';
					reply4 = '[More options.]';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Bonds are selling for 100 gold apiece right now. How many do you wish to buy?';
					convtext2 = '';
					reply1 = 'Seven.';
					reply2 = 'Eight.';
					reply3 = 'Nine.';
					reply4 = 'I changed my mind.';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'All right--just come by when you\'re ready to pick them up!';
					convtext2 = '';
					reply1 = 'Okay, will do.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Sorry, it looks like you\'re short on gold. Just come back when you\'re ready.';
					convtext2 = '';
					reply1 = 'Okay, will do.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = '\'Liquid\' means, how easy is it to turn your bonds back into money again after you\'ve invested? All you need to do is return after the latest mission has been completed, and you can convert any bonds you\'ve bought back into gold. Got it?';
					convtext2 = 'What do you mean, \'liquid\'?';
					reply1 = 'Yes.';
					reply2 = 'What do you mean, \'returns\'?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = '\'Returns\' means, how much money do you make on your investment? A 25% return, for example, means you make back your original money, plus an amount equal to a quarter of that money on top of it. Got it?';
					convtext2 = 'What do you mean, \'returns\'?';
					reply1 = 'Yes.';
					reply2 = 'What do you mean, \'liquid\'?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'So, how can I help you today?';
					convtext2 = '';
					reply1 = 'I want to cash out bonds.';
					reply2 = 'I want to see how many bonds I\'ve got.';
					reply3 = 'I want to buy more bonds.';
					reply4 = 'Nothing, actually.';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'No problem. [She thumbs through the ledger.] It looks like there are ' + amtInAccount + ' bonds in your master\'s account at the moment.';
					convtext2 = 'I want to see how many bonds I\'ve got.';
					reply1 = 'I want to cash out my bonds.';
					reply2 = 'That\'s all I wanted. Thanks.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She thumbs through the ledger.] I\'m sorry, but it looks like there haven\'t been any completed missions since these bonds were purchased. You\'ll have to return later.';
					convtext2 = 'I want to cash out my bonds.';
					reply1 = 'I want to see how many bonds I\'ve got.';
					reply2 = 'Fine. I\'ll be back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She thumbs through the ledger.] All right. Your master will be getting ' + amtDue + ' gold in exchange for his bonds.';
					convtext2 = 'I want to cash out bonds.';
					reply1 = 'Sounds good.';
					reply2 = 'Actually, I\'ll come back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Here you are--please thank your master for us!';
					convtext2 = 'Sounds good.';
					reply1 = 'Uh, will do.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 19) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Sorry, we only permit one set of bonds to be purchased at a time. You\'ll need to cash out your master\'s old bonds first.';
					convtext2 = 'I want to buy more bonds.';
					reply1 = 'In that case, I want to cash out bonds.';
					reply2 = 'I\'ll be back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She thumbs through the ledger.] I\'m sorry, this account appears to have no bonds at the moment. Would you like to purchase some?';
					convtext2 = 'I want to cash out bonds.';
					reply1 = 'Yes, please.';
					reply2 = 'Actually, I\'ll come back later.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'snarl1') {
				speaker1 = 'Snarl';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(19);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					ConvBox.portraitFinder.gotoAndStop(19);
					speaker2 = '';
					convtext1 = '[It\'s Snarl. You don\'t know how you know this, but you\'re sure that he usually hangs out around here. His voice appears in your mind as you approach.] Well, what a pleasant surprise. It\'s General Tastidian\'s little pet. Are you lost, fleshling?';
					convtext2 = '';
					reply1 = 'Where am I, again?';
					reply2 = 'I\'m looking for something...';
					reply3 = 'I need to find someone...';
					reply4 = 'Nope. See you later.';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Snarl jeers at you.] Ridiculous creature, where do you think you are? You are in Somnus, capital of the Shadowlands! Do you see that spectacular edifice over there? That is how you know you are in the presence of a true civilization.';
					convtext2 = 'Where am I, again?';
					reply1 = 'Yup. That sure is a pretty building. Well, see ya.';
					reply2 = 'Well, I don\'t see what\'s so great about it.';
					reply3 = 'What\'s the story behind that place, anyway?';
					reply4 = 'Never mind.';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[The sound of Snarl\'s voice reverberating in your mind takes on a sudden, frightening intensity.] Fool, do not tempt me! Tastidian\'s plaything or not, you are still edible.';
					convtext2 = 'Well, I don\'t see what\'s so great about it.';
					reply1 = 'Well when you put it that way...';
					reply2 = 'My my, aren\'t we touchy?';
					reply3 = 'What\'s the story behind that place, anyway?';
					reply4 = 'Forget I said anything.';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[His scowl lifts a little.] No one knows. It is said that our Immortal Queen conjured it up out of the air using only her mind. She is a goddess. I can only pray that I get to meet her one day...';
					convtext2 = 'What\'s the story behind that place, anyway?';
					reply1 = 'Wow. Truly fascinating. Well, look at the time!';
					reply2 = 'Actually, I wanted to ask you something else.';
					reply3 = 'Tell me more about your queen.';
					reply4 = 'Never mind.';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'She is a beautiful, mysterious being, and the mother of our race. Few have had the privilege to meet her. [His eyes narrow at you suddenly.] ...I would kill any filthy flesh creature who dared to defile her with his presence...';
					convtext2 = 'Tell me more about your queen.';
					reply1 = 'Wow. Good to know. Well, look at the time--bye!';
					reply2 = 'Thanks...I think.';
					reply3 = 'Actually, I wanted to ask you something else.';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Animal, you ask too many questions. What do you wish to know?';
					convtext2 = 'Actually, I wanted to ask you something else.';
					reply1 = 'Where am I, again?';
					reply2 = 'I\'m looking for something...';
					reply3 = 'I need to find someone...';
					reply4 = 'Never mind.';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yes, fleshling. Hurry up and tell me what you\'re looking for so I can get rid of you.';
					convtext2 = 'I\'m looking for something...';
					reply1 = 'Headquarters.';
					reply2 = 'The palace.';
					reply3 = 'A place to train.';
					reply4 = 'A place to assist the fallen.';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Fine, fine. Who do you need to find?';
					convtext2 = 'I need to find someone...';
					reply1 = 'Tastidian.';
					reply2 = 'Thallion.';
					reply3 = 'The Queen.';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Snarl gives you a strange look.] You mean the humongous barracks just south of here? You can\'t seriously mean that you didn\'t know that was there. I mean, the road leads straight there.';
					convtext2 = 'Headquarters.';
					reply1 = 'Thanks.';
					reply2 = 'Geez, it was a simple question.';
					reply3 = 'Actually, I wanted to ask you something else.';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Snarl glares at you.] Are you blind, or just stupid? Do you not see that immense structure towering over us all in the center of the city? [He gestures to the north. Come to think of it, that huge castle WOULD be kind of hard to miss.]';
					convtext2 = 'The palace.';
					reply1 = 'Thanks.';
					reply2 = 'Geez, it was a simple question.';
					reply3 = 'Actually, I wanted to ask you something else.';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Do I look like a soldier to you? I have no idea. Maybe Hellion knows--he used to do a lot of training work for Tastidian.';
					convtext2 = 'A place to train.';
					reply1 = 'Thanks.';
					reply2 = 'Geez, it was a simple question.';
					reply3 = 'Actually, I wanted to ask you something else.';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Snarl scowls.] The Office of the Queen\'s Servant. Just southwest of here. You\'d better not be getting our men killed, fleshling...';
					convtext2 = 'A place to assist the fallen.';
					reply1 = 'Thanks.';
					reply2 = 'Geez, it was a simple question.';
					reply3 = 'Actually, I wanted to ask you something else.';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I last saw him north of here on the way to the palace.';
					convtext2 = 'Tastidian.';
					reply1 = 'Thanks.';
					reply2 = 'Actually, I wanted to ask you something else.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'The gem baron? He lives in that large manor on the east side of the street.';
					convtext2 = 'Thallion.';
					reply1 = 'Thanks.';
					reply2 = 'Actually, I wanted to ask you something else.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[You sense a sudden wave of intense hostility coming from Snarl--it feels like heat washing over you.] Stupid animal! Do you think you can just march right up to the palace and get an audience with our Queen? [His claws clench.]';
					convtext2 = 'The Queen.';
					reply1 = 'You\'re right. Forget I asked.';
					reply2 = 'Actually, I wanted to ask you something else.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'lala1') {
				speaker1 = 'Lala';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(22);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[She gives you a wary look up and down as you approach. Her emanations are not unfriendly, however. Her voice sounds weathered as it echoes in your head.] Well, hello. This is a pretty dangerous place for a soft-fleshed animal like yourself. Why, I wonder, would you be here?';
					convtext2 = '';
					reply1 = 'I\'m a slave.';
					reply2 = 'That\'s none of your business.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, of course, how silly of me.';
					convtext2 = 'I\'m a slave.';
					reply1 = 'How do you like living in this city?';
					reply2 = 'Um...why are you...green?';
					reply3 = 'Well, I\'ll be leaving then.';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I like it just fine. Somnus is the cultural capital of the world, you know. There\'s always something going on. Good climate, too. No earthquakes. No floods. Nice, cool temperatures. I can\'t complain, really. Except...';
					convtext2 = 'How do you like living in this city?';
					reply1 = 'Except what?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well, it\'s nothing really. It\'s just that I have a little problem with some insects in my basement.';
					convtext2 = 'Except what?';
					reply1 = 'I can help you with that.';
					reply2 = 'Let\'s talk about something else.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Actually, I have some errands to take care of. Perhaps some other time.';
					convtext2 = 'Let\'s talk about something else.';
					reply1 = 'Nice meeting you.';
					reply2 = 'Later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[The sound of laughter echoes in your head.] Silly fleshling. We \'green\' when we age. Don\'t look surprised, now! Aging is a lot less unpleasant for us, I think, than it is for you little humans.';
					convtext2 = 'Um...why are you...green?';
					reply1 = 'How do you like living in this city?';
					reply2 = 'Let\'s talk about something else.';
					reply3 = 'Huh. Well, that\'s all I wanted to know. Bye.';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What a polite young human! I do appreciate the help. When you\'re ready, just head right down those stairs...';
					convtext2 = 'I can help you with that.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello again. Have you had any luck with the insects?';
					convtext2 = '';
					reply1 = 'Not yet.';
					reply2 = '[Lie.] Yes ma\'am.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, okay. Just let me know when you\'ve gotten the buggers. They do make an awful mess down there!';
					convtext2 = 'Not yet.';
					reply1 = 'Okay.';
					reply2 = 'Sure, later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hm. You\'re telling me the truth, right? Maybe you\'d better go down there and double-check.';
					convtext2 = 'Yes ma\'am.';
					reply1 = 'Oh, okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello again. Have you had any luck with the insects?';
					convtext2 = '';
					reply1 = 'Yes ma\'am.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hm. Let me go check. Not that I don\'t trust humans, but... [She floats down the stairs, then returns.] Wonderful! What a nice young fleshling. Here, let me give you something. I have an old antique you might like. Or would you prefer gold?';
					convtext2 = 'Yes ma\'am.';
					reply1 = 'Gold, please.';
					reply2 = 'I\'ll take the antique.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'As you wish. [She floats downstairs, then returns with a small sack of coins.] Here you go. Go buy yourself something nice!';
					convtext2 = 'Gold, please.';
					reply1 = 'Thank you!';
					reply2 = 'Really? That\'s it? Geez.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She smiles, obviously pleased. She floats downstairs, then returns with a small sack.] Take good care of this. This belonged to my husband, a long time ago.';
					convtext2 = 'I\'ll take the antique.';
					reply1 = 'Thank you! [Look inside.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'You open up the sack. Inside you see a ball a little larger than your fist, made out of white glass. It shines faintly. The hairs on your arm are standing on end--there is plainly some kind of power emanating from it.';
					convtext2 = '';
					reply1 = '[Touch it.]';
					reply2 = '...maybe I\'ll just leave this in HQ.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'You reach down and touch the orb. Your eyes are suddenly filled with brilliant, searing light. There is a roaring in your ears. And suddenly, you can see again, though everything seems very dim now.';
					convtext2 = '';
					reply1 = 'Odd. Maybe I should leave this in HQ...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello! It\'s always a pleasure to see you.';
					convtext2 = '';
					reply1 = 'Likewise. Have a good day!';
					reply2 = 'Yeah, you too.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'flavin1') {
				speaker1 = 'Shadowling';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(19);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[An agitated voice appears in your mind as you approach.] Well, aren\'t you a cheeky little fleshling! Just run around barging into peoples\' homes uninvited, do you?';
					convtext2 = '';
					reply1 = '[Leave quickly.]';
					reply2 = 'I go where I please, fool.';
					reply3 = 'Why are you so upset?';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What?! Why, you little beast--I\'ll rip open your skull and turn your cerebral lobes into earrings...';
					convtext2 = 'I go where I please, fool.';
					reply1 = 'Big words. Try acting on them...';
					reply2 = 'Bring it on!';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[You can feel the shadowling\'s anger emanating in thick waves as it swoops towards you...]';
					convtext2 = 'Big words. Try acting on them...';
					reply1 = '[Defend yourself.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[You can feel the shadowling\'s anger emanating in thick waves as it swoops towards you...]';
					convtext2 = 'Bring it on!';
					reply1 = '[Defend yourself.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He leans forward, his eyes narrowing.] Because you smell. All of you. You reek of sweat and soft, spongy tissue. We don\'t need your kind here in our city. Now get out.';
					convtext2 = 'Why are you so upset?';
					reply1 = '[Leave quickly.]';
					reply2 = 'I go where I please, fool.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[His voice rumbles deeply in your mind.] Get the hell out of my house, you son of a bitch. I\'ve already Contacted General Tastidian telling him what you\'ve done.';
					convtext2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[His voice rumbles deeply in your mind.] Get the hell out of my house. Now.';
					convtext2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[An agitated voice appears in your mind as you approach.] Well, aren\'t you a cheeky little fleshling! Just run around barging into peoples\' homes uninvited... [His voice trails off. You notice him eyeing your Spin Saw.] Where ever did you get that?';
					convtext2 = '';
					reply1 = 'Nowhere in particular. You want it?';
					reply2 = 'Forget it, pal. It\'s mine.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					speaker1 = 'Flavin';
					ConvBox.gotoAndStop(2);
					convtext1 = '[He drums the tips of his fingers together.] Sorry I was...gruff...before. My name\'s Flavin. I\'ve always wanted one of those things. Ever since I left the army. I\'ll pay you 1000 gold for it.';
					convtext2 = 'Nowhere in particular. You want it?';
					reply1 = 'Wow, okay. Deal!';
					reply2 = 'Actually, I\'d better not.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					speaker1 = 'Flavin';
					ConvBox.gotoAndStop(2);
					convtext1 = '[He runs a finger over the edge of it.] A lovely specimen. [Reluctantly, he pulls himself away from the saw and returns to you with a sack of gold.] Here you go. Let me know if you find any more of those things.';
					convtext2 = 'Wow, okay. Deal! [You hand him the Spin Saw.]';
					reply1 = 'Yeah, okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					speaker1 = 'Flavin';
					speaker2 = '';
					ConvBox.gotoAndStop(1);
					convtext1 = '[He forces a grin onto his face.] Well, if it isn\'t my favorite...fleshling. Have anything for me?';
					convtext2 = '';
					reply1 = 'Not today.';
					if (gotSaw == true) {
						reply1 = 'Yes, actually.';
					}
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					speaker1 = 'Flavin';
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good. A Spin Saw, I take it. [He drums the tips of his fingers together.] I\'ll pay you 1000 gold for it.';
					convtext2 = 'Yes, actually.';
					reply1 = 'Wow, okay. Deal!';
					reply2 = 'Actually, I\'d better not.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'vagrant1') {
				speaker1 = 'Vagrant';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(21);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He floats up to you somewhat unevenly. His voice sounds gravelly and worn as it echoes in your mind.] You there! Young flesh creature! Come try your hand in a game of skill! My money is yours to win. [He cracks a toothy grin, as though pleased at the thought of giving you his money.]';
					convtext2 = '[This shadowling looks disheveled, with a strong, unpleasant musk.]';
					reply1 = 'How much money, exactly?';
					reply2 = 'Forget it, pal.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Two hundred gold. Winner take all. [He hacks out a nasty-sounding cough.] Lucy says you\'re guaranteed to win.';
					convtext2 = 'How much money, exactly?';
					reply1 = 'Sure. Let\'s do it.';
					reply2 = 'Are you kidding? Get lost.';
					reply3 = 'Who is Lucy?';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He winks at you. He lifts up his hand and shows you the back of it. There is a tattoo of a monkey there with the word \'Lucy\' underneath.';
					convtext2 = 'Who is Lucy?';
					reply1 = 'Sure. Let\'s do it.';
					reply2 = 'Weirdo. I\'m out of here.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Without a word, he produces a small board covered with a cloth, with 3 small cups arranged upside-down on top of it. He lifts the center one. There is a small pearl beneath it. He places the cup back down, and begins moving the cups around.]';
					convtext2 = 'Sure. Let\'s do it.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(1);
					convtext1 = '[This guy is awfully fast. Too fast. His hands are practically a blur. You\'re not sure which cup is which now. He stops.] Where do you think the pearl is?';
					convtext2 = '';
					speaker2 = '';
					reply1 = 'The cup on the left.';
					reply2 = 'The cup in the center.';
					reply3 = 'The cup on the right.';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(1);
					convtext1 = '[He lifts up the cup. There is nothing underneath. He grins at you, and begins breathing heavily, as though trying not to laugh.] I guess Lucy isn\'t always right after all. [He stops smiling suddenly.] Now pay up.';
					convtext2 = '';
					speaker2 = '';
					reply1 = '[Give him the gold.]';
					reply2 = 'Over my dead body!';
					reply3 = '';
					if (mainCharAptitude > 9) {
						reply3 = 'Actually, I was right.';
					}
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He grins, then lets out a series of wheezing coughs.] A pleasure...doing business with you.';
					convtext2 = '[You hand him 200 gold, disgusted with yourself for being so gullible.]';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Suddenly, you notice two other shadowlings behind you on either side. He wheezes.] We\'ll see about that.';
					convtext2 = '[You hand him ' + showTakenMoney + ' gold.] I\'m a little short.';
					reply1 = '[Defend yourself.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Suddenly, you notice two other shadowlings behind you on either side. The vagrant wheezes.] Sounds like a deal.';
					convtext2 = 'Over my dead body!';
					reply1 = '[Defend yourself.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He narrows his eyes.] What are you talking about?';
					convtext2 = 'Actually, I was right.';
					reply1 = '[Explain.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker1 = mainCharName;
					speaker2 = 'Vagrant';
					ConvBox.portraitFinder.gotoAndStop(50);
					convtext1 = 'You asked me which cup I thought the pearl was under. I told you which cup I thought the pearl was under. I answered your question exactly right.';
					convtext2 = '[He looks at you aghast.] Wha--what...';
					reply1 = 'Come on, a deal is a deal.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Your mind is suddenly assaulted by a flood of curses.] Rotten, filthy cheat! [Angrily, he slams 50 coins down on the ground.] Take \'em! That\'s all I have.';
					convtext2 = 'Come on, a deal is a deal.';
					reply1 = 'I\'ll be taking those, thanks.';
					reply2 = 'Whatever. Keep them, if you care so much.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					ConvBox.gotoAndStop(1);
					convtext1 = '[He smiles at you, and wheezes out a laugh.] Is the little flesh creature back for more?';
					convtext2 = '';
					speaker2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					ConvBox.gotoAndStop(1);
					convtext1 = '[He glares at you, baring his teeth.]';
					convtext2 = '';
					speaker2 = '';
					reply1 = 'Maybe I\'d better leave.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'thallion1') {
				speaker1 = 'Shadowling';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(17);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(2);
					ConvBox.portraitFinder.gotoAndStop(17);
					convtext1 = '[This shadowling carries himself with a great deal of self-importance. He gives you a withering look.] I hope you\'re here on business for your master, and not just barging into my manor uninvited.';
					convtext2 = 'Excuse me.';
					reply1 = 'Oh. Sorry.';
					reply2 = '';
					if (spokeToJack == 0) {
						reply2 = 'Who are you?';
					}
					if (spokeToJack > 0) {
						reply2 = 'Are you Thallion?';
					}
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That is none of your business. Leave, before I call the guards.';
					convtext2 = 'Who are you?';
					reply1 = 'Such hospitality!';
					reply2 = 'Thanks a lot, jerk.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					speaker1 = 'Thallion';
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yes. Are you here regarding the purchase of the slave?';
					convtext2 = 'Are you Thallion?';
					reply1 = 'Yes, as a matter of fact I am.';
					reply2 = 'No. Slavery is wrong.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					speaker1 = 'Thallion';
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good. As you may recall from my posted advertisement, this slave has proven most unsatisfactory to me. He simply mopes about, performing his assigned duties without diligence or enthusiasm.';
					convtext2 = 'Yes, as a matter of fact I am.';
					reply1 = 'Uh huh.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					speaker1 = 'Thallion';
					speaker2 = '';
					ConvBox.gotoAndStop(1);
					convtext1 = 'Here I go to the expense of paying for his food and upkeep, and provide him a place to sleep, and he responds with utter ingratitude! I\'d kick him out, but I want to recoup my investment.';
					convtext2 = '';
					reply1 = 'Okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					speaker1 = 'Thallion';
					speaker2 = '';
					ConvBox.gotoAndStop(1);
					convtext1 = 'As you may recall, I\'m asking only 500 gold, a mere pittance in today\'s slave market. Do you have the necessary gold with you?';
					convtext2 = '';
					reply1 = 'Yes.';
					reply2 = 'Actually, I don\'t have it on me right now.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					speaker1 = 'Thallion';
					ConvBox.gotoAndStop(2);
					convtext1 = 'I will not sit and be lectured to by a filthy animal in my own home! Leave, before I call the guards.';
					convtext2 = 'No. Slavery is wrong.';
					reply1 = 'Gladly.';
					reply2 = 'You\'ll get yours sooner or later...';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					speaker1 = 'Thallion';
					ConvBox.gotoAndStop(2);
					convtext1 = '[He counts your gold, and frowns.] This is not 500 gold, you ignoramus! Return when you\'ve learned how to count.';
					convtext2 = 'Yes.';
					reply1 = 'Oops. I\'ll be back.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					speaker1 = 'Thallion';
					ConvBox.gotoAndStop(2);
					convtext1 = '[He counts your gold.] Good. Now take him and begone. I have important matters to attend to.';
					convtext2 = 'Yes.';
					reply1 = 'All right.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					speaker1 = 'Thallion';
					ConvBox.gotoAndStop(2);
					convtext1 = '[His eyes narrow at you.] I am a very important, busy individual. Do you understand me, slave? Leave, and do not return until you have my asking price.';
					convtext2 = 'Actually, I don\'t have it on me right now.';
					reply1 = 'I\'ll be back.';
					reply2 = 'Thanks for nothing.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					speaker1 = 'Thallion';
					speaker2 = '';
					ConvBox.gotoAndStop(1);
					convtext1 = 'What are you still doing here? We have no more business to attend to. Begone.';
					convtext2 = '';
					reply1 = 'Sorry.';
					reply2 = '[Leave.]';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					speaker1 = 'Thallion';
					ConvBox.gotoAndStop(2);
					convtext1 = '[He counts your gold and frowns.] Fine. This is close enough--I just want this done with. Now take him and begone. I have important matters to attend to.';
					convtext2 = 'Yes.';
					reply1 = 'Thank you!';
					reply2 = 'With pleasure.';
					reply3 = '';
					reply4 = '';
				}
			}
		}
		function conv02() {
			if (convID == 'pete1') {
				speaker1 = 'Pirate Pete';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[This fellow\'s mind is exceptionally easy to read: he\'s drunk, his name is Pete, and he wants you to do him a favor. He looks over.] Ahoy there!...matey. [He hiccups.] That wouldn\'t happen to be yer ship over there, would it?';
					convtext2 = '';
					reply1 = 'No. Now go away.';
					reply2 = 'Yes. What do you want?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well, I guess there\'s jes\' no...pleasin\' some people! [He lets out a tremendous belch.]';
					convtext2 = 'No. Now go away.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He begins to wail.] Ohhhh! Me poor ship! Smashed to ruins by those narsty flyin\' beasts over on the lake. And all me gold, washed ashore. Where? I don\'t know.';
					convtext2 = 'Yes. What do you want?';
					reply1 = 'So what do you want?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Ye look like a kind soul. Surely ye wouldn\'t mind helpin\' out Ole\' Pete? An\'...I\'ve got a bee-u-tiful, loverly piece of sea glass ye might like. I\'ll give it to ye if ye help me.';
					convtext2 = 'So what do you want?';
					reply1 = 'Fine, fine. What should I do?';
					reply2 = 'No. Now go away.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Scour the lake! Leave no stone unturned! Find me treasure! There be four chests. Be quick about it, though--if the beasts spot ye, ye\'ll have to try again!';
					convtext2 = 'Fine, fine. What should I do?';
					reply1 = 'All right, I\'m ready.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh! Me beauties! [He kneels down, closes his eyes, and wraps his arms around one of the chests. Finally, after what seems like five minutes, he gets back up.] Thank ye kindly, stranger.';
					convtext2 = 'I found your treasure.';
					reply1 = 'How about that sea glass?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yar, of course, of course... [He mumbles incoherently as he begins slowly going through the pouches around his waist. Finally, he chooses one and hands it to you.]';
					convtext2 = 'How about that sea glass?';
					reply1 = '[Look inside the pouch.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'You open up the pouch. Inside you see a ball a little larger than your fist, made out of green glass. It shines faintly. The hairs on your arm are standing on end--there is plainly some kind of power emanating from it.';
					convtext2 = '';
					reply1 = '[Touch it.]';
					reply2 = '...maybe I\'ll just leave this in HQ.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'You reach down and touch the orb. Your limbs begin to tingle, and suddenly, you can practically feel blood roaring through your veins, as if you had been pumped full of adrenaline. You\'ve never had this much physical energy before--you feel like you could run a mile.';
					convtext2 = '';
					reply1 = 'Odd. Maybe I should leave this in HQ...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Thank you for findin\' me treasure. Yar.';
					convtext2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Right. Ye might want to take care o\' those beasties loungin\' around on yer boat first, though. Then come talk to Ole Pete.';
					convtext2 = 'All right, I\'m ready.';
					reply1 = 'Beasties, huh? Hm...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'gelf1') {
				speaker1 = 'Gelf';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(26);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Oh NO! N-n-n-n-no. Who are you? Not lousy mercenary, yes? They cuts down our trees, kills our pets. [He leans in toward you and sniffs you.] You smells like mercenary. But you not looks like mercenary. Well! Welcome to Gelf shop!';
					convtext2 = '';
					reply1 = 'What do you have for sale?';
					reply2 = 'Um, okay. Bye.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Gelf have many great things for sale! You like gaggets?';
					convtext2 = 'What do you have for sale?';
					reply1 = '\'Gaggets\'?';
					reply2 = 'Um, yes. Yes I do.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He growls.] Gaggets! Gaggets! They piece of giants, walk around, smash everything! You want?';
					convtext2 = '\'Gaggets\'?';
					reply1 = 'I have no idea what you\'re talking about.';
					reply2 = 'Um, yes. Yes I do.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Gah! You impossible! Leave Gelf store!';
					convtext2 = 'I have no idea what you\'re talking about.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good! Gelf have two gaggets from lousy mercenaries. One, a thing, give giants strength. Four hundreds gold. Two a thing, they breath fire. Four hundreds gold. You want, yes?';
					convtext2 = 'Um, yes. Yes I do.';
					reply1 = 'I\'ll take thing one.';
					reply2 = 'I\'ll take thing two.';
					reply3 = 'Forget it.';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He takes your gold, then hands you a compact but extremely heavy metal box. The word \'capacitor\' is scrawled on the side.] Thanks you. Goodbye!';
					convtext2 = 'I\'ll take thing one.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He takes your gold, then hands you an elaborate contraption with a long metal tube at the end.] Thanks you. Goodbye!';
					convtext2 = 'I\'ll take thing two.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'No good! You needs gold to pay Gelf.';
					convtext2 = '';
					reply1 = 'Okay, I\'ll be back later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello and back! You want gaggets, yes? Gelf have two gaggets from lousy mercenaries. One, a thing, give giants strength. Four hundreds gold. Two a thing, they breath fire. Four hundreds gold.';
					convtext2 = '';
					reply1 = 'I\'ll take thing one.';
					reply2 = 'I\'ll take thing two.';
					reply3 = 'No thanks. Bye.';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello! You want gaggets, yes? Gelf have one gaggets from lousy mercenaries: a thing, give giants strength. Four hundreds gold.';
					convtext2 = '';
					reply1 = 'I\'ll take it.';
					reply2 = 'No thanks. Bye.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello! You want gaggets, yes? Gelf have one gaggets from lousy mercenaries: a thing, they breath fire. Four hundreds gold.';
					convtext2 = '';
					reply1 = 'I\'ll take it.';
					reply2 = 'No thanks. Bye.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello! You want gaggets, yes? Gelf have no gaggets. Return later?';
					convtext2 = '';
					reply1 = 'Um, okay.';
					reply2 = 'Thanks for nothing.';
					reply3 = 'Do you have something other than gaggets?';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Gelf slaps himself in the forehead.] Yes, off course! Gelf stupid. We haves a precious antique lamp. Beautiful. Priceless. 1000 gold. You want?';
					convtext2 = 'Do you have something other than gaggets?';
					reply1 = 'No thanks.';
					reply2 = 'Sure.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Gelf takes your gold, then hands you an ornate bronze lamp shaped like a flower.] Thanks you. Goodbye!';
					convtext2 = 'Sure.';
					reply1 = '[Examine the lamp.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(6);
					convtext1 = '[You examine the lamp. The craftsmanship is simply remarkable--the twists and turns of the lamp\'s \'stem\' are almost hypnotic, and lifelike leaves protrude at regular intervals. It culminates in an indigo stained glass lampshade shaped like the petals of a half-open flower.]';
					reply1 = '...maybe I\'d better leave this in HQ.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'You examine the lamp. The craftsmanship is simply remarkable--the twists and turns of the lamp\'s \'stem\' are almost hypnotic, and lifelike leaves protrude at regular intervals. It culminates in an indigo stained glass lampshade shaped like the petals of a half-open flower. Oddly enough, you notice a faint glow emanating from the lampshade as you hold it.';
					reply1 = '[Reach in and remove the bulb.]';
					reply2 = '...maybe I\'d better leave this in HQ.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'You reach into the lamp and grasp the bulb. Instantly, a sense of calmness and security comes over you. You feel you have the power to reach out and deflect all harm from yourself and those around you.';
					reply1 = '...maybe I\'d better leave this in HQ.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'No. Much sorries! You return later?';
					convtext2 = 'Do you have something other than gaggets?';
					reply1 = 'Sure.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'darkling1') {
				speaker1 = 'Darkling';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(2);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[This shadowling is small and full of energy. Something about him tells you he is young.] The name\'s Darkling the Magnificent, Greatest Assassin in the Known World. You can call me Darkling for short.';
					convtext2 = 'Who are you?';
					reply1 = 'Tell me about yourself.';
					reply2 = 'A little full of yourself, aren\'t you?';
					reply3 = 'I think I\'ve heard enough for now.';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He glares at you.] Full of myself! What, you think just \'cause I\'m young, I can\'t get the job done? Huh? [He taps the side of his head.] This mind is a lethal weapon, buddy. Lethal.';
					convtext2 = 'A little full of yourself, aren\'t you?';
					reply1 = 'Tell me about yourself.';
					reply2 = 'I think I\'ve heard enough for now.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m small, but damn quick! I love taking down healers and ranged units who think they\'re safely out of reach. [He smirks toothily.] It\'s hard being so talented sometimes, but you know: it\'s a living.';
					convtext2 = 'Tell me about yourself.';
					reply1 = 'A little full of yourself, aren\'t you?';
					reply2 = 'I think I\'ve heard enough for now.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'shadowboxer1') {
				speaker1 = 'Shadowboxer';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(3);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'The name\'s Shadowboxer--I\'m Darkling\'s older brother. That stupid runt is going to get himself killed, running around boasting the way he does.';
					convtext2 = 'Who are you?';
					reply1 = 'Brother? Really?';
					reply2 = 'Tell me about yourself.';
					reply3 = 'I think I\'ve heard enough for now.';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah, brother. What, you think we don\'t have families or something? You think we just sprout from magic beans? Anyway... [he glances around nervously] ...I don\'t know that I even believe that story about the Queen creating our race to begin with. It sounds like a lot of hooey if you ask me. Just don\'t tell anyone I said that.';
					convtext2 = 'Brother? Really?';
					reply1 = 'Hm, okay.';
					reply2 = 'You\'re probably right--but yes, let\'s drop it.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'There\'s not much to tell. Darkling and I are two of the youngest inductees ever admitted into the Assassin\'s Cult, though I\'m older than he is.';
					convtext2 = 'Tell me about yourself.';
					reply1 = 'What do assassins do?';
					reply2 = 'I think I\'ve heard enough for now.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We get behind enemy lines and take down weaker units. [He pauses, looking you up and down.] You know, I\'ve heard you\'re some kind of Psy prodigy. I look forward to seeing what you can do.';
					convtext2 = 'What do assassins do?';
					reply1 = 'Thanks...I think.';
					reply2 = 'You\'ll see soon enough.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Shadowboxer\'s teeth are gritted.] Have you ever seen your brother die right in front of you, ' + mainCharName + '? Those...animals. They\'ll pay for what they did to Darkling. [He turns away from you.]';
					convtext2 = 'Hey, Shadowboxer. How are you holding up?';
					reply1 = 'Don\'t worry--we\'ll get Darkling back.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'jack1') {
				speaker1 = 'Gamblin\' Jack';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(12);
				if (convBranch == 1) {
					speaker1 = 'Slave';
					ConvBox.gotoAndStop(2);
					convtext1 = '[You see a man wearing a tattered, filthy guard uniform and a slave bracelet. He looks up at you wearily. He looks strangely familiar, though you can\'t quite place him.] Yeah?';
					convtext2 = 'Excuse me.';
					reply1 = 'Is your master around?';
					reply2 = '';
					if (mainCharAptitude > 6) {
						reply2 = 'Gamblin\' Jack? Is that you?';
					}
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					speaker1 = 'Slave';
					ConvBox.gotoAndStop(2);
					convtext1 = 'He should be around here somewhere. Try looking in the back.';
					convtext2 = 'Is your master around?';
					reply1 = 'Thanks.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He peers closely at you, and is silent for a moment.] ' + mainCharName + '. I remember you.';
					convtext2 = 'Gamblin\' Jack? Is that you?';
					reply1 = 'What happened to you?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He holds up his wrist for you to see.] This happened. See...the number of abductions around the Academy was increasing, and we stepped up our patrols. We ran into a large group of shadowlings one day... [He coughs.]';
					convtext2 = 'What happened to you?';
					reply1 = 'Go on.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We were outnumbered, so I figured we\'d have a better shot with some...diplomacy. I talked their commander into settling things with a dice game. Better odds, right? [He spits bitterly.]	Yeah, not really.';
					convtext2 = 'Go on.';
					reply1 = 'So much for gambling, huh?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He shrugs.] That\'s not just gambling--it\'s life. Sometimes you win, sometimes you lose. Sometimes you lose big. [He chuckles humorlessly.] I lost my freedom. That\'s as big as it gets, I suppose.';
					convtext2 = 'So much for gambling, huh?';
					reply1 = 'What happened to the others?';
					reply2 = 'What are you going to do?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He squints and scratches his head.] My memory\'s a little hazy ever since they slapped this thing on me. I think they let them go. But really, it\'s all just dust in the wind now. I\'m stuck here till I die or someone buys me from Thallion.';
					convtext2 = 'What happened to the others?';
					reply1 = 'How much?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What can I do? [He glares at the bracelet on his wrist.] This stupid thing stops me every time I try to escape. I\'m stuck here till I die or someone buys me from Thallion.';
					convtext2 = 'What are you going to do?';
					reply1 = 'How much?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He looks at you queerly for a second, as though he can\'t bring himself to believe you just said that. A small smile breaks onto his face.] 500 gold.';
					convtext2 = 'How much?';
					reply1 = 'I\'ll be back.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					speaker2 = '';
					ConvBox.gotoAndStop(1);
					convtext1 = 'Hey ' + mainCharName + ', have you caught hold of Thallion yet? [You can\'t help but note a hint of carefully suppressed desperation in his voice.]';
					convtext2 = '';
					reply1 = 'No, but I\'ll be back.';
					reply2 = 'Be patient--I just need more money.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[His eyes light up for a second, then he stops himself.] Oh, that\'s...great. [You suddenly realize that he\'s waiting for you to state your intentions.]';
					convtext2 = 'I\'ve purchased you from Thallion.';
					reply1 = 'Look, I\'m going to set you free.';
					reply2 = 'Say goodbye to Thallion--you\'re MY slave, now!';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He breathes a sigh of relief. His eyes have welled up with tears.] ' + mainCharName + ', you\'re...a good person. I owe you. Big time. But I don\'t want to travel alone up to the surface. And besides, you\'re still enslaved. I will fight beside you until both of us are free!';
					convtext2 = 'Look, I\'m going to set you free.';
					reply1 = 'Thanks, Jack. I\'ll see you at headquarters.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He becomes instantly stone-faced.] I...should have known this would happen.';
					convtext2 = 'Say goodbye to Thallion--you\'re MY slave, now!';
					reply1 = 'Go to headquarters. When I need you, you\'ll know.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'I need to get my things. I\'ll see you at headquarters.';
					convtext2 = '';
					reply1 = 'Okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'jack2') {
				speaker1 = 'Gamblin\' Jack';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(12);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '.';
					convtext2 = '';
					reply1 = 'Hey Jack, wanna gamble?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Now, what kind of a question is that? Does the sun want to shine? Does the wind want to blow? Name your poison, kid.';
					convtext2 = 'Hey Jack, wanna gamble?';
					reply1 = 'Dice.';
					reply2 = 'Cards.';
					reply3 = 'Actually, never mind.';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Okay, here\'s the rules. First I throw two dice, then you throw two dice. The higher roll wins. Winner take all. Got it?';
					convtext2 = 'Dice.';
					reply1 = 'Yeah, let\'s play!';
					reply2 = 'Let\'s play something else.';
					reply3 = 'Actually, never mind.';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'All right. The bet starts off at 5 gold, then increases by 5 with every die roll. If you back out, we\'ll have to start over.';
					convtext2 = 'Yeah, let\'s play!';
					reply1 = 'Okay, that sounds fine. [Take the dice.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Jack rolls ' + jackRoll + '. You roll ' + mainCharRoll + '.] Well--it looks like ' + winState + '. Ready for another roll? The bet will be for ' + bet + ' gold this time. Don\'t chicken out, now!';
					convtext2 = '[You pick up a pair of six-sided dice and give them a roll.]';
					reply1 = 'Sure, why not. [Take the dice.]';
					reply2 = 'Let\'s play something else.';
					reply3 = 'That\'s all for now, thanks.';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[You reach for the dice, but Jack stops you.] Sorry, kid--it looks like today just isn\'t your day. Better stop now before you go into debt.';
					convtext2 = '';
					reply1 = 'Good point. Maybe next time...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m up for anything. Name your poison, kid.';
					convtext2 = 'Let\'s play something else.';
					reply1 = 'Dice.';
					reply2 = 'Cards.';
					reply3 = 'Actually, never mind.';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[You reach for the dice, but Jack stops you.] Sorry, kid--you\'re gonna drive me back into slavery at this rate! We\'d better stop for now.';
					convtext2 = '';
					reply1 = 'Fair enough. Until next time...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[You reach for the dice, but Jack stops you.] Actually, on second thought...I have a feeling I\'d better keep my winnings. Better luck next time, kid.';
					convtext2 = '';
					reply1 = 'Fine. We\'ll see what happens next time...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Great. I just won a Psy War pack off a shadowling sentry not too long ago. Here are the rules: we each start off with 20 health. Every turn, both of us choose a card to play. The one with the lower card loses health, depending on how much lower the lower card is. Also, some cards have bonuses that cost Psy Points. Got it?';
					convtext2 = 'Cards.';
					reply1 = 'Sure. Let\'s do it.';
					reply2 = 'Let\'s play something else.';
					reply3 = 'Actually, let\'s forget it for now.';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					bet = 30;
					if (mission4Done == true) {
						bet = 50;
					}
					convtext1 = 'All right, here we go. Winner gets ' + bet + ' gold. [Jack pulls out a deck of cards and starts dealing each of you a hand.]';
					convtext2 = 'Sure. Let\'s do it.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[Jack grins at you.] Not to worry, kid. A little more practice and you\'ll be raking in the money in no time. But for now, I\'ll be taking that 30 gold you owe me.';
					convtext2 = '';
					reply1 = 'I\'m ready for another round...';
					reply2 = 'Let\'s play something else.';
					reply3 = 'That\'s enough for now.';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[Jack frowns.] Well, it looks like you\'ve got a few tricks up your sleeve after all. Just don\'t get cocky, now. [He hands you ' + bet + ' gold.]';
					convtext2 = '';
					reply1 = 'I\'m ready for another round...';
					reply2 = 'Let\'s play something else.';
					reply3 = 'That\'s enough for now.';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You know, I hate to say it, but I think we should hold off for now. I\'d hate for either of us to break the bank.';
					convtext2 = 'Hey Jack, wanna gamble?';
					reply1 = 'Fine. I\'ll be back later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hm, wait a minute. You don\'t have 30 gold to ante, do you? I don\'t want you going into debt, now. Come back when you\'ve got some money to wager.';
					convtext2 = '';
					reply1 = 'You\'re right--I\'ll be back.';
					reply2 = 'Oh, give me a break. Geez.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'niven1') {
				speaker1 = 'Niven';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(5);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					convtext1 = 'Oh, a human! What an interesting surprise. Donâ€™t be frightened, little creature. Come here. Nice to meet you. Iâ€™m Niven the professional knife-thrower.';
					convtext2 = 'Um, hi...';
					reply1 = 'Who are you?';
					reply2 = 'I\'m surprised you didn\'t call me fleshling.';
					reply3 = 'So, what do you want?';
					reply4 = 'Sorry, I don\'t have time to talk.';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m Niven. I spend my time entertaining the people of Somnus with astounding feats of danger and dexterity: I throw knives, and I never miss my mark!';
					convtext2 = 'Who are you?';
					reply1 = 'Sounds dangerous.';
					reply2 = 'I\'m surprised you didn\'t call me fleshling.';
					reply3 = 'So, what do you want?';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Not in the slightest degree! I am a consummate professional. These knives obey me as a soldier does his general--with perfect subservience and respect.';
					convtext2 = 'Sounds dangerous.';
					reply1 = 'Fair enough.';
					reply2 = 'I\'m surprised you didn\'t call me fleshling.';
					reply3 = 'So, what do you want?';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Indeed. I don\'t like the term, myself. It\'s very culturally insensitive of us to use it, don\'t you think? How would we like it if humans called us floaty smoky head-things? Not very much, I\'d imagine!';
					convtext2 = 'I\'m surprised you didn\'t call me fleshling.';
					reply1 = 'Well, we do call you Shadowlings...';
					reply2 = 'So, what do you want?';
					reply3 = 'That\'s enough. Don\'t blow smoke up my ass...';
					reply4 = 'I\'m glad you feel that way. Bye.';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'How rude! I was being utterly sincere. Well, that\'s what I get for being polite, I guess.';
					convtext2 = 'That\'s enough. There\'s no need to blow smoke up my ass. Save it for your head.';
					reply1 = 'Sorry.';
					reply2 = 'Basically, yes.';
					reply3 = '[Leave without responding.]';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m afraid fair has nothing to do with it! I was born with this gift, and I have honed it through many years of careful study and practice.';
					convtext2 = 'Fair enough.';
					reply1 = 'So, what do you want?';
					reply2 = 'I\'m sure you\'re great--see you later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well, you were the one who approached me! But since you ask, I could use a small favor. I need to practice, you see, but my practice partner seems to have gone away somewhere. Said something about nothing being worth something. Anyway, if you let me practice on you, Iâ€™ll give you 5 gold per throw!';
					if (mission1Done == true && spokeToNiven == 1) {
						convtext1 = 'Well, to be honest, times have gotten hard. What with the civil war and all, people just haven\'t been in the mood for theater and showmanship. Money is tight. And just look at how gaunt I am! [He jabs a pointy finger at his face. He looks fine to you.] Do you have some sort of gainful employment to offer me?';
					}
					convtext2 = 'So, what do you want?';
					reply1 = 'Why not? Sure.';
					reply2 = 'Oh, no no noâ€”-no way.';
					reply3 = 'Uh, let me think about it...';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, wonderful! Just stand over there... [He positions himself, then produces a large knife seemingly from thin air.] Now donâ€™t worry, Iâ€™m a knife-throwing prodigy.';
					convtext2 = 'Why not? Sure.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, drat! My apologies. It won\'t happen again.';
					convtext2 = 'Ow! That hurt!';
					reply1 = 'Okay, fine.';
					reply2 = 'Just watch it next time!';
					reply3 = 'Forget it; that\'s enough.';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, Iâ€™m so sorry! Let\'s try that again.';
					convtext2 = 'Ouch! What the hell!';
					reply1 = 'Okay, fine.';
					reply2 = 'Be careful next time!';
					reply3 = 'Forget it; that\'s enough.';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh dear! That must have been a bad knife. It\'s all a matter of aerodynamics, you see, and a bad knife will go places it isn\'t invited.';
					convtext2 = 'Ow--you just stabbed me!';
					reply1 = 'Yeah, okay.';
					reply2 = 'Well inspect your knives first next time!';
					reply3 = 'Forget it; that\'s enough.';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh no, I\'m so sorry! Someone Contacted me just as I was releasing the knife. Let\'s try again.';
					convtext2 = 'Ouch! What was that?!';
					reply1 = 'Okay, fine.';
					reply2 = 'What the--maintain your concentration next time!';
					reply3 = 'Forget it; that\'s enough.';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Goodness, I must be having an off day. I just need one more do-over.';
					convtext2 = 'Geez, that really hurt! What\'s the matter with you?';
					reply1 = 'Okay, fine.';
					reply2 = 'Forget it, that\'s enough.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Didn\'t you hear that? I thought I just heard someone yell \'fire.\' It was very distracting. I\'m sorry for hitting you. Let\'s try once more.';
					convtext2 = 'Ow! Why did you hit me?';
					reply1 = 'Okay, fine.';
					reply2 = 'Forget it, that\'s enough.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, I\'m so sorry! I really had to sneeze suddenly, and it totally threw off my reflexes. It won\'t happen again.';
					convtext2 = 'Yowch! That really hurt!';
					reply1 = 'Okay, fine.';
					reply2 = 'You don\'t even have a nose!';
					reply3 = 'Forget it, that\'s enough.';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hm, you don\'t look so well. Maybe we should postpone practice for now--I can\'t have you fainting and getting in the way of a perfectly-executed knife throw.';
					convtext2 = 'Why not? Sure.';
					reply1 = 'Um, okay.';
					reply2 = 'Not much risk of that, I\'m afraid.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 18) {
					pincushionGold = timesStuck * 5;
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hm. You don\'t look so well. Maybe we should postpone practice for now. In the meantime, here is the compensation I promised you: ' + pincushionGold + ' gold. Come back when you\'re feeling better.';
					convtext2 = '';
					reply1 = 'All right--thanks for the gold.';
					reply2 = 'That\'s it? Jeez, what a stingy...';
					reply3 = 'You\'ve got to be the worst knife-thrower ever.';
					reply4 = '';
				}
				if (convBranch == 19) {
					pincushionGold = timesStuck * 5;
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well, okay. I deeply regret any pain I may have caused you through my own carelessness. Here is the compensation I promised you: ' + pincushionGold + ' gold. Take it and be well, human.';
					convtext2 = 'Forget it, that\'s enough.';
					reply1 = 'All right--thanks for the gold.';
					reply2 = 'That\'s it? Jeez, what a stingy...';
					reply3 = 'You\'ve got to be the worst knife-thrower ever.';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I suppose that\'s true. On the other hand, that\'s what we call ourselves, so it\'s fitting. It doesn\'t have the same derisive connotation as fleshling does.';
					convtext2 = 'Well, we do call you Shadowlings...';
					reply1 = 'So, what do you want?';
					reply2 = 'This is interesting, but I\'ve got things to do. Bye.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 21) {
					ConvBox.gotoAndStop(1);
					convtext1 = 'Hello again! It\'s delightful to see you.';
					convtext2 = 'Um, hi...';
					reply1 = 'Who are you, again?';
					reply2 = 'I\'m surprised you didn\'t call me fleshling.';
					reply3 = 'So, what do you want?';
					reply4 = 'Sorry, I don\'t have time to talk.';
				}
				if (convBranch == 22) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Well, if it isn\'t the rude little human from before. We have nothing to say to one another.';
					convtext2 = '';
					reply1 = 'Look, I\'m sorry I was mean.';
					reply2 = 'I don\'t have time for this.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 23) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Niven\'s face brightens noticeably.] Oh, what lovely manners! That was very polite of you to apologize. Really, most impressive. Exquisite, almost. Now, what can I do for you?';
					convtext2 = 'Look, I\'m sorry I was mean.';
					reply1 = 'Who are you, again?';
					reply2 = 'I\'m surprised you didn\'t call me fleshling.';
					reply3 = 'So, what do you want?';
					reply4 = 'Sorry, I don\'t have time to talk.';
				}
				if (convBranch == 24) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, fantastic! What sort of job do you have? You know, I\'m wonderful at parties.';
					convtext2 = 'Why not? Sure.';
					reply1 = 'How about a military job?';
					reply2 = 'On second thought, maybe this was a bad idea.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 25) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hm. I\'ve never really thought of using my knives as weapons, honestly. I\'m more of a performer than a soldier. Besides, what will my public say if I run off and join a military campaign?';
					convtext2 = 'How about a military job? After all, you seem incapable of NOT injuring people.';
					reply1 = 'You know, the public loves a war hero.';
					reply2 = 'I\'ll pay you for your trouble.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 26) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You may be right, but I\'m afraid my role is more naturally that of a morale-booster here at home. Perhaps another time.';
					convtext2 = 'You know, the public loves a war hero.';
					reply1 = 'I\'ll pay you for your trouble.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 27) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'By the light of the Queen, you\'re right! Why didn\'t I think that before? My audiences will triple in size! Very well, little one, you have yourself a deal. Oh, and by the way--what is your name?';
					convtext2 = 'You know, the public loves a war hero.';
					reply1 = mainCharName + '--I\'ll see you at headquarters.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 28) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hm. Well, all right. For 200 gold, I\'ll join your force.';
					convtext2 = 'I\'ll pay you for your trouble.';
					reply1 = 'Here you are.';
					reply2 = '200 gold?! Ha! No thanks.';
					reply3 = 'I\'ll be back soon.';
					reply4 = '';
				}
				if (convBranch == 29) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m terribly sorry, but this isn\'t enough gold. I do have to eat, after all.';
					convtext2 = 'Here you are.';
					reply1 = 'I\'ll be back soon.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 30) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Fabulous! This should do it. [Niven pockets the money.] By the way, what is your name?';
					convtext2 = 'Here you are.';
					reply1 = mainCharName + '. I\'ll see you at headquarters.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 31) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello, ' + mainCharName + '. I\'ll be at headquarters in a few minutes--you go on ahead.';
					convtext2 = '';
					reply1 = 'Okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'niven2') {
				speaker1 = 'Niven';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(5);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Greetings and salutations, ' + mainCharName + '! I\'m practicing my formidable throwing technique. As you can plainly see, our enemies have no chance of survival whatsoever.';
					convtext2 = '';
					reply1 = 'I can attest to that from personal experience.';
					reply2 = 'Keep up the good work, Niven.';
					reply3 = 'Can I talk to you about something?';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Certainly--but I must not break my concentration. What is it you wish to discuss?';
					convtext2 = 'Can I talk to you about something?';
					reply1 = 'How did you become a knife-thrower?';
					reply2 = 'What do you think of this civil war?';
					reply3 = '';
					if (mainCharAptitude > 7) {
						reply3 = 'Your technique is odd. How do you throw like that?';
					}
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'How did I become a knife thrower? Why, the public demanded it of me! When the Queen has blessed you with a gift as extraordinary as mine, you can\'t just go on not sharing it with the people! [Niven winks at you.] It was destiny.';
					convtext2 = 'How did you become a knife-thrower?';
					reply1 = 'I\'m sure it was.';
					reply2 = 'That\'s the biggest load of...what ever.';
					reply3 = 'What do you think of this civil war?';
					reply4 = '';
					if (mainCharAptitude > 7) {
						reply4 = 'Your technique is odd. How do you throw like that?';
					}
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'These wars...they make certain individuals in the city very rich. But not Niven the knife-thrower, I\'m afraid. I\'m a peaceful soul. Besides, who has time for feats of danger and dexterity when their sons may be gone, never to return?';
					convtext2 = 'What do you think of this civil war?';
					reply1 = 'Good point. Well, see you later.';
					reply2 = 'How did you become a knife-thrower?';
					reply3 = '';
					if (mainCharAptitude > 7) {
						reply3 = 'Your technique is odd. How do you throw like that?';
					}
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You\'re right, ' + mainCharName + ', my throwing technique is quite unconventional. This is part of what has made me the most famous knife-thrower in all of Somnus: my abilities are unmatched! My public is astounded by it.';
					convtext2 = 'Your technique is odd. How do you throw like that?';
					reply1 = 'But you throw sideways. How do you hit anything?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Niven winks at you.] Worry not, ' + mainCharName + '--I have my methods.';
					convtext2 = 'But you throw sideways. How do you hit anything?';
					reply1 = 'I\'m sure you do.';
					reply2 = 'How did you become a knife-thrower?';
					reply3 = 'What do you think of this civil war?';
					reply4 = '';
				}
			}
			if (convID == 'festus1') {
				speaker1 = 'Festus';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(4);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Greetings, fleshling. You must be ' + mainCharName + '.';
					convtext2 = '';
					reply1 = 'Yes, I am. Who are you?';
					reply2 = 'Wait a minute--how do you know my name?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I am Festus, practitioner of the defensive arts. General Tastidian made it known to me that I should assist you in performing certain tasks at the Queen\'s behest.';
					convtext2 = 'Yes, I am. Who are you?';
					reply1 = 'I see. So what abilities have you mastered?';
					reply2 = 'Could you heal me?';
					reply3 = 'Good--I\'ll see you later, then.';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'It was revealed to me. I serve General Tastidian--and through him, the Queen. He informed me that I should assist you in performing certain tasks.';
					convtext2 = 'Wait a minute--how do you know my name?';
					reply1 = 'I see. So what abilities have you mastered?';
					reply2 = 'Could you heal me?';
					reply3 = 'Good--I\'ll see you later, then.';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I am competent with Mind Blast, though I specialize in mental and kinetic shields. After all, no matter how strong he may be, no warrior is ever any good to anybody dead.';
					convtext2 = 'I see. So what abilities have you mastered?';
					reply1 = 'Could you heal me?';
					reply2 = 'Makes sense. Well, I\'ll see you later, then.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Certainly. Be still. [You feel an intense warmth pass over your body, and your arms grow goosebumps. And as soon as the sensation began, it is over.]';
					convtext2 = 'Could you heal me?';
					reply1 = 'Thank you, Festus. I\'ll see you later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'helena1') {
				speaker1 = 'Helena';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(7);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey! When\'s the next battle? A girl like me needs to strike pay dirt every so often, you follow?';
					convtext2 = '';
					reply1 = 'Relax. There\'ll be more battles soon.';
					reply2 = '';
					if (gotJack == true) {
						reply2 = 'Why not gamble with Jack?';
					}
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 50) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '! Thought I saw you walkin\' around with one o\' them spinnin\' saw thingamajigs. Ya know...I bet Flint could use it, if you still have it.';
					convtext2 = '';
					reply1 = 'Oh, sure. [Give it to her.]';
					reply2 = 'Nah. I\'d rather keep it.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 51) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hey Flint, we got some new parts! Hold still, now, so I don\'t break ya, you big galoot. [Flint blinks and makes a rumbling noise in his throat as Helena starts to install the new Saw on him.]';
					convtext2 = 'Oh, sure. [You hand her the Spin Saw you got off the bronze golem.]';
					reply1 = 'Good luck. I\'ll be back later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 52) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '! Thought I saw you walkin\' around with a capacitor a minute ago. Ya know...I bet Flint could use it, if you still have it.';
					convtext2 = '';
					reply1 = 'Oh, sure. [Give it to her.]';
					reply2 = 'Nah. I\'d rather keep it.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 53) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hey Flint, we got some new parts! Hold still, now, so I don\'t break ya, you big galoot. [Flint blinks and makes a rumbling noise in his throat as Helena starts to install the new Capacitor on him.]';
					convtext2 = 'Oh, sure. [You hand her the small metal box you bought from Gelf.]';
					reply1 = 'Good luck. I\'ll be back later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 54) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '! I coulda sworn I just saw you luggin\' around a golem flame thrower attachment. Ya know...I bet Flint could use it, if you still have it.';
					convtext2 = '';
					reply1 = 'Oh, sure. [Give it to her.]';
					reply2 = 'Nah. I\'d rather keep it.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 55) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hey Flint, we got some new parts! Hold still, now, so I don\'t break ya, you big galoot. [Flint blinks and makes a rumbling noise in his throat as Helena starts to install the new Flame Thrower Attachment on him.]';
					convtext2 = 'Oh, sure. [You hand her the complicated contraption you bought from Gelf.]';
					reply1 = 'Good luck. I\'ll be back later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'helena2') {
				speaker1 = 'Helena';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(7);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Whoa, whoa, wait a minute. If that\'s what I think it is... [She squints and strokes her chin, then whirls away from you.] Hey Flint! Get over here! [She turns back.] You\'d better take it easy--this could take a while to put in \'im.';
					convtext2 = '';
					reply1 = 'Um, okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'flint1') {
				speaker1 = 'Flint';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(6);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[The golem\'s eye fixates on you. He produces a series of grunts that sound like stone grinding against stone. You\'re not even sure if he\'s actually saying anything.]';
					convtext2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'fredrik1') {
				speaker1 = 'Fredrik';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'AGH! My grades are terrible, but I can\'t afford tutoring. What should I do?';
					convtext2 = '';
					reply1 = 'Um...study?';
					reply2 = 'Drop out.';
					reply3 = 'I\'ll tutor you.';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Are you serious? No way, man. Studying is boring. AGH! I\'m so screwed.';
					convtext2 = 'Um...study?';
					reply1 = 'Maybe that\'s for the best.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, gee, thanks. And how am I going to explain the huge debt I\'ve racked up with tuition costs to my parents? AGH!';
					convtext2 = 'Drop out.';
					reply1 = 'Well, there\'s always male prostitution...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What! Me, get tutored by just some lousy black cape? No way! I need professional assistance!';
					convtext2 = 'I\'ll tutor you.';
					reply1 = 'Boy, you can say that again.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'alvin1') {
				speaker1 = 'Alvin';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Um, hi. Do I know you?';
					convtext2 = '';
					reply1 = 'Well, no...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Okay...can I help you?';
					convtext2 = 'Well, no...';
					reply1 = 'Anything going on around here I should know about?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Not really. Just everyone is a little on edge about the abductions. It seemed like the increase in guards was helping for a while, but someone was just abducted this past week.';
					convtext2 = 'Anything going on around here I should know about?';
					reply1 = 'That\'s too bad.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah, it is. Anyway, if you\'ll excuse me, I need to practice my telekinesis.';
					convtext2 = 'That\'s too bad.';
					reply1 = 'Sure.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'karli1') {
				speaker1 = 'Karli';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hi, I\'m Karli. Who are you? I guess you\'re a black cape, huh? I didn\'t know they gave out black suits too, though. Are you some kind of psy master or something? What classes are you taking?';
					convtext2 = '';
					reply1 = 'Wait...what question do you want me to answer?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hey, have you ever heard of the orbs of power? My professor was just telling us about them today. Apparently, a long time ago, some very skilled craftsmen created eight spheres that could enhance certain psy abilities.';
					convtext2 = 'Wait...what question do you want me to answer?';
					reply1 = 'Um...uh huh.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'They were stolen, though, so no one knows where they are, but if you found them, they\'d \'attach\' to you and enhance your abilities. Some orbs get \'jealous\' of the others, though, so you can only use a couple of them at once. Cool, huh?';
					convtext2 = 'Um...uh huh.';
					reply1 = 'Sure, I guess.';
					reply2 = 'No. Stop talking to me.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'So, have you been going here long? What\'s it like to be a black cape? My boyfriend is a blue cape, but he says he\'s going to become a black cape any day now.';
					convtext2 = '[You start to speak, but she cuts you off.]';
					reply1 = 'Look, I have to go...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, okay--I guess I\'ll see you around. I have a terrible memory for faces, though, so don\'t feel bad if I forget who you are.';
					convtext2 = 'Look, I have to go...';
					reply1 = 'Sounds fine to me.';
					reply2 = 'Right, see you later.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'amanda1') {
				speaker1 = 'Amanda';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[This girl is extremely easy to scan. Her name is Amanda, and she\'s nervous.] Jeez, you scared me! Don\'t just walk up and talk to people you don\'t know! Haven\'t you heard about all the abductions lately?';
					convtext2 = '';
					reply1 = 'What about them?';
					reply2 = 'Do I look like a shadowling to you?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Someone was just kidnapped yesterday while taking a stroll outside the gates. It\'s enough to put a girl on edge, you know?';
					convtext2 = 'What about them?';
					reply1 = 'I guess so.';
					reply2 = 'Yeah...if that girl is a sissy.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Uh, I dunno. What\'s a shadowling look like, anyway?';
					convtext2 = 'Do I look like a shadowling to you?';
					reply1 = 'Never mind.';
					reply2 = '[Describe them.]';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh. Are you just making that up or something? \'Cause that\'s just plain weird.';
					convtext2 = 'They\'re floating black balls with crescent eyes that trail smoke off their heads.';
					reply1 = 'Yeah, you have no idea...';
					reply2 = 'They\'re okay once you get to know them.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'piter1') {
				speaker1 = 'Piter';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Student';
					speaker2 = '';
					convtext1 = '[As you approach, you get a strange feeling that you know this person. His name...his name... Suddenly, noticing you there, he turns around.] What do you-- [He stops dead.] Holy. Cow. ' + mainCharName + '? Is that you?';
					convtext2 = '';
					reply1 = '[Try to remember his name.]';
					reply2 = 'You\'re thinking of someone else.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah! Wow. ' + mainCharName + ', you look kind of...strange. Where have you been all this time? Everyone thought you were dead. Did you ever run into Anya or Guy? They said they were going looking for you, like, over a year ago.';
					convtext2 = 'Piter. [The name comes out before you can even think of what you\'re saying.]';
					reply1 = 'Yes, they\'re with me now.';
					reply2 = 'Well, YOU look strange without a red cape.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Ha ha. Very funny. Jackass. [He pinches some of the fabric on his cape.] My dad almost had a heart attack when he saw this thing. He was so happy, he went right out and bought me an apartment in the capital! I have to thank your little brother for helping me out.';
					convtext2 = 'Well, YOU look strange without a red cape.';
					reply1 = 'David? Is he here?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Uh huh; he\'s in his room. You knew he was going here now, right? I guess maybe you left before he got in. Yeah. Youngest student ever admitted--younger than you were, I think. He\'s a smart little bugger.';
					convtext2 = 'David? Is he here?';
					reply1 = 'Where is his room?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Down the hall, on your left, up the stairs, room 245.';
					convtext2 = 'Where is his room?';
					reply1 = 'Thanks--I\'ll see you later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Wow. That\'s...incredible. [He laughs.] A slave and a commander of a shadowling fighting force? That\'s just bizarre. Really. You should go tell your brother.';
					convtext2 = 'Yes, they\'re with me now. [You tell him what you recall of the last few years.]';
					reply1 = 'David? Is he here?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Whoa, whoa, wait a minute--do you even know how long you\'ve been gone? You don\'t, do you?';
					convtext2 = 'Thanks--I\'ll see you later.';
					reply1 = 'Well...no.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = '' + mainCharName + '...it\'s been almost 4 years already.';
					convtext2 = 'Well...no.';
					reply1 = 'What! Really? I... I have to go.';
					reply2 = 'And you\'re only a blue cape? Good lord!';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He laughs.] Yeah, I know. Sad, isn\'t it? I\'ll see you later--you should go find your brother.';
					convtext2 = 'And you\'re only a blue cape? Good lord!';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'As you step away from Piter, you start to feel dizzy and nauseous. Your vision blurs. You place your hand against the wall for support. As you sink to your knees, you notice something lying on the floor. A chain made of smooth, shiny black rock, fashioned into a bracelet. It\'s...your slave bracelet. Suddenly, all of your memories come rushing back to you in a flood. Their kidnapping your brother. The bargain you struck with Tastidian. You feel...exhausted. You need to find your old room and go to sleep.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey, are you feeling okay? Maybe you should get some rest. Your old room is down the stairs on your right at the end of the hall. Room B21, remember?';
					convtext2 = '';
					reply1 = 'Yeah...thanks.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey, I heard Dean Lukas was looking for you. Did you talk to him?';
					convtext2 = '';
					reply1 = 'Yeah, I did.';
					reply2 = ' [Lie.] Uh, no.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Okay, what\'d he say?';
					convtext2 = 'Yeah, I did.';
					reply1 = 'He wants to mount an assault on Somnus.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Somnus? Didn\'t you tell me that that was some kind of giant underground city filled with shadowlings? Why would you want to attack a place like that?';
					convtext2 = 'He wants to mount an assault on Somnus.';
					reply1 = 'Long story.';
					reply2 = 'It\'ll be fun. Wanna help?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Ha...yeah. Doesn\'t sound like much fun to me. [He pauses.] In fact, it sounds like suicide. Are you really sure about this?';
					convtext2 = 'It\'ll be fun. Wanna help?';
					reply1 = 'Don\'t worry, we\'ll be fine.';
					reply2 = 'Nope. But I\'m going anyway.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, okay.';
					convtext2 = 'Uh, no.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'david1') {
				speaker1 = 'David';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(28);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Student';
					speaker2 = '';
					convtext1 = '[You get a strong feeling that you know this person. As he turns around, you suddently remember. It\'s...David. Your little brother. You can feel him tense up as you approach.]';
					convtext2 = '';
					reply1 = 'David?';
					reply2 = '[Leave him alone.]';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = '' + mainCharName + '? Am I dreaming? [He shakes his head.] I must be dreaming. You\'re dead.';
					convtext2 = 'David?';
					reply1 = 'For being dead, I feel pretty good.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'No. No. I spent years getting over your death. You can\'t tease me from beyond the grave like this. [He doesn\'t believe you\'re alive, and he\'s emanating intense distress. You think he may be about to cry. Maybe it would be better if you came back later.]';
					convtext2 = 'For being dead, I feel pretty good.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					playDavidMusic();
					convtext1 = '' + mainCharName + '? [He takes a deep breath.] I...so, Piter told me you were still alive. I couldn\'t believe it at first. I, I mean, we all thought you were... [He swallows hard.] Gone.';
					convtext2 = '[It\'s your little brother, David. He looks so old...] David?';
					reply1 = 'I\'m here, little brother.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[David looks like he is about to say something, but instead walks up and hugs you.]';
					convtext2 = 'I\'m here, little brother.';
					reply1 = 'It\'s okay, David. This will all be over soon.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Sorry. Between you and Uncle Falstaff, I\'m just kind of an emotional mess lately.';
					convtext2 = 'It\'s okay, David. This will all be over soon. [After a few more seconds, he lets go.]';
					reply1 = 'Uncle Falstaff? What happened to him?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'A few months ago, he got sick. [He clears his throat, but he doesn\'t say anything. Then you hear his voice in your mind.] I can\'t bring myself to say it out loud. ' + mainCharName + ', he\'s passed away. It\'s just us two now.';
					convtext2 = 'Uncle Falstaff? What happened to him?';
					reply1 = 'Uncle Falstaff...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m really sorry, ' + mainCharName + '. Before he passed, though, he gave me something. He said he\'d wanted to give it to you, but he would give it to me...in case...you know. [He shudders.] Anyway, I want you to have it. I don\'t need it.';
					convtext2 = 'Uncle Falstaff...';
					reply1 = 'What is it?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You\'ll see. It\'s in the chest over by the bed. Take this key and have a look inside. [He hands you a small brass key.]';
					convtext2 = 'What is it?';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Have a look in the chest over by the bed. The key I gave you should open it up.';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'I hope that thing helps you. Uncle Falstaff said that it protects its owner when things seem most dark.';
					convtext2 = '';
					reply1 = 'Thanks, David.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'dean1') {
				speaker1 = 'Dean Lukas';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Good morning, ' + mainCharName + '. Welcome back to the Psy Academy. [It takes a moment, but you now remember this man: he\'s the dean of the school.] I\'m glad to see you\'re back in one piece.';
					convtext2 = '';
					reply1 = 'Dean Lukas, we need to discuss something.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I know what you wish to discuss, my child, but you\'re too late. We have already allied ourselves with the spriggats--as you have, I understand, with the Shadowlings.';
					convtext2 = 'Dean Lukas, we need to discuss something.';
					reply1 = 'Actually, they enslaved me. We are not allies.';
					reply2 = 'Why would you ally yourselves with the spriggats?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Is that so? [He frowns.] Where, then, is your slave bracelet?';
					convtext2 = 'Actually, they enslaved me. We are not allies.';
					reply1 = '[Show him.] I am no longer bound.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We have no good alternatives. As you are well aware, the Shadowlings have been kidnapping our students for use in their armies. Unfortunately, we cannot fend them off alone.';
					convtext2 = 'Why would you ally yourselves with the spriggats?';
					reply1 = 'But this will just invite a larger attack!';
					reply2 = 'I agree, you had no better options.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That, ' + mainCharName + ', is why I have come to speak with you.';
					convtext2 = 'But this will just invite a larger attack!';
					reply1 = 'So...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'So you are no longer enslaved, then. This is good news, ' + mainCharName + '.';
					convtext2 = '[You show him the slave bracelet.] I am no longer bound.';
					reply1 = 'So...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He gestures for you to be silent.] Before we carry on any further, I must know something: where do your loyalties lie? Be honest. If you still choose to serve Tastidian, I will allow you to leave this place unharmed.';
					convtext2 = 'So...';
					reply1 = 'I despise Tastidian--my loyalty is to the Academy!';
					reply2 = 'I enjoy the power I have under Tastidian; I serve him.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Guy';
					ConvBox.portraitFinder.gotoAndStop(10);
					convtext1 = '' + mainCharName + ', are you nuts?! You\'re going to keep serving Tastidian, after all we just went through to rescue you?';
					convtext2 = 'I enjoy the power I have under Tastidian; I serve him.';
					reply1 = 'Yes.';
					reply2 = 'Actually, I meant no.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Then leave--you have truly lost your way after all. And know this, young one: if you return to this place again with hostility in your mind, we will not show you mercy.';
					convtext2 = 'Yes.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Dean Lukas looks you up and down for a moment. You think he may be trying to read your thoughts, though if he is, he\'s good enough that you can\'t tell.]';
					convtext2 = 'I agree, you had no better options.';
					reply1 = 'So...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good--I am glad to see that he has not been successful in reprogramming you. Now listen closely, ' + mainCharName + '--I have a task for you of the greatest importance.';
					convtext2 = 'I despise Tastidian--my loyalty is to the Academy!';
					reply1 = 'All right, I\'m listening.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Good--that\'s more like it. Now listen closely, ' + mainCharName + '--I have a task for you of the greatest importance.';
					convtext2 = 'Actually, I meant no.';
					reply1 = 'All right, I\'m listening.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'First, you must understand something: now that we are in conflict with the shadowlings, we will never have peace until their Queen is dead.';
					convtext2 = 'All right, I\'m listening.';
					reply1 = 'Are you asking me to kill the Queen?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yes--that is precisely what we need for you to do. The spriggats will draw off the queen\'s army, leaving you...';
					convtext2 = 'Are you asking me to kill the Queen?';
					reply1 = 'You\'re insane. There\'s simply no way.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'And why not?';
					convtext2 = 'You\'re insane. There\'s simply no way.';
					reply1 = 'She\'s a deity, for goodness\' sake!';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Actually, that is a rumor that she spreads herself. She is quite mortal, though admittedly terribly powerful. Is that your only objection?';
					convtext2 = 'She\'s a deity, for goodness\' sake!';
					reply1 = 'My shadowlings would refuse.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Shadowboxer';
					ConvBox.portraitFinder.gotoAndStop(3);
					convtext1 = 'Not me. I\'m sick of risking my neck for a ruler I\'ve never seen or met. ' + mainCharName + ', my loyalty is to you.';
					convtext2 = 'My shadowlings would refuse.';
					reply1 = 'Really?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Darkling';
					ConvBox.portraitFinder.gotoAndStop(2);
					convtext1 = 'Yeah, me too!';
					convtext2 = 'Really?';
					reply1 = 'Darkling...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 19) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Niven';
					ConvBox.portraitFinder.gotoAndStop(5);
					convtext1 = 'I must concur as well. The Queen\'s policies have nearly bankrupted me, and for what? So we can be eternally fighting?';
					convtext2 = 'Darkling...';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Festus';
					speaker2 = '';
					ConvBox.portraitFinder.gotoAndStop(4);
					convtext1 = '' + mainCharName + ', you\'ve inspired me to reexamine my many years of service to the Queen. It seems that all she does is drag us into war after war for her own selfish purposes. Enough is enough. We follow you, ' + mainCharName + ', not her.';
					convtext2 = '';
					reply1 = 'Wow. I\'m speechless.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 21) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Don\'t be. We can\'t afford to fight the Shadowling Queen forever, and we may not have much time before our allies are overwhelmed. Use our facilities. Train. Rest. When you are ready, we\'ll march on Somnus.';
					convtext2 = 'Wow. I\'m speechless.';
					reply1 = 'Okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 22) {
					ConvBox.gotoAndStop(1);
					convtext1 = 'Are you prepared to fight the Shsdowling Queen? We can\'t afford to fight her armies forever, and we may not have much time before our allies are overwhelmed. Use our facilities. Train. Rest. When you are ready, we\'ll march on Somnus.';
					convtext2 = '';
					reply1 = 'Okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 23) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Festus';
					ConvBox.portraitFinder.gotoAndStop(4);
					convtext1 = '' + mainCharName + ', you\'ve inspired me to reexamine my many years of service to the Queen. It seems that all she does is drag us into war after war for her own selfish purposes. Enough is enough. We follow you, ' + mainCharName + ', not her. We all feel the same way about this.';
					convtext2 = 'Darkling...';
					reply1 = 'Wow. I\'m speechless.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'darkeye1') {
				speaker1 = 'Gen. Darkeye';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(27);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Ah, slaves. Very good. You\'re scouting ahead for the rescue force, yes? Well, go ahead and Contact them. Tell them you\'ve found me. We don\'t have much time before the dissidents force their way into this cave.';
					convtext2 = '';
					reply1 = 'Um...we ARE the rescue force.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What! Tastidian, that damn fool...doesn\'t he realize that Cerzak is here?	[Darkeye coughs. He\'s clearly wounded, and you\'re not sure how fast he could move if he had to.]';
					convtext2 = 'Um...we ARE the rescue force.';
					reply1 = 'Wait. Did you say Cerzak?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Shadowling';
					speaker2 = 'Gen. Darkeye';
					convtext1 = '[A panicked shadowling voice interrupts. It is being broadcast in an uncontrolled way about the area.] Sir! They\'ve broken through! We can\'t hold them any long--';
					convtext2 = 'Curses! [General Darkeye turns to you.] You\'d better be good, slave...';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Not bad. You\'re much stronger than you look. But there\'s no time for self-congratulations: finish off Cerzak, and let\'s be off before the marauding armies of the dissidents catch us!';
					convtext2 = '';
					reply1 = 'Okay--as good as done.';
					reply2 = 'I\'d rather not, actually.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.portraitFinder.gotoAndStop(8);
					ConvBox.gotoAndStop(2);
					speaker1 = 'Grotius';
					convtext1 = 'W-what! What do you mean, \'as good as done\'?! [He runs over to Cerzak and whirls around, picking him up beneath the armpits. He bares his teeth.] I won\'t let you!';
					convtext2 = 'Okay--as good as done.';
					reply1 = 'Fine, fine! Geez. We\'re leaving him.';
					reply2 = 'Get out of the way, kid.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Fool! You don\'t know how many lives you\'ve just cost us. [He coughs bitterly.] If only I were stronger...but no. There\'s no time for this. They\'ll be on us in a moment. We must flee.';
					convtext2 = 'Fine, fine! Geez. We\'re leaving him.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.portraitFinder.gotoAndStop(8);
					ConvBox.gotoAndStop(2);
					speaker1 = 'Grotius';
					convtext1 = 'No! You leave us alone! You lying, murderous creep--I can\'t believe I trusted you... [He begins dragging Cerzak out of the cave--you can hear him sending out telepathic distress calls to the spriggats in the area.]';
					convtext2 = 'Get out of the way, kid. Cerzak\'s got to go.';
					reply1 = 'Fine, fine! Geez. We\'re leaving him.';
					reply2 = '[Kill Grotius and Cerzak.]';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[A small smile creeps onto General DarkEye\'s face as he surveys your handiwork.] Excellent. You would make a marvelous soldier. If only you were a shadowling. But come. They\'ll be on us in a moment--we must flee.';
					convtext2 = '[You feel ill. Grotius\'s final grimace of pain won\'t leave your mind.]';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Fool! You don\'t know how many lives you\'ve just cost us. [He coughs bitterly.] If only I were stronger...but no. There\'s no time for this. They\'ll be on us in a moment. We must flee.';
					convtext2 = 'I\'d rather not, actually.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[A small smile creeps onto General DarkEye\'s face as he surveys your handiwork.] Excellent. You would make a marvelous soldier. If only you were a shadowling. But come. They\'ll be on us in a moment--we must flee.';
					convtext2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.portraitFinder.gotoAndStop(25);
					ConvBox.gotoAndStop(2);
					speaker1 = 'Cerzak';
					speaker2 = 'Gen. DarkEye';
					convtext1 = 'Curse? Me? Surely not, dear DarkEye. You\'re merely upset because I\'ve handed you your first military defeat. The first since we went to the Queen\'s Academy together, anyway.';
					convtext2 = 'Curse you, Cerzak!';
					reply1 = 'You went to military school together?';
					reply2 = 'Enough chatter. Let\'s finish this.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.portraitFinder.gotoAndStop(25);
					ConvBox.gotoAndStop(1);
					speaker1 = 'Cerzak';
					speaker2 = '';
					convtext1 = '[Cerzak glances your way.] You again? I see you\'ve survived somehow. And killed all my men. I sympathize with your position as a slave, but I cannot allow you--either of you--to go on attacking us. This is the end of the line for DarkEye and you.';
					convtext2 = '';
					reply1 = 'We\'ll see about that...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.portraitFinder.gotoAndStop(25);
					ConvBox.gotoAndStop(1);
					speaker1 = 'Cerzak';
					speaker2 = '';
					convtext1 = '[Cerzak glances your way.] You again? I see you\'ve survived somehow. And killed all my men. While I... [He stops. A look of shock comes over his face, but he quickly composes himself.] Grotius! Have you been captured by these fiends?';
					convtext2 = '';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.portraitFinder.gotoAndStop(8);
					ConvBox.gotoAndStop(1);
					speaker1 = 'Grotius';
					speaker2 = '';
					convtext1 = 'No, Da-- [He cuts himself off.] Er, no. Cerzak. These are my friends...';
					convtext2 = '';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.portraitFinder.gotoAndStop(25);
					ConvBox.gotoAndStop(1);
					speaker1 = 'Cerzak';
					speaker2 = '';
					convtext1 = '[Cerzak turns back to you. His face is contorted in rage.] I don\'t know what you did to him, but this is the end of the line for you. Say your last goodbyes, slave. You as well, DarkEye.';
					convtext2 = '';
					reply1 = '[Defend yourself!]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'grotius0') {
				speaker1 = 'Grotius';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(8);
				if (convBranch == 1) {
					speaker2 = 'Spriggat';
					speaker1 = mainCharName;
					ConvBox.gotoAndStop(1);
					convtext2 = '[The spriggat doesn\'t look up as you approach.] Yeah, what do you want?';
					convtext1 = '[You notice a bluish-white spriggat crouched in the corner, scribbling with some intensity into what looks like some kind of a journal. He emanates angst and boredom rather strongly.]';
					reply1 = 'Surrender or die!';
					reply2 = 'Why weren\'t you attacking me just now?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					speaker1 = 'Spriggat';
					speaker2 = mainCharName;
					ConvBox.gotoAndStop(2);
					convtext1 = 'Fine. I surrender. You happy now? [He closes his journal.]';
					convtext2 = 'Surrender or die!';
					reply1 = 'Who are you?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					speaker1 = 'Spriggat';
					speaker2 = mainCharName;
					ConvBox.gotoAndStop(2);
					convtext1 = '[He shrugs.] Why should I have? I mean, you just killed everyone around here.';
					convtext2 = 'Why weren\'t you attacking me just now?';
					reply1 = 'Who are you?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					speaker1 = 'Grotius';
					ConvBox.gotoAndStop(2);
					convtext1 = '[He looks you straight in the eyes for a moment, as if deciding whether he really needs to answer you.] Grotius. I\'m Cerzak\'s kid.';
					convtext2 = 'Who are you?';
					reply1 = 'Cerzak? In that case, I\'m definitely killing you.';
					reply2 = 'You seem pretty bored.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He shrugs.] Fine. Go ahead. You\'d probably be doing me a favor.';
					convtext2 = 'Cerzak? In that case, I\'m definitely killing you.';
					reply1 = 'A favor?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'No shit. Does this place look like fun to you? I\'m so sick of my dad always telling me where to go, what to do...how to BE. It\'s like he doesn\'t want me to make my own decisions.';
					convtext2 = 'You seem pretty bored.';
					reply1 = 'Your dad sounds like a jerk.';
					reply2 = 'Want to come with me?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah, a favor. [He gestures around him.] Does this place look like fun to you? I\'m so sick of my dad always telling me where to go, what to do...how to BE. It\'s like he doesn\'t want me to make my own decisions.';
					convtext2 = 'A favor?';
					reply1 = 'Your dad sounds like a jerk.';
					reply2 = 'Want to come with me?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah, right. You just threatened to kill me a second ago. No thanks.';
					convtext2 = 'Want to come with me?';
					reply1 = 'Good point. See you later.';
					reply2 = 'I was just kidding.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Didn\'t you just threaten to kill me a second ago? You\'re one to talk.';
					convtext2 = 'Your dad sounds like a jerk.';
					reply1 = 'Good point. See you later.';
					reply2 = 'I was just kidding.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Why should I? So YOU can boss me around instead? No thanks.';
					convtext2 = 'Want to come with me?';
					reply1 = 'Hm, good point. See you later.';
					reply2 = 'Hey, at least it\'ll be exciting.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He shrugs.] He can be, yeah.';
					convtext2 = 'Your dad sounds like a jerk.';
					reply1 = 'Want to come with me?';
					reply2 = 'Well, good luck with that.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That didn\'t sound like kidding to me. Anyway, just...leave me alone.';
					convtext2 = 'I was just kidding.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah, okay. What do you want from me, anyway?';
					convtext2 = 'I was just kidding.';
					reply1 = 'Want to come with me?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Uh huh. I\'m so sure it will. NOT.';
					convtext2 = 'Hey, at least it\'ll be exciting.';
					reply1 = 'All right, forget it.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hm. Yeah, I guess you\'re right. It couldn\'t possibly be any more boring than this stupid workshop. So, all right. I\'ll come. But...you\'ve got to promise me something first.';
					convtext2 = 'Hey, at least it\'ll be exciting.';
					reply1 = 'What?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Don\'t tell anyone who I am. Especially... [he gestures to the shadowlings in your team, floating nearby] ...them.';
					convtext2 = 'What?';
					reply1 = 'Sure, you\'ve got it.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Look, would you just go away? I don\'t want to talk to you anymore.';
					convtext2 = '';
					reply1 = 'Geez, fine.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'grotius1') {
				speaker1 = 'Grotius';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(8);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[You notice Grotius standing alone in the corner, reading. His emanations are decidedly sulky.]';
					convtext2 = '';
					reply1 = 'Why so glum?';
					reply2 = 'Oh, no. I don\'t have time for teen drama.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Forget it; you wouldn\'t understand.';
					convtext2 = 'Why so glum?';
					reply1 = 'Fine.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He sighs.] I\'m just bored.';
					convtext2 = 'Why so glum?';
					reply1 = 'Why?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Because. No one around here talks to me. They all act like I smell or have some kind of disease or something.';
					convtext2 = 'Why?';
					reply1 = 'Have you tried talking to them?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well...no.';
					convtext2 = 'Have you tried talking to them? You know, being friendly?';
					reply1 = 'Maybe you should do that.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What\'s the point?';
					convtext2 = 'Maybe you should do that.';
					reply1 = 'If you make friends, they\'ll talk to you.';
					reply2 = 'Forget it. You\'re obviously dense.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I guess.';
					convtext2 = 'If you make friends, they\'ll talk to you.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[Grotius is scribbling something down in his journal as you approach.] Hey, ' + mainCharName + '. I got a letter today from someone here in Somnus.';
					convtext2 = '';
					reply1 = 'Oh really?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah. And the guy who wrote me, he\'s actually kind of cool. He has a sense of humor, and he\'s not a total moron. I mean, he\'s kind of smart.';
					convtext2 = 'Oh really?';
					reply1 = 'That\'s great, Grotius.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Look, I\'m not dumb. I know you\'re behind this. But...I\'m glad you did it. I just wanted to say thanks.';
					convtext2 = 'That\'s great, Grotius.';
					reply1 = 'No problem.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Oh, so...since you did something nice for me, I figured I\'d...well, here. Just take it. It\'s yours.';
					convtext2 = 'No problem.';
					reply1 = 'What is it?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'He reaches into his sack, then hands you a blue glass ball a little larger than your fist. It shines faintly. As you reach to take it from him, your hand suddenly starts to feel cold.';
					convtext2 = '';
					reply1 = '[Take it.]';
					reply2 = 'Could you just leave that on the table over there?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(6);
					convtext1 = 'You reach down and touch the orb. It is freezing cold to the touch. Your hand is starting to go numb. And suddenly, you can\'t feel the cold. You can\'t feel the chilly, cavernous air of Somnus either. Everything feels pleasantly warm.';
					convtext2 = '';
					reply1 = 'Maybe I should leave this here in HQ...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Sure.';
					convtext2 = 'Could you just leave that on the table over there?';
					reply1 = 'Thanks, Grotius.';
					reply2 = '[Leave.]';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey, ' + mainCharName + '. How do you like the orb?';
					convtext2 = '';
					reply1 = 'It\'s great, thanks.';
					reply2 = '[Shrug.] It\'s fine.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[Grotius walks up and stares at his father for a little while. Then he whispers, so low you can barely hear.] I\'m...sorry, Dad. [He turns and walks away.]';
					convtext2 = '';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey, I just wanted to thank you for... [He looks away.] ...you know, uh, leaving my dad back there. Like letting him...you know.';
					convtext2 = '';
					reply1 = 'It\'s no problem, Grotius. Don\'t sweat it.';
					reply2 = 'What is your dad\'s deal, anyway?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well... [He glances around to make sure no one is listening, then leans in close.] The Shadowling Queen killed my mother. She kills a lot of females to keep our population in check, but dad thinks it\'s really just to keep the queen in power.';
					convtext2 = 'What is your dad\'s deal, anyway?';
					reply1 = 'That\'s awful, I\'m sorry.';
					reply2 = 'How does he know?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 19) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He shakes his head.] It\'s fine. When it happened, I was too young to remember much. I do wonder sometimes what she would\'ve been like, though.';
					convtext2 = 'That\'s awful, I\'m sorry.';
					reply1 = 'How does he know?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Don\'t you know? Dad used to be a general in the Queen\'s army. He was Tastidian\'s right-hand man for a long time, then one day, he had some kind of a religious experience or something, and decided he couldn\'t serve the Queen any more.';
					convtext2 = 'How does he know why she\'s doing that?';
					reply1 = 'So what do you think?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 21) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'About the Queen? I mean...I\'ve talked to people in this city--it seems like nearly everyone lives in constant fear of her. And what does she do for them? Everyone\'s crammed into these dirty little shacks while a few people get to live in huge mansions.';
					convtext2 = 'So what do you think?';
					reply1 = 'That\'s true, I suppose.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 22) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'And what about you? I mean, she\'s made you into a slave. Do you even remember the last time you were free to make your own choices? Live the life you wanted to live?';
					convtext2 = 'That\'s true, I suppose.';
					reply1 = 'Actually...no, I don\'t.';
					reply2 = '[Lie.] Yes. Perfectly well. Now let\'s drop this.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 23) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Grotius strokes his chin.] You know, this is the first time I\'ve really given it any thought, but maybe...maybe Dad\'s right. Maybe the Queen really is evil. I dunno. What do you think?';
					convtext2 = 'Actually...no, I don\'t.';
					reply1 = 'I think he\'s right.';
					reply2 = 'I think this is nonsense.';
					reply3 = 'I\'ll have to think about it some more.';
					reply4 = '';
				}
			}
			if (convID == 'anya1') {
				speaker1 = 'Anya';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(9);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hi ' + mainCharName + '!';
					convtext2 = '';
					reply1 = 'Hi Anya--what\'s new?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'It\'s rather surprising--I found the shadowlings intimidating at first, but as weird as it is to say it, they\'re just like people. I mean, they ARE people.';
					convtext2 = 'Hi Anya--what\'s new?';
					reply1 = 'I know what you mean.';
					reply2 = 'They feed on humans, you know.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah! Like Festus. He seemed quite taciturn at first, but now that I\'ve spoken to him, I\'ve realized he\'s actually very kind. He\'s promised to lend me some books so I can learn Shadowling script.';
					convtext2 = 'I know what you mean.';
					reply1 = 'Nice. Well, see you later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well, yeah, I know. I just think it\'s interesting how they have their own personalities. And some of them are actually rather nice. I don\'t really feel worried when I\'m around HQ, you know?';
					convtext2 = 'They feed on humans, you know.';
					reply1 = 'I guess so. Well, see you later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'It\'s really strange seeing Gamblin\' Jack here. We all knew he was gone, but we had no idea what happened to him. The abduction problem at the Academy must really be getting out of hand.';
					convtext2 = 'Hi Anya--what\'s new?';
					reply1 = 'Have you played him yet?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She laughs.] I\'d rather let Guy do it! He\'s grown pretty fond of that card game. Besides, I\'m too busy reading. Festus lent me this. [She shows you a short, leather-bound primer: Her Name Is Unspeakable.]';
					convtext2 = 'Have you played him yet?';
					reply1 = 'What is that about?';
					reply2 = 'Very nice--I\'ll see you later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'So far, it just seems to be legends and folk tales about the Shadowling Queen. Did you know that she\'s thousands of years old? Also, apparently, she can hear her name being spoken anywhere in the world.';
					convtext2 = 'What is that about?';
					reply1 = 'Weird. What else does it say?';
					reply2 = 'Interesting. Well, see you later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m not too far along yet--shadowling script is hard to read. I\'ll let you know when I\'m further along.';
					convtext2 = 'What is that about?';
					reply1 = 'Okay, sounds good.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hi ' + mainCharName + '!';
					convtext2 = '';
					reply1 = 'Hi Anya--what\'s new?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She looks around.] I have some things I need to tell you. But...here, put your hand on my forehead. [You remember this technique: Point Telepathy, for speaking without being overheard. They taught you this your first year at the Psy Academy. You place your hand on Anya\'s forehead, and she places hers on yours.]';
					convtext2 = 'Hi Anya--what\'s new?';
					reply1 = 'Okay, so what do you have to tell me?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Her voice echoes in your mind.] Do you remember that book Festus lent me?';
					convtext2 = 'Okay, so what do you have to tell me?';
					reply1 = 'Yeah. Her Name Was Unspeakable, right?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Close enough. Anyway, the author talks about slave bracelets at one point. That\'s what you have on your wrist, right? Do you remember how it got there?';
					convtext2 = 'Yeah. Her Name Was Unspeakable, right?';
					reply1 = '[Try to remember.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'The author says that the bracelets are designed to impede your memory, especially concerning the circumstances of their attachment. But that causes problems as far as getting them off.';
					convtext2 = '[You struggle to recall, but it\'s all an indiscriminate haze.] I...can\'t remember.';
					reply1 = 'Why? What do you mean?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You can only put on a slave bracelet willingly--either by your own choosing, or as part of a bargain with your future owner. You can also remove them freely. At least, in theory.';
					convtext2 = 'Why? What do you mean?';
					reply1 = 'Okay...what\'s the catch?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'If it was attached willingly, the slave has to remember that for it to come off. If it was part of a bargain, the slave must know that the terms of the bargain have been fulfilled. They\'ll slide right off if that happens. Or if their master releases them. One of those things has to happen, though.';
					convtext2 = 'Okay...what\'s the catch?';
					reply1 = 'That doesn\'t help me much.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We just have to figure out if there were any terms to your enslavement, and if so, what they were. Who would know that?';
					convtext2 = 'That doesn\'t help me much.';
					reply1 = 'Well, probably Tastidian. But...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Hm. I\'m sure we\'ll think of something.';
					convtext2 = 'Well, probably Tastidian. But there\'s no way he\'s going to tell us that.';
					reply1 = 'Was that all you wanted to tell me?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'There\'s one more thing. I...question whether we\'re fighting on the right side in this whole thing. Every chapter I read about the Shadowling Queen makes me feel more and more uncomfortable about fighting on her behalf.';
					convtext2 = 'Was that all you wanted to tell me?';
					reply1 = 'What do you mean?';
					reply2 = 'I won\'t tolerate such talk from you! Understand?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 19) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She shrinks away, breaking the Point Telepathy contact. You realize that your voice might have come across a bit too strongly. Her eyes are averted.] I...yes. I\'m sorry.';
					convtext2 = 'I won\'t tolerate such talk from you! That\'s treason! Understand?';
					reply1 = 'Apology accepted. Let\'s just forget you said that.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'She\'s a tyrant, ' + mainCharName + '. She\'s been oppressing the spriggats for centuries. They used to be their own civilization before the Queen conquered them. Those things Cerzak told you...the book confirms them. It tries to put them in a good light, but I\'m sure the author had little choice about that.';
					convtext2 = 'What do you mean?';
					reply1 = 'I see. But what choice do I have but to serve her?';
					reply2 = 'I won\'t tolerate such talk from you! Understand?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 21) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She shrugs.] Right now? None, I guess. But Guy and I can work on that. [She pauses.] We WILL work on that...';
					convtext2 = 'I see. But what choice do I have but to serve her?';
					reply1 = 'Thanks, Anya. I\'ll talk to you later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 22) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '. Look, before you say anything...I think we need to get that slave bracelet off you. It\'s doing something to your personality. Something bad. You never used to be this cruel or aggressive.';
					convtext2 = '';
					reply1 = 'Fine. What do you want me to do about it?';
					reply2 = 'I don\'t need your help. Leave me alone.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 23) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I have some things to tell you... [She glances around.] Here. Put your hand on my forehead. [You remember this technique: Point Telepathy, for speaking without being overheard. They taught you this your first year at the Psy Academy. You place your hand on Anya\'s forehead, and she places hers on yours.]';
					convtext2 = 'Fine. What do you want me to do about it?';
					reply1 = 'Okay, so what do you have to tell me?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 24) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '. I\'m going to figure out how to get that bracelet off you if it\'s the last thing I do.';
					convtext2 = '';
					reply1 = 'Thanks, Anya.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 98) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Anya doesn\'t meet your gaze. She\'s looking at her hands instead. She mumbles.] Hi.';
					convtext2 = 'Hi Anya, what\'s up?';
					reply1 = 'What\'s the matter?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 99) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I...I just can\'t believe you killed him like that. He was just a boy. Maybe he looked different, but... [She looks up at you.] I\'m scared for you, ' + mainCharName + '. Really. I don\'t feel like I know you anymore.';
					convtext2 = 'What\'s the matter?';
					reply1 = 'I\'m...sorry.';
					reply2 = '[Leave without replying.]';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'guy1') {
				speaker1 = 'Guy';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(10);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey there ' + mainCharName + '. I never got to compliment you on your get-up, by the way. The whole \'all-black\' thing goes very well with you. Very chic.';
					convtext2 = '';
					reply1 = 'What\'s going on, Guy?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Honestly, not that much. The shadowlings keep giving me funny looks. I\'m afraid I\'m going to wake up one of these days and find them gnawing on my leg or something.';
					convtext2 = 'What\'s going on, Guy?';
					reply1 = 'They\'ll get used to you eventually.';
					reply2 = 'Yeah, I know, they\'re kind of creepy.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Gamblin\' Jack was just showing me that card game, Psy War. And by \'showing it to me,\' I mean \'kicking the tar out of me at it.\' I\'m pretty sure I\'m completely broke right now.';
					convtext2 = 'Uh huh. So what\'s going on, Guy?';
					reply1 = 'Wow, that\'s too bad.';
					reply2 = 'I suggest you stop sucking at it then.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey there ' + mainCharName + '. Have you spoken to that knife-thrower guy, Niven? What a drama queen. Polite, though.';
					convtext2 = '';
					reply1 = 'Uh huh. So what\'s going on, Guy?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
		}
		function conv03() {
			if (convID == 'guy2') {
				speaker1 = 'Guy';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(10);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '. Anya is making me shop for some books for her. I can\'t seem to find anything, though. The organizational system here is horrible.';
					convtext2 = '';
					reply1 = 'What kind of books?';
					reply2 = 'That\'s sad. She\'s got you whipped.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You know what? That\'s a good question. She gave me a list. Probably full of books that would put any normal human being to sleep in five seconds flat.';
					convtext2 = 'What kind of books?';
					reply1 = 'Right. Well, good luck.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He gives you a fierce look.] She\'s giving me 5 gold to do this for her, all right? Otherwise I\'d be off doing something less boring.';
					convtext2 = 'That\'s sad. She\'s got you whipped.';
					reply1 = 'Sure, sure you would.';
					reply2 = 'Where is Anya, anyway?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He shrugs.] In her old room, maybe?';
					convtext2 = 'Where is Anya, anyway?';
					reply1 = 'Thanks.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'anya2') {
				speaker1 = 'Anya';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(9);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hey ' + mainCharName + '! Isn\'t it great to be home? I enjoyed visiting all those strange places, but there\'s nowhere quite like the Academy.';
					convtext2 = '';
					reply1 = 'I agree. Somnus was a dump.';
					reply2 = 'Nah, this place is dull.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'It was unique, I\'ll grant you that. Anyway, now that we\'re home, I can finally get in some studying for next semester!';
					convtext2 = 'I agree. Somnus was a dump.';
					reply1 = 'Um, right. Good luck with that.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She shrugs.] Well, I like it. I could use a break after all that running around and fighting.';
					convtext2 = 'Nah, this place is dull.';
					reply1 = 'Enjoy it while it lasts.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'trainer1') {
				speaker1 = 'Aram';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 9) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'All right, how can I help you today?';
					convtext2 = '';
					reply1 = 'I\'d like you to train me.';
					reply2 = 'I\'d like you to train someone in my group.';
					reply3 = 'Teach me about different stats and skills.';
					reply4 = 'Nothing actually. I\'ll be back later.';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What do you want to know?';
					convtext2 = 'Teach me about different stats and skills.';
					reply1 = 'Tell me about my stats and what they do.';
					reply2 = 'Tell me about the different combat skills.';
					reply3 = 'Actually, I have a different request.';
					reply4 = 'Nothing actually. I\'ll be back later.';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Psy Power affects your attack damage and total PsP; Psy Defense affects your hit points, defensive skills, and total PsP; Personality determines your persuasiveness and leadership ability; Aptitude determines how easily you learn and improve; and Speed determines how far you can move in a turn during combat.';
					convtext2 = 'Tell me about my stats and what they do.';
					reply1 = 'Tell me about the different combat skills.';
					reply2 = 'Actually, I have a different request.';
					reply3 = 'Nothing actually. I\'ll be back later.';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Mind Blast is a purely psychic attack that overloads the target\'s synapses; Mind Shield erects a psychic and kinetic shield that absorbs damaging attacks; Pyro Blast creates a powerful pyrokinetic explosion; and Feedback funnels harmful energy from your wounds out of you and into an enemy.';
					convtext2 = 'Tell me about the different combat skills.';
					reply1 = 'Tell me about my stats and what they do.';
					reply2 = 'Actually, I have a different request.';
					reply3 = 'Nothing actually. I\'ll be back later.';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'In what areas would you like me to train you?';
					convtext2 = 'I\'d like you to train me.';
					reply1 = 'I\'d like to improve my Psy Power.';
					reply2 = 'I\'d like to improve my Psy Defense.';
					reply3 = 'I\'d like to improve a combat skill.';
					reply4 = 'Actually, I have a different request.';
				}
				if (convBranch == 14) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'All right, but it will cost you ' + trainingCost + ' gold to improve your Psy Power.';
					convtext2 = 'I\'d like to improve my Psy Power.';
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 15) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'All right, but it will cost you ' + trainingCost + ' gold to improve your Psy Defense.';
					convtext2 = 'I\'d like to improve my Psy Defense.';
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 16) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Which skill would you like to train?';
					convtext2 = 'I\'d like to improve a combat skill.';
					reply1 = 'Mind Blast.';
					reply2 = 'Mind Shield.';
					if (mainCharAttackType2 == 'bigshield') {
						reply2 = 'Big Shield';
					}
					reply3 = 'Pyro Blast.';
					if (mainCharAttackType3 == 'pyrohail') {
						reply3 = 'Pyro Hail';
					}
					reply4 = 'Feedback.';
					if (mainCharAttackType4 == 'vengeance') {
						reply4 = 'Vengeance';
					}
				}
				if (convBranch == 17) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Okay, no problem. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharMBLevel + '.';
					convtext2 = 'Mind Blast.';
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 18) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Okay, no problem. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharMSLevel + '.';
					convtext2 = 'Mind Shield.';
					if (mainCharAttackType2 == 'bigshield') {
						convtext2 = 'Big Shield.';
					}
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 19) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Okay, no problem. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharPBLevel + '.';
					convtext2 = 'Pyro Blast.';
					if (mainCharAttackType3 == 'pyrohail') {
						convtext2 = 'Pyro Hail.';
					}
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 20) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Okay, no problem. It will cost you ' + trainingCost + ' gold to raise this skill from its current level of ' + mainCharFBLevel + '.';
					convtext2 = 'Feedback.';
					if (mainCharAttackType4 == 'vengeance') {
						convtext2 = 'Vengeance.';
					}
					reply1 = 'Sounds good to me--let\'s do it.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 21) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Sorry, but this isn\'t enough money. No worries, though--just come back once you\'ve earned some more gold.';
					convtext2 = 'Sounds good to me--let\'s do it.';
					reply1 = 'Sorry. I guess I\'ll go find some more money...';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have a different request.';
					reply4 = '';
				}
				if (convBranch == 22) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'All right--let\'s begin. [Several hours of intense training pass, with Aram teaching you new tricks and techniques you hadn\'t figured out before.] Congratulations, ' + mainCharName + '; you\'re now a stronger warrior than you were before.';
					convtext2 = 'Sounds good to me--let\'s do it.';
					reply1 = 'Thank you--that was very helpful.';
					reply2 = 'I\'d like to improve something else, actually.';
					reply3 = 'Actually, I have another request.';
					reply4 = '';
				}
				if (convBranch == 23) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What would you like to improve?';
					convtext2 = 'I\'d like to improve something else, actually.';
					reply1 = 'I\'d like to improve my Psy Power.';
					reply2 = 'I\'d like to improve my Psy Defense.';
					reply3 = 'I\'d like to improve a combat skill.';
					reply4 = 'Actually, I have a different request.';
				}
				if (convBranch == 24) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'If what you say is true, I will hear of it soon. Return later.';
					convtext2 = 'But I\'ve done that already!';
					reply1 = 'Fine. I\'ll be back.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 25) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Sure thing. Let\'s have a look at your roster and see what we can do.';
					convtext2 = '';
					reply1 = 'Actually, I have a different request.';
					reply2 = 'Okay!';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 26) {
					ConvBox.gotoAndStop(5);
					reply1 = 'That\'s enough for now.';
				}
			}
			if (convID == 'bookseller1') {
				speaker1 = 'Vernon';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Hello, and welcome to Vernon\'s Fine Books! [He squints and adjusts his glasses.] My, you look remarkably like a student that went here some years ago. Well, no matter. I assume you want some books?';
					convtext2 = '';
					reply1 = 'Actually no, I\'m fine.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'That\'s funny that you should ask--we happen to have one in stock right now. It\'s quite rare, but I\'d be willing to part with it for 200 gold. What do you say?';
					convtext2 = 'Do you have any books on the spriggat-shadowling war?';
					reply1 = 'Sure thing.';
					reply2 = 'Nah, forget it.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'druggist1') {
				speaker1 = 'Moiraine';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Welcome to Moiraine\'s Drug and Alchemical Supply! Unfortunately, we can only offer goods to currently enrolled students.';
					convtext2 = '';
					reply1 = 'Oh, okay.';
					reply2 = '[Lie.] Well, uh, I\'m currently enrolled.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She laughs.] No, ' + mainCharName + ', you aren\'t, and haven\'t been for at least 3 years now. Did you think I wouldn\'t recognize you?';
					convtext2 = 'Well, uh, I\'m currently enrolled.';
					reply1 = 'Wow. Yes actually, I did.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'nightling1') {
				speaker1 = 'Nightling';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(24);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[This shadowling is engrossed in a book. He emanates feelings of alienation and loneliness. Something tells you he is an adolescent. He looks up as you approach.] Yeah?';
					convtext2 = '';
					reply1 = 'Well, aren\'t you Gloomy McGloomypants!';
					reply2 = 'What are you reading?';
					reply3 = 'Never mind.';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Um, right. How about you go away now.';
					convtext2 = 'Well, aren\'t you Gloomy McGloomypants!';
					reply1 = 'Sure thing.';
					reply2 = 'What are you reading?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He shrugs.] It\'s a history book. It\'s about how the shadowlings and the spriggats started fighting each other. It\'s pretty interesting.';
					convtext2 = 'What are you reading?';
					reply1 = 'Can I borrow that book?';
					reply2 = 'Why did they start fighting, anyway?';
					reply3 = 'That\'s great. Bye.';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[He hesitates.] Um...no. It\'s not mine, actually.';
					convtext2 = 'Can I borrow that book?';
					reply1 = 'Why did they start fighting, anyway?';
					reply2 = 'Thanks anyway. Bye.';
					reply3 = '';
					if (spokeToGrotius == 2 && mainCharAptitude > 8) {
						reply3 = 'I know someone who\'d love to talk with you...';
					}
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well...it\'s kind of complicated.';
					convtext2 = 'Why did they start fighting, anyway?';
					reply1 = 'Can I borrow that book?';
					reply2 = 'Thanks anyway. Bye.';
					reply3 = '';
					if (spokeToGrotius == 2 && mainCharAptitude > 8) {
						reply3 = 'I know someone who\'d love to talk with you...';
					}
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What? How do you know? And what makes you think I\'d want to talk to him?';
					convtext2 = 'I know someone who\'d love to talk with you about that.';
					reply1 = 'Because. You\'re obviously desperate.';
					reply2 = 'You both seem kind of lonely. Plus, he\'s a spriggat.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'What? No way. There\'s no way there are any spriggats around here, much less any who\'d want to hang out with a shadowling like me.';
					convtext2 = 'You both seem kind of lonely. Plus, he\'s a spriggat.';
					reply1 = 'He\'s your age. He likes reading. I bet you\'d get along.';
					reply2 = 'Ah, forget it.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well, okay. There are like a billion people my age who I don\'t like. Why does everyone think that I\'ll like someone just because they\'re my age?';
					convtext2 = 'He\'s your age. He likes reading. I bet you\'d get along.';
					reply1 = 'Ah, forget it.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Well...wait. What\'s his name?';
					convtext2 = 'Ah, forget it.';
					reply1 = 'Grotius. He\'s down at HQ if you want to meet him.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = '...maybe.';
					convtext2 = 'Grotius. He\'s down at HQ if you want to meet him.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[A sound like a growl reverberates in your mind.] Go to hell.';
					convtext2 = 'Because. You\'re obviously desperate.';
					reply1 = 'Later.';
					reply2 = 'I\'m already there, buddy.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'negatus1') {
				speaker1 = 'Negatus';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(20);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Clerk';
					speaker2 = '';
					convtext1 = 'Welcome to the Office of the Queen\'s Servant. I am Negatus. Here on business for your master?';
					convtext2 = '';
					reply1 = 'What is this place?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Like I said, this is the Office of the Queen\'s Servant. We distribute mail, collect taxes, and forward petitions for resurrection of the dead to the Queen.';
					convtext2 = 'What is this place?';
					reply1 = 'Resurrection?! Like, being raised from the dead?';
					reply2 = 'Never mind. This place is boring.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Naturally. You have to be authorized to submit a request, however. The Queen has many demands on her time, so she won\'t raise the dead for just anybody.';
					convtext2 = 'Wait--resurrection? Like, being raised from the dead?';
					reply1 = 'I serve General Tastidian. Does that count?';
					reply2 = 'Forget I asked.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Negatus snaps to attention.] You serve the General?! Well, why didn\'t you say so! Let\'s have a look at your force.';
					convtext2 = 'I serve General Tastidian. Does that count?';
					reply1 = '[Continue.]';
					reply2 = 'Actually, I\'ll come back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					countDead();
					convtext1 = 'Hm. It looks like ' + totalDead + ' of your team members are dead. For that number of dead, the Queen charges charges ' + reviveCost + ' gold.';
					convtext2 = 'I serve General Tastidian. Does that count?';
					reply1 = 'Fine. Let\'s get everyone back to life!';
					reply2 = 'Actually, I\'ll come back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Welcome back to the Office of the Queen\'s Servant, ' + mainCharName + '. How may I assist you today?';
					convtext2 = '';
					reply1 = 'I need to bring someone back to life.';
					reply2 = 'Actually, I\'ll come back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'All right; I will submit your petition to the Queen. By the way, she\'s very fast--don\'t be surprised if your men are back at headquarters before you are!';
					convtext2 = 'Fine. Let\'s get everyone back to life!';
					reply1 = 'Thanks.';
					reply2 = 'Really? Weird.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m sorry, but this isn\'t enough gold.';
					convtext2 = 'Fine. Let\'s get everyone back to life!';
					reply1 = 'I\'ll come back later.';
					reply2 = 'Can\'t you make an exception?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Sorry, no exceptions. It\'s the Queen\'s policy to discourage high attrition tactics.';
					convtext2 = 'Can\'t you make an exception? I fight for the Queen!';
					reply1 = 'Fine. I\'ll come back later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					countDead();
					convtext1 = 'Weeeell... [He looks around furtively.] Normally, no. But since you work for the General, I\'ll give you a little discount. You just need to pay ' + reviveCost + ' gold.';
					convtext2 = 'Can\'t you make an exception? I fight for the Queen!';
					reply1 = 'Fine. Let\'s get everyone back to life!';
					reply2 = 'Still too much. I\'ll come back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Sorry, but this still isn\'t enough. ' + reviveCost + ' gold is the best I can do.';
					convtext2 = 'Fine. Let\'s get everyone back to life!';
					reply1 = 'I\'ll come back later.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					countDead();
					convtext1 = 'Hm. It looks like ' + totalDead + ' of your team members are dead. For that number of dead, the Queen charges charges ' + reviveCost + ' gold.';
					convtext2 = 'I need to bring someone back to life.';
					reply1 = 'Fine. Let\'s get everyone back to life!';
					reply2 = 'Actually, I\'ll come back later.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 13) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I\'m sorry, maybe you didn\'t hear me. No one in your team is dead. They\'re all fine. Let\'s not waste the Queen\'s time, hm?';
					convtext2 = 'Fine. Let\'s get everyone back to life!';
					reply1 = 'Oh...right.';
					reply2 = 'Heh, just kidding.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'guard1') {
				speaker1 = 'Guard';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Can I help you?';
					convtext2 = '';
					reply1 = 'I\'d like to leave.';
					reply2 = 'Where is everything?';
					reply3 = 'Never mind.';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You\'re a black cape, and you need me to show you around? Student apartments are in the Northeast building, Miss Cleo\'s is in the Northwest, shops are in the Southwest, and faculty and administrative offices are in the Southeast.';
					convtext2 = 'Where is everything?';
					reply1 = 'Okay, thanks.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'guard2') {
				speaker1 = 'Guard';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(50);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[This guard\'s voice is gruff, and he doesn\'t sound friendly.] Hey kid, what\'s black and red and leaves quickly?';
					convtext2 = '';
					reply1 = 'What?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You. Now buzz off--I\'m drinking.';
					convtext2 = 'What?';
					reply1 = 'Uh, okay. Bye.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[You start to talk to this guard, then realize that he\'s actually fallen asleep standing up. He\'s snoring pretty loudly, actually.]';
					convtext2 = '';
					reply1 = '[Leave him.]';
					reply2 = '[Pick his pockets.]';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Huh? What? [You quickly pull your hand back.] Whuzzit...wursh happening...ohhh...sleepy... [His eyelids flicker, his head droops, and he starts snoring again.]';
					convtext2 = '[You begin to reach for his pocket, when he suddenly starts awake.]';
					reply1 = '[Leave him.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[This guard ignores you, and continues talking to his friend.] ...yeah, did you hear about McGee? They caught him eating candy on duty, suspended him without pay for five days. Poor bastard...';
					convtext2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[The guard ignores you, and continues talking to his friend.] ...but did you hear about the time Davis got caught stealing pickles from the basement? He was banned from the bar for a solid month...';
					convtext2 = '';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Sorry kid, but I\'m off for the day. My job now is to get plastered, and I just can\'t have you breaking my concentration. Understand?';
					convtext2 = '';
					reply1 = 'Yeah, I understand.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'See, that\'s the problem. I obviously haven\'t drunk enough yet. Just give me an hour or two, and I\'ll become totally incomprehensible.';
					convtext2 = 'Yeah, I understand.';
					reply1 = 'Uh, okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[The guard stirs a little, but you are successful in keeping him asleep. You pull out a bag of 350 gold coins!]';
					convtext2 = '[You reach into his pocket while gently Suggesting that he remain asleep.]';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[The guard stirs a little, but you are successful in keeping him asleep. Unfortunately, he doesn\'t have any more gold for you.]';
					convtext2 = '[You reach into his pocket while gently Suggesting that he remain asleep.]';
					reply1 = '[Done.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = 'Sorry, I\'m not allowed to talk while I\'m on shoplifting duty.';
					convtext2 = '';
					reply1 = 'Oh, okay.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
		}
		function reply() {
			if (convID == 'narrative1' || convID == 'snarl1' || convID == 'shadguard1' || convID == 'tastidian1' || convID == 'flavin1' || convID == 'vagrant1' || convID == 'thallion1' || convID == 'hellion1' || convID == 'penumbra1' || convID == 'lala1') {
				reply01();
			} else {
				if (convID == 'negatus1' || convID == 'nightling1' || convID == 'guy2' || convID == 'anya2' || convID == 'guard1' || convID == 'guard2' || convID == 'trainer1' || convID == 'bookseller1' || convID == 'druggist1') {
					reply03();
				} else {
					reply02();
				}
			}
		}
		function reply01() {
			if (convID == 'narrative1') {
				if (convBranch < 48) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 48 || convBranch == 49) {
					if (replied == 1) {
						goingtoScene = 'battle05G';
						gotoAndStop('switchDeeper04');
					}
					if (replied == 2) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeDeeper04');
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 50) {
					if (replied == 1) {
						if (gotFlint == true) {
							replied = 0;
							convID = 'helena2';
							convBranch = 1;
							conversation();
						}
						if (!gotFlint) {
							talking = 0;
							conversation();
						}
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 51) {
					if (replied == 1) {
						mainCharResists = 'Cold';
						replied = 0;
						convBranch = 59;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 52) {
					if (replied == 1) {
						mainCharResists = 'Heat';
						replied = 0;
						convBranch = 60;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 53) {
					if (replied == 1) {
						mainCharResists = 'Shadow';
						replied = 0;
						convBranch = 61;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 54) {
					if (replied == 1) {
						mainCharResists = 'Light';
						replied = 0;
						convBranch = 62;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 55) {
					if (replied == 1) {
						mainCharSpeed = 9;
						mainCharAttackType3 = 'pyroblast';
						hyperFocus = false;
						mainCharAttackType2 = 'mindshield';
						replied = 0;
						convBranch = 63;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 56) {
					if (replied == 1) {
						mainCharAttackType3 = 'pyrohail';
						hyperFocus = false;
						mainCharSpeed = 5;
						mainCharAttackType2 = 'mindshield';
						replied = 0;
						convBranch = 64;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 57) {
					if (replied == 1) {
						hyperFocus = true;
						mainCharSpeed = 5;
						mainCharAttackType2 = 'mindshield';
						mainCharAttackType3 = 'pyroblast';
						replied = 0;
						convBranch = 65;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 58) {
					if (replied == 1) {
						replied = 0;
						if (mainCharAptitude > 9) {
							mainCharAttackType2 = 'bigshield';
							hyperFocus = false;
							mainCharSpeed = 5;
							mainCharAttackType3 = 'pyroblast';
							convBranch = 66;
						} else {
							convBranch = 18;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch > 58 && convBranch < 67) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 67) {
					if (replied == 1) {
						talking = 0;
						conversation();
						goingtoScene = 'lake01';
						gotoAndStop('closeBoating01');
					}
					if (replied == 2) {
						mainChar._rotation = -90;
						moveSpeed = 8;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 68) {
					if (replied == 1) {
						talking = 0;
						conversation();
						goingtoScene = 'lake01';
						gotoAndStop('closeBoating03');
					}
					if (replied == 2) {
						mainChar._rotation = -90;
						moveSpeed = 8;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 69) {
					if (replied == 1) {
						talking = 0;
						conversation();
						goingtoScene = 'lake02';
						gotoAndStop('closeBoating01');
					}
					if (replied == 2) {
						mainChar._rotation = 90;
						moveSpeed = 8;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 70) {
					if (replied == 1) {
						if (!gotGrotius) {
							convID = 'darkeye1';
							convBranch = 4;
							conversation();
						}
						if (gotGrotius == true) {
							replied = 0;
							convID = 'grotius1';
							convBranch = 16;
							conversation();
						}
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 71) {
					if (replied == 1) {
						goingtoScene = 'acad02NE_E2';
						gotoAndStop('switchAcad02');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 72) {
					if (replied == 1) {
						replied = 0;
						convBranch = 73;
						spokeToDavid = 2;
						playMysteryFlourish();
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 73) {
					if (replied == 1) {
						mainCharResists = 'Shadow';
						gotBlackOrb = true;
						playBazaarMusic();
						replied = 0;
						convBranch = 61;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'lala1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						spokeToLala = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						convBranch = 13;
						money += 10 * mainCharPersonality;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 14;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						spokeToLala = 3;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToLala = 3;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						replied = 0;
						spokeToLala = 3;
						gotWhiteOrb = true;
						checkOrbTotal();
						playMysteryFlourish();
						convBranch = 15;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						replied = 0;
						mainCharResists = 'Light';
						convBranch = 16;
						conversation();
					}
					if (replied == 2) {
						playMystereMusic();
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						playMystereMusic();
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'flavin1') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3 || convBranch == 4) {
					if (replied == 1) {
						spokeToFlavin = 1;
						goingtoScene = 'startTownFight01';
						gotoAndStop('switchTown01');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9 || convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						money += 1000;
						gotSaw = false;
						spokeToFlavin = 3;
						convBranch = 10;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						if (gotSaw == true) {
							replied = 0;
							convBranch = 9;
							conversation();
						} else {
							talking = 0;
							conversation();
						}
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'thallion1') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2 && spokeToJack == 0) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2 && spokeToJack > 0) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						if (money < 500 && money > 400 && mainCharPersonality > 8) {
							money = 0;
							spokeToJack = 3;
							replied = 0;
							convBranch = 12;
							conversation();
						} else {
							if (money < 500) {
								spokeToJack = 2;
								replied = 0;
								convBranch = 8;
								conversation();
							} else {
								if (money >= 500) {
									money -= 500;
									spokeToJack = 3;
									replied = 0;
									convBranch = 9;
									conversation();
								}
							}
						}
					}
					if (replied == 2) {
						spokeToJack = 2;
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'shadguard1') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'hellion1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						spokeToHellion = 1;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						spokeToHellion = 1;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						spokeToHellion = 1;
						convBranch = 24;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						if (mission1Done == true) {
							spokeToHellion = 2;
							convBranch = 8;
						}
						if (mission1Done == false) {
							convBranch = 7;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 25;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						trainingCost = 26 * mainCharPsyPower - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 15;
						trainingCost = 26 * mainCharPsyDefense - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 16;
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharPsyPower += 1;
							deriveStats2();
							HPdisplay();
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharPsyDefense += 1;
							deriveStats2();
							HPdisplay();
							levelUp();
							if (mainCharPsyDefense >= 15 && mainCharAttackType4 !== 'vengeance') {
								leveler = 'mainChar1';
								newSkill();
							}
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						replied = 0;
						trainingCost = 100 + 25 * mainCharMBLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 17;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						trainingCost = 100 + 25 * mainCharMSLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 18;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						trainingCost = 130 + 25 * mainCharPBLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 19;
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						trainingCost = 120 + 25 * mainCharFBLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 20;
						conversation();
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharMBLevel += 1;
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharMSLevel += 1;
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharPBLevel += 1;
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharFBLevel += 1;
							levelUp();
							if (mainCharFBLevel >= 5 && mainCharAttackType4 !== 'vengeance') {
								leveler = 'mainChar1';
								newSkill();
							}
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 21 || convBranch == 22) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 23) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						trainingCost = 25 * mainCharPsyPower - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 15;
						trainingCost = 25 * mainCharPsyDefense - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 16;
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
				}
				if (convBranch == 24) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 25) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 26;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 26) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 95) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 96) {
					if (replied == 1) {
						replied = 0;
						convBranch = 97;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 97) {
					if (replied == 1) {
						beatGame = 2;
						money += 5000;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 98) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 99;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 99) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'tastidian1') {
				if (convBranch == 0) {
					if (replied == 1) {
						replied = 0;
						convBranch = 1;
						spokeToTastidian = 20;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						gotDarkling = true;
						gotShadowboxer = true;
						gotFestus = true;
						darklingDead = false;
						shadowboxerDead = false;
						festusDead = false;
						slot1 = 'Darkling';
						slot2 = 'Shadowboxer';
						slot3 = 'Festus';
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						spokeToTastidian = 1;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						spokeToTastidian = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						replied = 0;
						convBranch = 10;
						if (mission1Done == true) {
							convBranch = 12;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						spokeToTastidian = 2;
						money += 200;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToTastidian = 2;
						money += 200;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						spokeToTastidian = 2;
						money += 200;
						convBranch = 42;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						replied = 0;
						convBranch = 15;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						replied = 0;
						convBranch = 16;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 17;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						randomBattles = 0;
						spokeToTastidian = 3;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 18;
						conversation();
					}
					if (replied == 3) {
						spokeToTastidian = 3;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						randomBattles = 0;
						spokeToTastidian = 3;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 18;
						conversation();
					}
					if (replied == 3) {
						spokeToTastidian = 3;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						randomBattles = 0;
						spokeToTastidian = 3;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						spokeToTastidian = 3;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						replied = 0;
						convBranch = 20;
						if (mission2Done == true) {
							convBranch = 22;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 21;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 21) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 22) {
					if (replied == 1) {
						spokeToTastidian = 4;
						money += 320;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToTastidian = 4;
						money += 320;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 23) {
					if (replied == 1) {
						replied = 0;
						convBranch = 24;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 24) {
					if (replied == 1) {
						replied = 0;
						convBranch = 25;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 25) {
					if (replied == 1) {
						replied = 0;
						convBranch = 26;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 26) {
					if (replied == 1) {
						replied = 0;
						convBranch = 27;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 28;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 27) {
					if (replied == 1) {
						spokeToTastidian = 5;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						spokeToTastidian = 5;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 28) {
					if (replied == 1) {
						spokeToTastidian = 5;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						spokeToTastidian = 5;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 29) {
					if (replied == 1) {
						replied = 0;
						convBranch = 30;
						if (mission3Done == true) {
							convBranch = 32;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 30) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 31;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 31) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 32) {
					if (replied == 1) {
						replied = 0;
						convBranch = 33;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 33) {
					if (replied == 1) {
						spokeToTastidian = 7;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToTastidian = 7;
						replied = 0;
						convBranch = 34;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 34) {
					if (replied == 1) {
						spokeToTastidian = 7;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 35) {
					if (replied == 1) {
						replied = 0;
						convBranch = 36;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 36) {
					if (replied == 1) {
						replied = 0;
						convBranch = 37;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 37) {
					if (replied == 1) {
						replied = 0;
						convBranch = 38;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 38) {
					if (replied == 1) {
						replied = 0;
						convBranch = 39;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 39) {
					if (replied == 1) {
						spokeToTastidian = 8;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						spokeToTastidian = 8;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 40) {
					if (replied == 1) {
						replied = 0;
						convBranch = 41;
						if (mission5Done == true) {
							convBranch = 43;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 41) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 42) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 43) {
					if (replied == 1) {
						spokeToTastidian = 9;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToTastidian = 9;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 44) {
					if (replied == 1) {
						replied = 0;
						spokeToTastidian = 10;
						convBranch = 45;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 45) {
					if (replied == 1) {
						replied = 0;
						convBranch = 46;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 47;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 46) {
					if (replied == 1) {
						replied = 0;
						convBranch = 48;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 47;
						conversation();
					}
					if (replied == 3) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 47) {
					if (replied == 1) {
						replied = 0;
						convBranch = 46;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 48;
						conversation();
					}
					if (replied == 3) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 48) {
					if (replied == 1) {
						replied = 0;
						convBranch = 46;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 47;
						conversation();
					}
					if (replied == 3) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 49) {
					if (replied == 1) {
						replied = 0;
						convBranch = 50;
						if (mission6Done == true) {
							convBranch = 51;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 50) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 51) {
					if (replied == 1) {
						spokeToTastidian = 11;
						money += 2000;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 52) {
					if (replied == 1) {
						replied = 0;
						convBranch = 53;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 53) {
					if (replied == 1) {
						replied = 0;
						convBranch = 54;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 54) {
					if (replied == 1) {
						replied = 0;
						convBranch = 55;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 55) {
					if (replied == 1) {
						replied = 0;
						convBranch = 56;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 56) {
					if (replied == 1) {
						spokeToTastidian = 12;
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						spokeToTastidian = 12;
						replied = 0;
						convBranch = 57;
						conversation();
					}
					if (replied == 3) {
						spokeToTastidian = 12;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 57) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 58) {
					if (replied == 1) {
						replied = 0;
						convBranch = 59;
						if (spokeToPiter == 2) {
							convBranch = 60;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 59) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 60) {
					if (replied == 1) {
						replied = 0;
						convBranch = 61;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 61) {
					if (replied == 1) {
						replied = 0;
						convBranch = 62;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 62) {
					if (replied == 1) {
						replied = 0;
						convBranch = 63;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 63) {
					if (replied == 1) {
						replied = 0;
						convBranch = 64;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 64) {
					if (replied == 1) {
						spokeToTastidian = 13;
						replied = 0;
						convBranch = 68;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 65) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 66) {
					if (replied == 1) {
						replied = 0;
						convBranch = 67;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 67) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeTown01');
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 68) {
					if (replied == 1) {
						replied = 0;
						convBranch = 69;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 69) {
					if (replied == 1) {
						replied = 0;
						convBranch = 65;
						gotGuy = false;
						gotAnya = false;
						removeAnyaGuy();
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 95) {
					if (replied == 1) {
						replied = 0;
						convBranch = 96;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 96) {
					if (replied == 1) {
						replied = 0;
						convBranch = 97;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 97) {
					if (replied == 1) {
						spokeToFlavin = 2;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'penumbra1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						if (mainCharPersonality >= 8) {
							convBranch = 5;
						}
						if (mainCharPersonality < 8) {
							convBranch = 3;
						}
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						if (openedAccount == true) {
							convBranch = 14;
						} else {
							convBranch = 6;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						if (money < 100) {
							convBranch = 11;
						}
						if (money >= 100) {
							amtInAccount = 1;
							money -= 100;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						if (money < 200) {
							convBranch = 11;
						}
						if (money >= 200) {
							amtInAccount = 2;
							money -= 200;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						if (money < 300) {
							convBranch = 11;
						}
						if (money >= 300) {
							amtInAccount = 3;
							money -= 300;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						if (money < 400) {
							convBranch = 11;
						}
						if (money >= 400) {
							amtInAccount = 4;
							money -= 400;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						if (money < 500) {
							convBranch = 11;
						}
						if (money >= 500) {
							amtInAccount = 5;
							money -= 500;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						if (money < 600) {
							convBranch = 11;
						}
						if (money >= 600) {
							amtInAccount = 6;
							money -= 600;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						replied = 0;
						if (money < 700) {
							convBranch = 11;
						}
						if (money >= 700) {
							amtInAccount = 7;
							money -= 700;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						if (money < 800) {
							convBranch = 11;
						}
						if (money >= 800) {
							amtInAccount = 8;
							money -= 800;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						if (money < 900) {
							convBranch = 11;
						}
						if (money >= 900) {
							amtInAccount = 9;
							money -= 900;
							lastMissionsDone = missionsDone;
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						openedAccount = true;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						replied = 0;
						tallyMissions();
						if (lastMissionsDone == missionsDone) {
							convBranch = 16;
						}
						if (lastMissionsDone < missionsDone) {
							amtDue = amtInAccount * 100 + 25 * (missionsDone - lastMissionsDone) * amtInAccount;
							convBranch = 17;
						}
						if (amtInAccount == 0) {
							convBranch = 20;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 15;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						if (amtInAccount == 0) {
							convBranch = 7;
						}
						if (amtInAccount > 0) {
							convBranch = 19;
						}
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						replied = 0;
						tallyMissions();
						if (lastMissionsDone == missionsDone) {
							convBranch = 16;
						}
						if (lastMissionsDone < missionsDone) {
							amtDue = amtInAccount * 100 + 25 * (missionsDone - lastMissionsDone) * amtInAccount;
							convBranch = 17;
						}
						if (amtInAccount == 0) {
							convBranch = 20;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						replied = 0;
						convBranch = 15;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						replied = 0;
						money += amtDue;
						amtInAccount = 0;
						convBranch = 18;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						replied = 0;
						tallyMissions();
						if (lastMissionsDone == missionsDone) {
							convBranch = 16;
						}
						if (lastMissionsDone < missionsDone) {
							amtDue = amtInAccount * 100 + 25 * (missionsDone - lastMissionsDone) * amtInAccount;
							convBranch = 17;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'snarl1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 14;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 15;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch >= 9 && convBranch <= 12) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch >= 13 && convBranch <= 15) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'vagrant1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						if (money < 200) {
							showTakenMoney = money;
							takenMoney = money + 10;
							money = 0;
							convBranch = 8;
						}
						if (money >= 200) {
							money -= 200;
							convBranch = 7;
						}
						conversation();
					}
					if (replied == 2) {
						takenMoney = 10;
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 3) {
						if (mainCharAptitude > 9) {
							replied = 0;
							convBranch = 10;
							conversation();
						}
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						spokeToVagrant = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8 || convBranch == 9) {
					if (replied == 1) {
						spokeToVagrant = 2;
						goingtoScene = 'startTownFight02';
						gotoAndStop('switchTown01');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						money += 50;
						spokeToVagrant = 2;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToVagrant = 2;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
		}
		function reply02() {
			if (convID == 'pete1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2 || convBranch == 10 || convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						if (beat06A == true) {
							talking = 0;
							conversation();
							goingtoScene = 'lakeOpen02';
							gotoAndStop('closeLake01');
						} else {
							replied = 0;
							convBranch = 11;
							conversation();
						}
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 8;
						playMysteryFlourish();
						gotGreenOrb = true;
						checkOrbTotal();
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						mainCharSpeed = 9;
						mainCharAttackType3 = 'pyroblast';
						hyperFocus = false;
						mainCharAttackType2 = 'mindshield';
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
						playMystereMusic();
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						playMystereMusic();
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'gelf1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						spokeToGelf = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5 || convBranch == 9) {
					if (replied == 1) {
						replied = 0;
						if (money < 400) {
							spokeToGelf = 1;
							convBranch = 8;
						}
						if (money >= 400) {
							money -= 400;
							gotCapacitor = true;
							convBranch = 6;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						if (money < 400) {
							spokeToGelf = 1;
							convBranch = 8;
						}
						if (money >= 400) {
							money -= 400;
							gotFlameThrower = true;
							convBranch = 7;
						}
						conversation();
					}
					if (replied == 3) {
						spokeToGelf = 1;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6 || convBranch == 7 || convBranch == 8 || convBranch == 18) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						replied = 0;
						if (money < 400) {
							convBranch = 8;
						}
						if (money >= 400) {
							money -= 400;
							gotCapacitor = true;
							convBranch = 6;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						replied = 0;
						if (money < 400) {
							convBranch = 8;
						}
						if (money >= 400) {
							money -= 400;
							gotFlameThrower = true;
							convBranch = 7;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						if (gotIndigoOrb == true) {
							convBranch = 18;
						} else {
							convBranch = 13;
						}
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						if (money < 1000) {
							convBranch = 8;
						}
						if (money >= 1000) {
							money -= 1000;
							gotIndigoOrb = true;
							checkOrbTotal();
							convBranch = 14;
						}
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						replied = 0;
						if (mainCharAptitude > 9) {
							convBranch = 16;
						} else {
							convBranch = 15;
						}
						playMysteryFlourish();
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15 || convBranch == 17) {
					if (replied == 1) {
						talking = 0;
						conversation();
						playMirrorMusic();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						mainCharAttackType2 = 'bigshield';
						hyperFocus = false;
						mainCharSpeed = 5;
						mainCharAttackType3 = 'pyroblast';
						replied = 0;
						convBranch = 17;
						conversation();
					}
					if (replied == 2) {
						playMirrorMusic();
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'fredrik1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'alvin1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'karli1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'amanda1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'piter1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						playBazaarMusic();
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3 || convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						spokeToPiter = 1;
						playBazaarMusic();
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 16;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 15;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'david1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						playDavidMusic();
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						playBazaarMusic();
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						talking = 0;
						playBazaarMusic();
						spokeToDavid = 1;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'dean1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5 || convBranch == 6 || convBranch == 10) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						spokeToPiter = 2;
						goingtoScene = 'mapScreen';
						gotoAndStop('switchAcad02');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11 || convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						replied = 0;
						convBranch = 15;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						replied = 0;
						convBranch = 16;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						replied = 0;
						convBranch = 17;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						replied = 0;
						convBranch = 18;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						replied = 0;
						if (gotNiven == true) {
							convBranch = 19;
						} else {
							convBranch = 23;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						replied = 0;
						convBranch = 20;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20 || convBranch == 23) {
					if (replied == 1) {
						replied = 0;
						convBranch = 21;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 21) {
					if (replied == 1) {
						spokeToPiter = 3;
						goingtoScene = 'acad01NE_E';
						gotoAndStop('switchAcad02');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 22) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'darkeye1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						goingtoScene = 'battle06C';
						gotoAndStop('closeLake03');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						if (gotGrotius == true) {
							convBranch = 5;
							conversation();
						} else {
							spokeToGrotius = 98;
							goingtoScene = 'lake03B';
							gotoAndStop('switchLake03');
						}
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6 || convBranch == 9) {
					if (replied == 1) {
						goingtoScene = 'lakeOpen03';
						gotoAndStop('closeLake03');
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						mainCharPersonality -= 5;
						gotGrotius = false;
						spokeToGrotius = 99;
						removeGrotius();
						goingtoScene = 'lake03B';
						gotoAndStop('switchLake03');
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8 || convBranch == 10) {
					if (replied == 1) {
						goingtoScene = 'lakeOpen03';
						gotoAndStop('closeLake03B');
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						replied = 0;
						convBranch = 12;
						if (gotGrotius == true) {
							convBranch = 13;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 12;
						if (gotGrotius == true) {
							convBranch = 13;
						}
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12 || convBranch == 15) {
					if (replied == 1) {
						goingtoScene = 'battle06E';
						gotoAndStop('closeLake03A');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						replied = 0;
						convBranch = 15;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'shadowboxer1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'darkling1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'festus1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						convBranch = 5;
						ConvBox._visible = false;
						Background.Festus.gotoAndStop(2);
						replied = 0;
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						convBranch = 5;
						ConvBox._visible = false;
						Background.Festus.gotoAndStop(2);
						replied = 0;
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						convBranch = 5;
						ConvBox._visible = false;
						Background.Festus.gotoAndStop(2);
						replied = 0;
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'niven2') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						if (mainCharAptitude > 7) {
							replied = 0;
							convBranch = 5;
							conversation();
						}
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
						if (mainCharAptitude > 7) {
							replied = 0;
							convBranch = 5;
							conversation();
						}
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
						if (mainCharAptitude > 7) {
							replied = 0;
							convBranch = 5;
							conversation();
						}
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'niven1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 4) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 20;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 4) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						spokeToNiven = 2;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToNiven = 2;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						spokeToNiven = 2;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 8;
						if (mission1Done == true && spokeToNiven == 1) {
							convBranch = 24;
						}
						conversation();
					}
					if (replied == 2) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 17;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(4) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 2) {
						if (charHP <= 6) {
							convBranch = 18;
							conversation();
						}
						if (charHP > 6) {
							convBranch = random(7) + 9;
							ConvBox._visible = false;
							Background.Niven.gotoAndStop(2);
						}
						replied = 0;
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						money += pincushionGold;
						pincushionGold = 0;
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						money += pincushionGold;
						pincushionGold = 0;
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						money += pincushionGold;
						pincushionGold = 0;
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						money += pincushionGold;
						pincushionGold = 0;
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						money += pincushionGold;
						pincushionGold = 0;
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						money += pincushionGold;
						pincushionGold = 0;
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 21) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 22) {
					if (replied == 1) {
						spokeToNiven = 1;
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 23) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 24) {
					if (replied == 1) {
						replied = 0;
						convBranch = 25;
						conversation();
					}
					if (replied == 2) {
						spokeToNiven = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 25) {
					if (replied == 1) {
						replied = 0;
						if (mainCharPersonality <= 7) {
							convBranch = 26;
						}
						if (mainCharPersonality > 7) {
							convBranch = 27;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 28;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 26) {
					if (replied == 1) {
						replied = 0;
						convBranch = 28;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 27) {
					if (replied == 1) {
						gotNiven = true;
						nivenDead = false;
						spokeToNiven = 3;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 28) {
					if (replied == 1) {
						replied = 0;
						if (money < 200) {
							convBranch = 29;
						}
						if (money >= 200) {
							money -= 200;
							convBranch = 30;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 29) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 30) {
					if (replied == 1) {
						gotNiven = true;
						nivenDead = false;
						spokeToNiven = 3;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 31) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'grotius0') {
				if (convBranch == 1) {
					if (replied == 1) {
						convBranch = 2;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 3;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						convBranch = 4;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						convBranch = 4;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						convBranch = 5;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 6;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						convBranch = 7;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						convBranch = 11;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 10;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						convBranch = 9;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 8;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8 || convBranch == 9) {
					if (replied == 1) {
						spokeToGrotius = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						if (mainCharPersonality <= 9) {
							convBranch = 12;
						}
						if (mainCharPersonality > 9) {
							convBranch = 13;
						}
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						spokeToGrotius = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						if (mainCharPersonality <= 7) {
							convBranch = 14;
						}
						if (mainCharPersonality > 7) {
							convBranch = 15;
						}
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						convBranch = 10;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToGrotius = 1;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12 || convBranch == 14) {
					if (replied == 1) {
						spokeToGrotius = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						convBranch = 10;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						convBranch = 16;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						spokeToGrotius = 2;
						gotGrotius = true;
						grotiusDead = false;
						talking = 0;
						conversation();
						goingtoScene = 'workshop07B';
						gotoAndStop('switchWorkshop07');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'grotius1') {
				if (convBranch == 1) {
					if (replied == 1) {
						if (mainCharPersonality > 8) {
							convBranch = 3;
						} else {
							convBranch = 2;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						convBranch = 4;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						convBranch = 5;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						convBranch = 6;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						convBranch = 7;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						talking = 0;
						conversation();
						spokeToGrotius = 2;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						convBranch = 9;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						convBranch = 10;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						convBranch = 11;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						convBranch = 12;
						replied = 0;
						playMysteryFlourish();
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						convBranch = 13;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 14;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						talking = 0;
						conversation();
						mainCharResists = 'Cold';
						playMystereMusic();
						gotBlueOrb = true;
						checkOrbTotal();
						spokeToGrotius = 4;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						talking = 0;
						conversation();
						gotBlueOrb = true;
						checkOrbTotal();
						playMystereMusic();
						spokeToGrotius = 4;
					}
					if (replied == 2) {
						talking = 0;
						conversation();
						gotBlueOrb = true;
						checkOrbTotal();
						playMystereMusic();
						spokeToGrotius = 4;
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						convID = 'darkeye1';
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 18;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						replied = 0;
						convBranch = 19;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 20;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						replied = 0;
						convBranch = 20;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20) {
					if (replied == 1) {
						replied = 0;
						convBranch = 21;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 21) {
					if (replied == 1) {
						replied = 0;
						convBranch = 22;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 22) {
					if (replied == 1) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 23) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'helena1') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						if (gotJack == true) {
							talking = 0;
							conversation();
						}
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 50) {
					if (replied == 1) {
						convBranch = 51;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 51) {
					if (replied == 1) {
						gotSaw = false;
						flintMSLevel = 1;
						flintAttackType3 = 'spinsaw';
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 52) {
					if (replied == 1) {
						convBranch = 53;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 53) {
					if (replied == 1) {
						flintPsP += 7;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 54) {
					if (replied == 1) {
						convBranch = 55;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 55) {
					if (replied == 1) {
						flintPBLevel = 1;
						flintAttackType4 = 'firebreath';
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'helena2') {
				if (convBranch == 1) {
					if (replied == 1) {
						flintMBLevel = 1;
						flintPsP += 5;
						flintAttackType2 = 'steamengine';
						talking = 0;
						conversation();
						goingtoScene = 'workshop07B';
						gotoAndStop('switchWorkshop07');
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'flint1') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'anya1') {
				if (convBranch == 1) {
					if (replied == 1) {
						if (spokeToAnya == 0 || !gotJack) {
							convBranch = 2;
						}
						if (spokeToAnya > 0 && gotJack == true) {
							convBranch = 5;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						convBranch = 3;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 4;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						spokeToAnya = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						spokeToAnya = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						convBranch = 6;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						convBranch = 7;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						spokeToAnya = 2;
						convBranch = 8;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToAnya = 2;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						convBranch = 10;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						convBranch = 11;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						convBranch = 12;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						convBranch = 13;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						convBranch = 14;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						convBranch = 15;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						convBranch = 16;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						convBranch = 17;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						convBranch = 18;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						convBranch = 20;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 19;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						spokeToAnya = 3;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20) {
					if (replied == 1) {
						convBranch = 21;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 19;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 21) {
					if (replied == 1) {
						spokeToAnya = 3;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 22) {
					if (replied == 1) {
						convBranch = 23;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 23) {
					if (replied == 1) {
						convBranch = 11;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 24) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 98) {
					if (replied == 1) {
						convBranch = 99;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 99) {
					if (replied == 1) {
						spokeToAnya = 99;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						spokeToAnya = 99;
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'guy1') {
				if (convBranch == 1) {
					if (replied == 1) {
						if (spokeToGuy == 0 || !gotJack) {
							convBranch = 2;
						}
						if (spokeToGuy == 1 && gotJack == true) {
							convBranch = 3;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						spokeToGuy = 1;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						spokeToGuy = 1;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						convBranch = 3;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'jack1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2 && mainCharAptitude > 6) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						convBranch = 6;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						spokeToJack = 1;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						gotJack = true;
						jackDead = false;
						spokeToJack = 4;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						gotJack = true;
						jackDead = false;
						spokeToJack = 4;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'jack2') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						if (moneyWon >= winLimit || moneyWon <= -50) {
							convBranch = 14;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						bet = 5;
						if (money >= 5) {
							convBranch = 5;
							gambleDice();
						}
						if (money < 5) {
							convBranch = 6;
						}
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						if (moneyWon >= winLimit) {
							convBranch = 8;
						}
						if (moneyWon <= -50) {
							convBranch = 9;
						}
						if (money < bet) {
							convBranch = 6;
						}
						if (moneyWon > -50 && moneyWon < winLimit && money >= bet) {
							convBranch = 5;
							gambleDice();
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						if (money < 30) {
							replied = 0;
							convBranch = 15;
							conversation();
						}
						if (money >= 30) {
							replied = 0;
							startCardGame();
						}
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						startCardGame();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						startCardGame();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 7;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
		}
		function reply03() {
			if (convID == 'guy2') {
				if (convBranch == 1) {
					if (replied == 1) {
						convBranch = 2;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 3;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 4;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'anya2') {
				if (convBranch == 1) {
					if (replied == 1) {
						convBranch = 2;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 3;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'trainer1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						spokeToHellion = 1;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						spokeToHellion = 1;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						spokeToHellion = 1;
						convBranch = 24;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						if (mission1Done == true) {
							spokeToHellion = 2;
							convBranch = 8;
						}
						if (mission1Done == false) {
							convBranch = 7;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						replied = 0;
						convBranch = 13;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 25;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 10;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
						talking = 0;
						conversation();
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						convBranch = 11;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						trainingCost = 26 * mainCharPsyPower - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 15;
						trainingCost = 26 * mainCharPsyDefense - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 16;
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
				}
				if (convBranch == 14) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharPsyPower += 1;
							deriveStats2();
							HPdisplay();
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 15) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharPsyDefense += 1;
							deriveStats2();
							HPdisplay();
							levelUp();
							if (mainCharPsyDefense >= 15 && mainCharAttackType4 !== 'vengeance') {
								leveler = 'mainChar1';
								newSkill();
							}
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 16) {
					if (replied == 1) {
						replied = 0;
						trainingCost = 100 + 25 * mainCharMBLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 17;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						trainingCost = 100 + 25 * mainCharMSLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 18;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						trainingCost = 130 + 25 * mainCharPBLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 19;
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						trainingCost = 120 + 25 * mainCharFBLevel - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						convBranch = 20;
						conversation();
					}
				}
				if (convBranch == 17) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharMBLevel += 1;
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 18) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharMSLevel += 1;
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 19) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharPBLevel += 1;
							levelUp();
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 20) {
					if (replied == 1) {
						if (money < trainingCost) {
							convBranch = 21;
						}
						if (money >= trainingCost) {
							money -= trainingCost;
							mainCharFBLevel += 1;
							levelUp();
							if (mainCharFBLevel >= 5 && mainCharAttackType4 !== 'vengeance') {
								leveler = 'mainChar1';
								newSkill();
							}
							convBranch = 22;
						}
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 21 || convBranch == 22) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 23;
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 23) {
					if (replied == 1) {
						replied = 0;
						convBranch = 14;
						trainingCost = 25 * mainCharPsyPower - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 15;
						trainingCost = 25 * mainCharPsyDefense - 8 * mainCharAptitude;
						if (trainingCost < 35) {
							trainingCost = 35;
						}
						conversation();
					}
					if (replied == 3) {
						replied = 0;
						convBranch = 16;
						conversation();
					}
					if (replied == 4) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
				}
				if (convBranch == 24) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 25) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 26;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 26) {
					if (replied == 1) {
						replied = 0;
						convBranch = 9;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'bookseller1') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'druggist1') {
				if (convBranch == 1) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'negatus1') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						replied = 0;
						convBranch = 3;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						replied = 0;
						convBranch = 4;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						replied = 0;
						spokeToNegatus = 1;
						convBranch = 5;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						replied = 0;
						if (money < reviveCost) {
							convBranch = 8;
						}
						if (money >= reviveCost) {
							raiseDead();
							convBranch = 7;
						}
						if (totalDead == 0) {
							convBranch = 13;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						replied = 0;
						convBranch = 12;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						if (mainCharPersonality < 10) {
							convBranch = 9;
						}
						if (mainCharPersonality >= 10) {
							reviveCost -= mainCharPersonality * 2;
							if (reviveCost < 20) {
								reviveCost = 20;
							}
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						replied = 0;
						if (money < reviveCost) {
							convBranch = 11;
						}
						if (money >= reviveCost) {
							raiseDead();
							convBranch = 7;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 12) {
					if (replied == 1) {
						replied = 0;
						if (money < reviveCost) {
							convBranch = 8;
						}
						if (money >= reviveCost) {
							raiseDead();
							convBranch = 7;
						}
						if (totalDead == 0) {
							convBranch = 13;
						}
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 13) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'nightling1') {
				if (convBranch == 1) {
					if (replied == 1) {
						convBranch = 2;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 3;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 3;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						convBranch = 4;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 5;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						convBranch = 5;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						if (spokeToGrotius == 2 && mainCharAptitude > 8) {
							convBranch = 6;
							replied = 0;
							conversation();
						} else {}
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						convBranch = 4;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
						if (spokeToGrotius == 2 && mainCharAptitude > 8) {
							convBranch = 6;
							replied = 0;
							conversation();
						} else {}
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						convBranch = 11;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 7;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						convBranch = 8;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
						convBranch = 9;
						replied = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						convBranch = 9;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						convBranch = 10;
						replied = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						spokeToGrotius = 3;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						talking = 0;
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'guard1') {
				if (convBranch == 1) {
					if (replied == 1) {
						goingtoScene = 'mapScreen';
						gotoAndStop('closeAcad01');
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 3) {
						talking = 0;
						conversation();
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'guard2') {
				if (convBranch == 1) {
					if (replied == 1) {
						replied = 0;
						convBranch = 2;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 3) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
						replied = 0;
						convBranch = 4;
						if (gotGuardGold == false && mainCharAptitude > 13) {
							convBranch = 9;
						}
						if (gotGuardGold == true) {
							convBranch = 10;
						}
						conversation();
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 4) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 5) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 6) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 7) {
					if (replied == 1) {
						replied = 0;
						convBranch = 8;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 8) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 9) {
					if (replied == 1) {
						gotGuardGold = true;
						money += 350;
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 10) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 11) {
					if (replied == 1) {
						talking = 0;
						conversation();
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
		}
		talking = 1;
		convID = 'narrative1';
		convBranch == 1;
		conversation();
		replied = 1;
		conversation();
	}
	frame 83 {
		function deriveStats2() {
			mainCharHP = 2 * mainCharPsyDefense;
			if (mainCharHP < 10) {
				mainCharHP = 10;
			}
			if (mainCharHP > 99) {
				mainCharHP = 99;
			}
			mainCharPsP = mainCharPsyDefense + mainCharPsyPower;
			if (mainCharPsP > 99) {
				mainCharPsP = 99;
			}
		}
		function raiseDead() {
			money -= reviveCost;
			if (darklingDead == true && gotDarkling == true) {
				darklingDead = false;
			}
			if (shadowboxerDead == true && gotShadowboxer == true) {
				shadowboxerDead = false;
			}
			if (festusDead == true && gotFestus == true) {
				festusDead = false;
			}
			if (nivenDead == true && gotNiven == true) {
				nivenDead = false;
			}
			if (flintDead == true && gotFlint == true) {
				flintDead = false;
			}
			if (helenaDead == true && gotHelena == true) {
				helenaDead = false;
			}
			if (grotiusDead == true && gotGrotius == true) {
				grotiusDead = false;
			}
			if (anyaDead == true && gotAnya == true) {
				anyaDead = false;
			}
			if (guyDead == true && gotGuy == true) {
				guyDead = false;
			}
			if (dorgonDead == true && gotDorgon == true) {
				dorgonDead = false;
			}
			if (jackDead == true && gotJack == true) {
				jackDead = false;
			}
			if (lucaDead == true && gotLuca == true) {
				lucaDead = false;
			}
			if (magellanDead == true && gotMagellan == true) {
				magellanDead = false;
			}
			if (xerxesDead == true && gotXerxes == true) {
				xerxesDead = false;
			}
		}
		function levelUp() {
			--mainCharLeftToLevel;
			if (mainCharLeftToLevel == 0) {
				mainCharLeftToLevel = 3;
				++mainCharLevel;
				pointsleft = 1;
				upgraded == '';
				levelUpMsg = mainCharName + ' is level ' + mainCharLevel + '!';
				leveling = true;
				levelBoxClosed = false;
				refreshMenu();
				playFanfareMusic();
			}
		}
		function newSkill() {
			if (leveler == 'mainChar1') {
				mainCharAttackType4 = 'vengeance';
				newSkillMsg = 'After intensive training, you have learned a powerful new attack, Vengeance! Select it in combat to suck damage out of yourself and rain it down on all who stand before you.';
			}
			if (leveler == 'Darkling1') {
				darklingAttackType2 = 'shadowport1';
				darklingMSLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has learned a powerful new ability, Shadowport! Select it in combat to \'jump\' over an occupied space.';
			}
			if (leveler == 'Darkling2') {
				darklingAttackType3 = 'shadowport2';
				darklingMSLevel = 2;
				newSkillMsg = 'After intensive training, Darkling has improved his Shadowport ability! Select Shadowport 2 in combat to \'jump\' over two spaces at once.';
			}
			if (leveler == 'Darkling3') {
				darklingAttackType4 = 'feedback';
				darklingFBLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has has learned a powerful new attack, Feedback! Select it in combat to suck damage out of Darkling and blast an enemy with it.';
			}
			if (leveler == 'Darkling4') {
				darklingResists = 'Shadow';
				newSkillMsg = 'After intensive training, Darkling has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Darkling5') {
				darklingAttackType4 = 'shadowblast';
				darklingPBLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has has learned a powerful new attack, Shadow Blast! Select it in combat to torpedo an enemy with explosive dark energy.';
			}
			if (leveler == 'Darkling6') {
				darklingPBLevel = 2;
				newSkillMsg = 'After intensive training, Darkling has improved his Shadow Blast attack! Shadow Blast is now at level 2.';
			}
			if (leveler == 'Shadowboxer1') {
				shadowboxerAttackType2 = 'shadowblast';
				shadowboxerPBLevel = 1;
				newSkillMsg = 'After intensive training, Shadowboxer has learned a powerful new attack, Shadow Blast! Select it in combat to torpedo an enemy with explosive dark energy.';
			}
			if (leveler == 'Shadowboxer2') {
				shadowboxerPBLevel = 2;
				newSkillMsg = 'After intensive training, Shadowboxer has improved his Shadow Blast attack! Shadow Blast is now at level 2.';
			}
			if (leveler == 'Shadowboxer3') {
				shadowboxerAttackType3 = 'darkvortex';
				shadowboxerFBLevel = 1;
				newSkillMsg = 'After intensive training, Shadowboxer has learned a powerful new attack, Dark Vortex! Select it in combat to unleash a cyclone of negative energy over a wide area.';
			}
			if (leveler == 'Shadowboxer4') {
				shadowboxerResists = 'Shadow';
				newSkillMsg = 'After intensive training, Shadowboxer has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Festus1') {
				festusAttackType3 = 'megashield';
				festusFBLevel = 1;
				newSkillMsg = 'After intensive training, Festus has learned a powerful new defense skill, Mega Shield! Select it in combat to vastly improve an ally\'s defense.';
			}
			if (leveler == 'Festus2') {
				festusMSLevel = 6;
				newSkillMsg = 'After intensive training, Festus has improved his Shield abilities! Mind Shield and Mega Shield are now at level 6.';
			}
			if (leveler == 'Festus3') {
				festusAttackType4 = 'bigshield';
				newSkillMsg = 'After intensive training, Festus has learned a powerful new defense skill, Big Shield! Select it in combat to boost the defenses of everyone around him.';
			}
			if (leveler == 'Festus4') {
				festusResists = 'Shadow';
				newSkillMsg = 'After intensive training, Festus has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Niven1') {
				nivenAttackType3 = 'trickshot';
				nivenPBLevel = 1;
				newSkillMsg = 'After intensive training, Niven has learned a powerful new attack, Trick Shot! Select it in combat to \'hook\' a knife 2 squares ahead and 1 to his right.';
			}
			if (leveler == 'Helena1') {
				helenaAttackType2 = 'whirlwind';
				helenaMBLevel = 1;
				if (helenaPsyPower == 5 || helenaPsyPower == 6) {
					helenaMBLevel = 2;
				}
				if (helenaPsyPower >= 7) {
					helenaMBLevel = 3;
				}
				newSkillMsg = 'After intensive training, Helena has learned a powerful new attack, Whirlwind! Select it in combat to spin and strike every surrounding enemy.';
			}
			if (leveler == 'Helena2') {
				helenaMBLevel = 2;
				newSkillMsg = 'After intensive training, Helena has improved her Whirlwind attack! Whirlwind is now at level 2.';
			}
			if (leveler == 'Helena3') {
				helenaMBLevel = 3;
				newSkillMsg = 'After intensive training, Helena has improved her Whirlwind attack! Whirlwind is now at level 3.';
			}
			if (leveler == 'Helena4') {
				helenaMBLevel = 4;
				newSkillMsg = 'After intensive training, Helena has improved her Whirlwind attack! Whirlwind is now at level 4.';
			}
			if (leveler == 'Grotius1') {
				grotiusPBLevel = 4;
				newSkillMsg = 'After intensive training, Grotius has improved his Frost Blast attack! Frost Blast is now at level 4.';
			}
			if (leveler == 'Grotius2') {
				grotiusAttackType3 = 'frostblast2';
				newSkillMsg = 'After intensive training, Grotius has improved his Frost Blast attack! Select Frost Blast 2 in combat to ice over enemies up to three squares away.';
			}
			if (leveler == 'Grotius3') {
				grotiusAttackType4 = 'frostshield';
				grotiusMSLevel = 1;
				newSkillMsg = 'After intensive training, Grotius has learned a powerful new defense skill, Frost Shield! Select it in combat to numb an ally to the effects of cold-based attacks.';
			}
			if (leveler == 'Grotius4') {
				grotiusHP += 4;
				grotiusFBLevel = 1;
				newSkillMsg = 'After intensive training, Grotius has developed the passive ability Frost Armor! He is now more difficult to kill in combat.';
			}
			if (leveler == 'Grotius5') {
				grotiusHP += 4;
				grotiusFBLevel = 2;
				newSkillMsg = 'After intensive training, Grotius has improved his Frost Armor ability! Frost Armor is now at level 2.';
			}
			if (leveler == 'Anya1') {
				anyaAttackType3 = 'megashield';
				anyaFBLevel = 1;
				newSkillMsg = 'After intensive training, Anya has learned a powerful new defense skill, Mega Shield! Select it in combat to vastly improve an ally\'s defense.';
			}
			if (leveler == 'Anya2') {
				anyaMSLevel = 6;
				newSkillMsg = 'After intensive training, Anya has improved her Shield abilities! Mind Shield and Mega Shield are now at level 6.';
			}
			if (leveler == 'Anya3') {
				anyaAttackType4 = 'bigshield';
				newSkillMsg = 'After intensive training, Anya has learned a powerful new defense skill, Big Shield! Select it in combat to boost the defenses of everyone around her.';
			}
			if (leveler == 'Anya4') {
				anyaResists = 'Light';
				newSkillMsg = 'After intensive training, Anya has developed Light Resistance, a group of techniques that make her particularly resistant to Light attacks.';
			}
			if (leveler == 'Guy1') {
				guyAttackType3 = 'pyrohail';
				guyFBLevel = 1;
				newSkillMsg = 'After intensive training, Guy has learned a powerful new attack, Pyro Hail! Select it in combat to rain down fireballs over a small, t-shaped area.';
			}
			if (leveler == 'Guy4') {
				guyResists = 'Heat';
				newSkillMsg = 'After intensive training, Guy has developed Heat Resistance, a group of techniques that make him particularly resistant to Fire attacks.';
			}
			if (leveler == 'Jack1') {
				jackAttackType2 = 'snakeeyes';
				jackMBLevel = 1;
				newSkillMsg = 'After intensive training, Jack has learned a powerful new attack, Snake Eyes! Select it in combat to take a chance on dealing massive damage.';
			}
			if (leveler == 'Jack2') {
				jackAttackType3 = 'mindshield';
				jackMSLevel = 1;
				newSkillMsg = 'After intensive training, Jack has learned a new defense skill, Mind Shield! Select it in combat to improve an ally\'s defense.';
			}
			if (leveler == 'Jack3') {
				jackAttackType3 = 'farshield';
				jackMSLevel = 2;
				newSkillMsg = 'After intensive training, Jack has improved Mind Shield! Mind Shield is now level 2, and its range has increased to 2.';
			}
			attachMovie('newSkillBox', 'newSkillBox', 610);
			newSkillBox._x = 79;
			newSkillBox._y = 57;
			ConvBox.hideButtons();
			playFanfareMusic();
		}
		function countDead() {
			totalDead = 0;
			if (darklingDead == true && gotDarkling == true) {
				++totalDead;
			}
			if (shadowboxerDead == true && gotShadowboxer == true) {
				++totalDead;
			}
			if (festusDead == true && gotFestus == true) {
				++totalDead;
			}
			if (nivenDead == true && gotNiven == true) {
				++totalDead;
			}
			if (flintDead == true && gotFlint == true) {
				++totalDead;
			}
			if (helenaDead == true && gotHelena == true) {
				++totalDead;
			}
			if (grotiusDead == true && gotGrotius == true) {
				++totalDead;
			}
			if (anyaDead == true && gotAnya == true) {
				++totalDead;
			}
			if (guyDead == true && gotGuy == true) {
				++totalDead;
			}
			if (dorgonDead == true && gotDorgon == true) {
				++totalDead;
			}
			if (jackDead == true && gotJack == true) {
				++totalDead;
			}
			if (lucaDead == true && gotLuca == true) {
				++totalDead;
			}
			if (magellanDead == true && gotMagellan == true) {
				++totalDead;
			}
			if (xerxesDead == true && gotXerxes == true) {
				++totalDead;
			}
			if (gameDifficulty == 'easy') {
				reviveCost = totalDead * 20;
			}
			if (gameDifficulty == 'normal') {
				reviveCost = totalDead * 30;
			}
			if (gameDifficulty == 'hard') {
				reviveCost = totalDead * 50;
			}
			if (gameDifficulty == 'brutal') {
				reviveCost = totalDead * 75;
			}
			if (gameDifficulty == 'nightmare') {
				reviveCost = totalDead * 100;
			}
		}
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		levelBoxClosed = true;
		newSkillBoxClosed = true;
		refreshMenu();
		Background.Jack._visible = false;
		Background.Thallion._visible = false;
		Background.Negatus._visible = false;
		Background.Penumbra._visible = false;
		Background.Flavin._visible = false;
		Background.Lala._visible = false;
		if (lastscene == 'townfight03') {
			Background.Lala._visible = true;
		}
		lastscene = 'town01';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		newSkillMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		leveler = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		if (gotNiven == true) {
			Background.Niven.swapDepths(4);
			Background.Niven.removeMovieClip();
			Background.Collision.nivenCollide.swapDepths(24);
			Background.Collision.nivenCollide.removeMovieClip();
		}
		if (gotJack == true) {
			Background.Jack.swapDepths(8);
			Background.Jack.removeMovieClip();
			Background.Collision.jackCollide.swapDepths(28);
			Background.Collision.jackCollide.removeMovieClip();
		}
		mainChar.onEnterFrame = function () {
			if (Background.Bldg1A.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof1A._visible = false;
				Background.Penumbra._visible = true;
			}
			if (Background.Bldg1A.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof1A._visible = true;
				Background.Penumbra._visible = false;
			}
			if (Background.Bldg1B.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof1B._visible = false;
				Background.Lala._visible = true;
			}
			if (Background.Bldg1B.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof1B._visible = true;
				Background.Lala._visible = false;
			}
			if (spokeToLala == 1) {
				if (Background.Bldg1B.stairTrigger.hitTest(mainChar._x, mainChar._y, true)) {
					goingtoScene = 'startTownFight03';
					gotoAndStop('switchTown01');
				}
			}
			if (Background.Bldg1C.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof1C._visible = false;
				Background.Negatus._visible = true;
			}
			if (Background.Bldg1C.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof1C._visible = true;
				Background.Negatus._visible = false;
			}
			if (Background.Bldg2A.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2A._visible = false;
			}
			if (Background.Bldg2A.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2A._visible = true;
			}
			if (Background.Bldg2B.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2B._visible = false;
				if (!gotJack) {
					Background.Jack._visible = true;
				}
				Background.Thallion._visible = true;
			}
			if (Background.Bldg2B.entryTriggerIN.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2BB._visible = false;
			}
			if (Background.Bldg2B.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2B._visible = true;
				Background.Jack._visible = false;
				Background.Thallion._visible = false;
				if (gotJack == true) {
					Background.Jack.swapDepths(8);
					Background.Jack.removeMovieClip();
					Background.Collision.jackCollide.swapDepths(28);
					Background.Collision.jackCollide.removeMovieClip();
				}
			}
			if (Background.Bldg2B.exitTriggerIN.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2BB._visible = true;
			}
			if (Background.Bldg2C.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2C._visible = false;
				Background.Flavin._visible = true;
			}
			if (Background.Bldg2C.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Overhead.Roof2C._visible = true;
				Background.Flavin._visible = false;
			}
		};
		Background.Book01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Book02.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 2;
				conversation();
			}
		};
		Background.Barrel01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 5;
				conversation();
			}
		};
		Background.Barrel02.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 5;
				conversation();
			}
		};
		Background.Book04.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 7;
				conversation();
			}
		};
		Background.Chest01.onPress = function () {
			if (talking == 0 && _ymouse > 50 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Hellion._x + Background._x - mainChar._x;
				delta_y = Background.Hellion._y + Background._y - mainChar._y;
				Background.Hellion._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'hellion1';
				convBranch = 98;
				if (beatGame == 1) {
					convBranch = 96;
				}
				if (beatGame == 2) {
					convBranch = 95;
				}
				conversation();
			}
		};
		Background.Sign01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 8;
				conversation();
			}
		};
		Background.Tastidian.onPress = function () {
			if (talking == 0 && _ymouse > 60 && _ymouse < 340 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Tastidian._x + Background._x - mainChar._x;
				delta_y = Background.Tastidian._y + Background._y - mainChar._y;
				Background.Tastidian._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'tastidian1';
				if (spokeToTastidian == 0) {
					convBranch = 0;
				}
				if (spokeToTastidian == 20) {
					convBranch = 1;
				}
				if (spokeToTastidian == 1) {
					convBranch = 9;
				}
				if (spokeToTastidian == 2) {
					convBranch = 13;
				}
				if (spokeToTastidian == 3) {
					convBranch = 19;
				}
				if (spokeToTastidian == 4) {
					convBranch = 23;
				}
				if (spokeToTastidian >= 5 && spokeToTastidian <= 7) {
					convBranch = 29;
				}
				if (spokeToTastidian == 7) {
					convBranch = 35;
				}
				if (spokeToTastidian == 8) {
					convBranch = 40;
				}
				if (spokeToTastidian == 9) {
					convBranch = 44;
				}
				if (spokeToTastidian == 10) {
					convBranch = 49;
				}
				if (spokeToTastidian == 11) {
					convBranch = 52;
				}
				if (spokeToTastidian == 12) {
					convBranch = 58;
				}
				if (spokeToTastidian == 13) {
					convBranch = 66;
				}
				if (spokeToFlavin == 1) {
					convBranch = 95;
				}
				conversation();
			}
		};
		Background.Negatus.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Negatus._x + Background._x - mainChar._x;
				delta_y = Background.Negatus._y + Background._y - mainChar._y;
				Background.Negatus._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'negatus1';
				if (spokeToNegatus == 0) {
					convBranch = 1;
				}
				if (spokeToNegatus == 1) {
					convBranch = 6;
				}
				conversation();
			}
		};
		Background.Penumbra.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Penumbra._x + Background._x - mainChar._x;
				delta_y = Background.Penumbra._y + Background._y - mainChar._y;
				Background.Penumbra._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'penumbra1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Lala.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Lala._x + Background._x - mainChar._x;
				delta_y = Background.Lala._y + Background._y - mainChar._y;
				Background.Lala._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'lala1';
				if (spokeToLala == 0) {
					convBranch = 1;
				}
				if (spokeToLala == 1) {
					convBranch = 8;
				}
				if (spokeToLala == 2) {
					convBranch = 11;
				}
				if (spokeToLala == 3) {
					convBranch = 17;
				}
				conversation();
			}
		};
		Background.Vagrant.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Vagrant._x + Background._x - mainChar._x;
				delta_y = Background.Vagrant._y + Background._y - mainChar._y;
				Background.Vagrant._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'vagrant1';
				if (spokeToVagrant == 0) {
					convBranch = 1;
				}
				if (spokeToVagrant == 1) {
					convBranch = 13;
				}
				if (spokeToVagrant == 2) {
					convBranch = 14;
				}
				conversation();
			}
		};
		Background.Flavin.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Flavin._x + Background._x - mainChar._x;
				delta_y = Background.Flavin._y + Background._y - mainChar._y;
				Background.Flavin._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'flavin1';
				if (spokeToFlavin == 0) {
					convBranch = 1;
				}
				if (spokeToFlavin == 1) {
					convBranch = 6;
				}
				if (spokeToFlavin == 2) {
					convBranch = 7;
				}
				if (spokeToFlavin == 0 && gotSaw == true) {
					convBranch = 8;
				}
				if (spokeToFlavin == 3) {
					convBranch = 11;
				}
				conversation();
			}
		};
		Background.Hellion.onPress = function () {
			if (talking == 0 && _ymouse > 50 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Hellion._x + Background._x - mainChar._x;
				delta_y = Background.Hellion._y + Background._y - mainChar._y;
				Background.Hellion._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'hellion1';
				if (spokeToHellion == 0) {
					convBranch = 1;
				}
				if (spokeToHellion == 1) {
					convBranch = 6;
				}
				if (spokeToHellion == 2) {
					convBranch = 9;
				}
				conversation();
			}
		};
		Background.Snarl.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Snarl._x + Background._x - mainChar._x;
				delta_y = Background.Snarl._y + Background._y - mainChar._y;
				Background.Snarl._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'snarl1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Niven.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Niven._x + Background._x - mainChar._x;
				delta_y = Background.Niven._y + Background._y - mainChar._y;
				Background.Niven._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'niven1';
				if (spokeToNiven == 0) {
					convBranch = 1;
				}
				if (spokeToNiven == 1) {
					convBranch = 21;
				}
				if (spokeToNiven == 2) {
					convBranch = 22;
				}
				if (spokeToNiven == 3) {
					convBranch = 31;
				}
				timesStuck = 0;
				conversation();
			}
		};
		Background.Jack.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Jack._x + Background._x - mainChar._x;
				delta_y = Background.Jack._y + Background._y - mainChar._y;
				Background.Jack._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'jack1';
				if (spokeToJack == 0) {
					convBranch = 1;
				}
				if (spokeToJack > 0 && spokeToJack < 3) {
					convBranch = 10;
				}
				if (spokeToJack == 3) {
					convBranch = 11;
				}
				if (spokeToJack == 4) {
					convBranch = 14;
				}
				conversation();
			}
		};
		Background.Thallion.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Thallion._x + Background._x - mainChar._x;
				delta_y = Background.Thallion._y + Background._y - mainChar._y;
				Background.Thallion._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'thallion1';
				convBranch = 1;
				if (spokeToJack >= 3) {
					convBranch = 11;
				}
				conversation();
			}
		};
	}
	movieClip 4731	{
	}
	movieClip 4733	{
	}
	movieClip 4735	{
	}
	movieClip 4737	{
	}
	movieClip 4739	{
	}
	movieClip 4740	{
	}
	movieClip 4743	{
	}
	movieClip 4747	{
	}
	movieClip 4751	{
	}
	movieClip 4753	{
	}
	movieClip 4754	{
	}
	movieClip 4757	{
	}
	movieClip 4762	{
	}
	movieClip 4765	{
	}
	movieClip 4768	{
	}
	movieClip 4769	{
	}
	movieClip 4772	{
	}
	movieClip 4774	{
	}
	movieClip 4778	{
	}
	movieClip 4792	{
	}
	movieClip 4797	{
		frame 72 {
			_root.ConvBox._visible = true;
			_root.conversation();
			_root.mainChar.gotoAndStop(8);
			_root.timesStuck += 1;
			_root.mainCharDamage += random(5) + 2;
			_root.HPdisplay();
			_root.Background.Niven.gotoAndStop(1);
		}
	}
	movieClip 4815	{
	}
	movieClip 4816	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 4821	{
	}
	movieClip 4837	{
	}
	movieClip 4838	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 4839	{
		frame 1 {
			stop();
		}
		instance of movieClip 4534	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 4840	{
	}
	movieClip 4841	{
	}
	movieClip 4842	{
	}
	movieClip 4843	{
		frame 1 {
			stop();
		}
	}
	movieClip 4847	{
	}
	movieClip 4862	{
	}
	movieClip 4863	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 4884	{
	}
	movieClip 4885	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
		frame 8 {
			stop();
		}
	}
	movieClip 4903	{
	}
	movieClip 4947	{
		frame 60 {
			_root.mainChar.gotoAndStop(7);
			_root.mainCharDamage = 0;
			_root.HPdisplay();
		}
		frame 144 {
			_root.ConvBox._visible = true;
			_root.conversation();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4957	{
		frame 90 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 4974	{
		frame 72 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 4975	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
		frame 8 {
			stop();
		}
	}
	movieClip 4994	{
	}
	movieClip 4995	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 4998	{
	}
	movieClip 4999	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.goToHQ.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'town02';
				_root.gotoAndStop('switchTown01');
			}
			if (!_root.talking == 1 && _root.Background.goToPalace.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'town03';
				_root.gotoAndStop('switchTown01');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5002	{
	}
	movieClip 5012	{
	}
	movieClip 5014	{
	}
	movieClip 5015	{
	}
	movieClip 5018	{
	}
	movieClip 5021	{
	}
	movieClip 5022	{
	}
	movieClip 5024	{
		frame 1 {
			stop();
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	movieClip 5028	{
		frame 1 {
			_root.talking = 1;
			_root.killShadowMaps();
		}
		frame 9 {
			_root.stop();
		}
		frame 25 {
			stop();
			_root.talking = 0;
			_root.play();
		}
	}
	frame 92 {
		stop();
	}
	frame 93 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 94 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		fadeOut.play();
	}
	frame 95 {
		function gambleDice() {
			mainCharRoll = random(10) + 3;
			jackRoll = random(10) + 3;
			if (jackRoll > mainCharRoll) {
				winState = 'I get to take your money';
				money -= bet;
				moneyWon -= bet;
			}
			if (mainCharRoll > jackRoll) {
				winState = 'you win this round';
				money += bet;
				moneyWon += bet;
			}
			if (mainCharRoll == jackRoll) {
				winState = 'weâ€™ve got a tie';
			}
			bet += 5;
		}
		function startCardGame() {
			convBoxClosed = true;
			cardGUIClosed = false;
			refreshMenu();
			bet = 30;
			if (mission4Done == true) {
				bet = 50;
			}
			Ccard1num = 0;
			Ccard2num = 0;
			Ccard3num = 0;
			Ccard4num = 0;
			Ccard5num = 0;
			Pcard1num = 0;
			Pcard2num = 0;
			Pcard3num = 0;
			Pcard4num = 0;
			Pcard5num = 0;
			wonCards = 0;
			drawn = false;
			messageBar = '';
			messageBar2 = '';
			mcHP = 20;
			mcPsP = 10;
			mcAtk = 0;
			jacksHP = 20;
			jacksPsP = 10;
			jacksAtk = 0;
			dealHands();
		}
		function winConditions() {
			if (mcHP == 0) {
				messageBar2 = 'You lose!';
				okayButtonClosed = false;
				refreshMenu();
				wonCards = 1;
			}
			if (jacksHP == 0) {
				messageBar2 = 'You win!';
				okayButtonClosed = false;
				refreshMenu();
				wonCards = 2;
			}
			if (wonCards > 0) {
				cardGUI.Ccard1.gotoAndStop(2);
				cardGUI.Ccard1.card.gotoAndPlay(1);
				cardGUI.Ccard2.gotoAndStop(2);
				cardGUI.Ccard2.card.gotoAndPlay(1);
				cardGUI.Ccard3.gotoAndStop(2);
				cardGUI.Ccard3.card.gotoAndPlay(1);
				cardGUI.Ccard4.gotoAndStop(2);
				cardGUI.Ccard4.card.gotoAndPlay(1);
				cardGUI.Ccard5.gotoAndStop(2);
				cardGUI.Ccard5.card.gotoAndPlay(1);
				cardGUI.Pcard1.gotoAndStop(2);
				cardGUI.Pcard1.card.gotoAndPlay(1);
				cardGUI.Pcard2.gotoAndStop(2);
				cardGUI.Pcard2.card.gotoAndPlay(1);
				cardGUI.Pcard3.gotoAndStop(2);
				cardGUI.Pcard3.card.gotoAndPlay(1);
				cardGUI.Pcard4.gotoAndStop(2);
				cardGUI.Pcard4.card.gotoAndPlay(1);
				cardGUI.Pcard5.gotoAndStop(2);
				cardGUI.Pcard5.card.gotoAndPlay(1);
			}
		}
		function dealHands() {
			drawPcards();
			drawCcards();
		}
		function drawPcards() {
			Pcard1num = random(12) + 1;
			Pcard2num = random(12) + 1;
			Pcard3num = random(12) + 1;
			Pcard4num = random(12) + 1;
			Pcard5num = random(12) + 1;
			if (Pcard1num == Pcard2num || Pcard1num == Pcard3num || Pcard1num == Pcard4num || Pcard1num == Pcard5num) {
				redrawPcard1();
			}
			if (Pcard2num == Pcard1num || Pcard2num == Pcard3num || Pcard2num == Pcard4num || Pcard2num == Pcard5num) {
				redrawPcard2();
			}
			if (Pcard3num == Pcard1num || Pcard3num == Pcard2num || Pcard3num == Pcard4num || Pcard3num == Pcard5num) {
				redrawPcard3();
			}
			if (Pcard4num == Pcard1num || Pcard4num == Pcard2num || Pcard4num == Pcard3num || Pcard4num == Pcard5num) {
				redrawPcard4();
			}
			if (Pcard5num == Pcard1num || Pcard5num == Pcard2num || Pcard5num == Pcard3num || Pcard5num == Pcard4num) {
				redrawPcard5();
			}
			displayCards();
		}
		function redrawPcard1() {
			Pcard1num = random(12) + 1;
			if (Pcard1num == Pcard2num || Pcard1num == Pcard3num || Pcard1num == Pcard4num || Pcard1num == Pcard5num) {
				redrawPcard1();
			}
			displayCard1();
		}
		function redrawPcard2() {
			Pcard2num = random(12) + 1;
			if (Pcard2num == Pcard1num || Pcard2num == Pcard3num || Pcard2num == Pcard4num || Pcard2num == Pcard5num) {
				redrawPcard2();
			}
			displayCard2();
		}
		function redrawPcard3() {
			Pcard3num = random(12) + 1;
			if (Pcard3num == Pcard1num || Pcard3num == Pcard2num || Pcard3num == Pcard4num || Pcard3num == Pcard5num) {
				redrawPcard3();
			}
			displayCard3();
		}
		function redrawPcard4() {
			Pcard4num = random(12) + 1;
			if (Pcard4num == Pcard1num || Pcard4num == Pcard2num || Pcard4num == Pcard3num || Pcard4num == Pcard5num) {
				redrawPcard4();
			}
			displayCard4();
		}
		function redrawPcard5() {
			Pcard5num = random(12) + 1;
			if (Pcard5num == Pcard1num || Pcard5num == Pcard2num || Pcard5num == Pcard3num || Pcard5num == Pcard4num) {
				redrawPcard5();
			}
			displayCard5();
		}
		function drawCcards() {
			Ccard1num = random(12) + 1;
			Ccard2num = random(12) + 1;
			Ccard3num = random(12) + 1;
			Ccard4num = random(12) + 1;
			Ccard5num = random(12) + 1;
			if (Ccard1num == Ccard2num || Ccard1num == Ccard3num || Ccard1num == Ccard4num || Ccard1num == Ccard5num) {
				redrawCcard1();
			}
			if (Ccard2num == Ccard1num || Ccard2num == Ccard3num || Ccard2num == Ccard4num || Ccard2num == Ccard5num) {
				redrawCcard2();
			}
			if (Ccard3num == Ccard1num || Ccard3num == Ccard2num || Ccard3num == Ccard4num || Ccard3num == Ccard5num) {
				redrawCcard3();
			}
			if (Ccard4num == Ccard1num || Ccard4num == Ccard2num || Ccard4num == Ccard3num || Ccard4num == Ccard5num) {
				redrawCcard4();
			}
			if (Ccard5num == Ccard1num || Ccard5num == Ccard2num || Ccard5num == Ccard3num || Ccard5num == Ccard4num) {
				redrawCcard5();
			}
			displayCards();
		}
		function redrawCcard1() {
			Ccard1num = random(12) + 1;
			if (Ccard1num == Ccard2num || Ccard1num == Ccard3num || Ccard1num == Ccard4num || Ccard1num == Ccard5num) {
				redrawCcard1();
			}
		}
		function redrawCcard2() {
			Ccard2num = random(12) + 1;
			if (Ccard2num == Ccard1num || Ccard2num == Ccard3num || Ccard2num == Ccard4num || Ccard2num == Ccard5num) {
				redrawCcard2();
			}
		}
		function redrawCcard3() {
			Ccard3num = random(12) + 1;
			if (Ccard3num == Ccard1num || Ccard3num == Ccard2num || Ccard3num == Ccard4num || Ccard3num == Ccard5num) {
				redrawCcard3();
			}
		}
		function redrawCcard4() {
			Ccard4num = random(12) + 1;
			if (Ccard4num == Ccard1num || Ccard4num == Ccard2num || Ccard4num == Ccard3num || Ccard4num == Ccard5num) {
				redrawCcard4();
			}
		}
		function redrawCcard5() {
			Ccard5num = random(12) + 1;
			if (Ccard5num == Ccard1num || Ccard5num == Ccard2num || Ccard5num == Ccard3num || Ccard5num == Ccard4num) {
				redrawCcard5();
			}
		}
		function displayCards() {
			cardGUI.Ccard1.gotoAndStop(2);
			cardGUI.Ccard1.card.gotoAndPlay(1);
			cardGUI.Ccard2.gotoAndStop(2);
			cardGUI.Ccard2.card.gotoAndPlay(1);
			cardGUI.Ccard3.gotoAndStop(2);
			cardGUI.Ccard3.card.gotoAndPlay(1);
			cardGUI.Ccard4.gotoAndStop(2);
			cardGUI.Ccard4.card.gotoAndPlay(1);
			cardGUI.Ccard5.gotoAndStop(2);
			cardGUI.Ccard5.card.gotoAndPlay(1);
			cardGUI.Pcard1.gotoAndStop(3);
			cardGUI.Pcard2.gotoAndStop(3);
			cardGUI.Pcard3.gotoAndStop(3);
			cardGUI.Pcard4.gotoAndStop(3);
			cardGUI.Pcard5.gotoAndStop(3);
		}
		function forceDisplayCards() {
			if (Pcard1num == 1) {
				cardGUI.Pcard1.gotoAndStop(4);
			}
			if (Pcard2num == 1) {
				cardGUI.Pcard2.gotoAndStop(4);
			}
			if (Pcard3num == 1) {
				cardGUI.Pcard3.gotoAndStop(4);
			}
			if (Pcard4num == 1) {
				cardGUI.Pcard4.gotoAndStop(4);
			}
			if (Pcard5num == 1) {
				cardGUI.Pcard5.gotoAndStop(4);
			}
			if (Pcard1num == 2) {
				cardGUI.Pcard1.gotoAndStop(5);
			}
			if (Pcard2num == 2) {
				cardGUI.Pcard2.gotoAndStop(5);
			}
			if (Pcard3num == 2) {
				cardGUI.Pcard3.gotoAndStop(5);
			}
			if (Pcard4num == 2) {
				cardGUI.Pcard4.gotoAndStop(5);
			}
			if (Pcard5num == 2) {
				cardGUI.Pcard5.gotoAndStop(5);
			}
			if (Pcard1num == 3) {
				cardGUI.Pcard1.gotoAndStop(6);
			}
			if (Pcard2num == 3) {
				cardGUI.Pcard2.gotoAndStop(6);
			}
			if (Pcard3num == 3) {
				cardGUI.Pcard3.gotoAndStop(6);
			}
			if (Pcard4num == 3) {
				cardGUI.Pcard4.gotoAndStop(6);
			}
			if (Pcard5num == 3) {
				cardGUI.Pcard5.gotoAndStop(6);
			}
			if (Pcard1num == 4) {
				cardGUI.Pcard1.gotoAndStop(7);
			}
			if (Pcard2num == 4) {
				cardGUI.Pcard2.gotoAndStop(7);
			}
			if (Pcard3num == 4) {
				cardGUI.Pcard3.gotoAndStop(7);
			}
			if (Pcard4num == 4) {
				cardGUI.Pcard4.gotoAndStop(7);
			}
			if (Pcard5num == 4) {
				cardGUI.Pcard5.gotoAndStop(7);
			}
			if (Pcard1num == 5) {
				cardGUI.Pcard1.gotoAndStop(8);
			}
			if (Pcard2num == 5) {
				cardGUI.Pcard2.gotoAndStop(8);
			}
			if (Pcard3num == 5) {
				cardGUI.Pcard3.gotoAndStop(8);
			}
			if (Pcard4num == 5) {
				cardGUI.Pcard4.gotoAndStop(8);
			}
			if (Pcard5num == 5) {
				cardGUI.Pcard5.gotoAndStop(8);
			}
			if (Pcard1num == 6) {
				cardGUI.Pcard1.gotoAndStop(9);
			}
			if (Pcard2num == 6) {
				cardGUI.Pcard2.gotoAndStop(9);
			}
			if (Pcard3num == 6) {
				cardGUI.Pcard3.gotoAndStop(9);
			}
			if (Pcard4num == 6) {
				cardGUI.Pcard4.gotoAndStop(9);
			}
			if (Pcard5num == 6) {
				cardGUI.Pcard5.gotoAndStop(9);
			}
			if (Pcard1num == 7) {
				cardGUI.Pcard1.gotoAndStop(10);
			}
			if (Pcard2num == 7) {
				cardGUI.Pcard2.gotoAndStop(10);
			}
			if (Pcard3num == 7) {
				cardGUI.Pcard3.gotoAndStop(10);
			}
			if (Pcard4num == 7) {
				cardGUI.Pcard4.gotoAndStop(10);
			}
			if (Pcard5num == 7) {
				cardGUI.Pcard5.gotoAndStop(10);
			}
			if (Pcard1num == 8) {
				cardGUI.Pcard1.gotoAndStop(11);
			}
			if (Pcard2num == 8) {
				cardGUI.Pcard2.gotoAndStop(11);
			}
			if (Pcard3num == 8) {
				cardGUI.Pcard3.gotoAndStop(11);
			}
			if (Pcard4num == 8) {
				cardGUI.Pcard4.gotoAndStop(11);
			}
			if (Pcard5num == 8) {
				cardGUI.Pcard5.gotoAndStop(11);
			}
			if (Pcard1num == 9) {
				cardGUI.Pcard1.gotoAndStop(12);
			}
			if (Pcard2num == 9) {
				cardGUI.Pcard2.gotoAndStop(12);
			}
			if (Pcard3num == 9) {
				cardGUI.Pcard3.gotoAndStop(12);
			}
			if (Pcard4num == 9) {
				cardGUI.Pcard4.gotoAndStop(12);
			}
			if (Pcard5num == 9) {
				cardGUI.Pcard5.gotoAndStop(12);
			}
			if (Pcard1num == 10) {
				cardGUI.Pcard1.gotoAndStop(13);
			}
			if (Pcard2num == 10) {
				cardGUI.Pcard2.gotoAndStop(13);
			}
			if (Pcard3num == 10) {
				cardGUI.Pcard3.gotoAndStop(13);
			}
			if (Pcard4num == 10) {
				cardGUI.Pcard4.gotoAndStop(13);
			}
			if (Pcard5num == 10) {
				cardGUI.Pcard5.gotoAndStop(13);
			}
			if (Pcard1num == 11) {
				cardGUI.Pcard1.gotoAndStop(14);
			}
			if (Pcard2num == 11) {
				cardGUI.Pcard2.gotoAndStop(14);
			}
			if (Pcard3num == 11) {
				cardGUI.Pcard3.gotoAndStop(14);
			}
			if (Pcard4num == 11) {
				cardGUI.Pcard4.gotoAndStop(14);
			}
			if (Pcard5num == 11) {
				cardGUI.Pcard5.gotoAndStop(14);
			}
			if (Pcard1num == 12) {
				cardGUI.Pcard1.gotoAndStop(15);
			}
			if (Pcard2num == 12) {
				cardGUI.Pcard2.gotoAndStop(15);
			}
			if (Pcard3num == 12) {
				cardGUI.Pcard3.gotoAndStop(15);
			}
			if (Pcard4num == 12) {
				cardGUI.Pcard4.gotoAndStop(15);
			}
			if (Pcard5num == 12) {
				cardGUI.Pcard5.gotoAndStop(15);
			}
		}
		function displayCard1() {
			cardGUI.Ccard1.gotoAndStop(2);
			cardGUI.Ccard1.card.gotoAndPlay(1);
			cardGUI.Pcard1.gotoAndStop(3);
		}
		function displayCard2() {
			cardGUI.Ccard2.gotoAndStop(2);
			cardGUI.Ccard2.card.gotoAndPlay(1);
			cardGUI.Pcard2.gotoAndStop(3);
		}
		function displayCard3() {
			cardGUI.Ccard3.gotoAndStop(2);
			cardGUI.Ccard3.card.gotoAndPlay(1);
			cardGUI.Pcard3.gotoAndStop(3);
		}
		function displayCard4() {
			cardGUI.Ccard4.gotoAndStop(2);
			cardGUI.Ccard4.card.gotoAndPlay(1);
			cardGUI.Pcard4.gotoAndStop(3);
		}
		function displayCard5() {
			cardGUI.Ccard5.gotoAndStop(2);
			cardGUI.Ccard5.card.gotoAndPlay(1);
			cardGUI.Pcard5.gotoAndStop(3);
		}
		function challengeCcard1() {
			checkSpecial1();
			mcRoll = Pcard1num + mcAtk;
			jackRoll = Ccard1num + jacksAtk;
			if (mcRoll > jackRoll) {
				messageBar = mcRoll + ' beats ' + jackRoll + '--Jack takes damage!';
				jacksHP -= mcRoll - jackRoll;
			}
			if (mcRoll < jackRoll) {
				messageBar = jackRoll + ' beats ' + mcRoll + '--you take damage!';
				mcHP -= jackRoll - mcRoll;
			}
			if (mcRoll == jackRoll) {
				messageBar = jackRoll + ' equals ' + mcRoll + '--a tie.';
			}
			if (jacksHP < 0) {
				jacksHP = 0;
			}
			if (mcHP < 0) {
				mcHP = 0;
			}
			winConditions();
		}
		function challengeCcard2() {
			checkSpecial2();
			mcRoll = Pcard2num + mcAtk;
			jackRoll = Ccard2num + jacksAtk;
			if (mcRoll > jackRoll) {
				messageBar = mcRoll + ' beats ' + jackRoll + '--Jack takes damage!';
				jacksHP -= mcRoll - jackRoll;
			}
			if (mcRoll < jackRoll) {
				messageBar = jackRoll + ' beats ' + mcRoll + '--you take damage!';
				mcHP -= jackRoll - mcRoll;
			}
			if (mcRoll == jackRoll) {
				messageBar = jackRoll + ' equals ' + mcRoll + '--a tie.';
			}
			if (jacksHP < 0) {
				jacksHP = 0;
			}
			if (mcHP < 0) {
				mcHP = 0;
			}
			winConditions();
		}
		function challengeCcard3() {
			checkSpecial3();
			mcRoll = Pcard3num + mcAtk;
			jackRoll = Ccard3num + jacksAtk;
			if (mcRoll > jackRoll) {
				messageBar = mcRoll + ' beats ' + jackRoll + '--Jack takes damage!';
				jacksHP -= mcRoll - jackRoll;
			}
			if (mcRoll < jackRoll) {
				messageBar = jackRoll + ' beats ' + mcRoll + '--you take damage!';
				mcHP -= jackRoll - mcRoll;
			}
			if (mcRoll == jackRoll) {
				messageBar = jackRoll + ' equals ' + mcRoll + '--a tie.';
			}
			if (jacksHP < 0) {
				jacksHP = 0;
			}
			if (mcHP < 0) {
				mcHP = 0;
			}
			winConditions();
		}
		function challengeCcard4() {
			checkSpecial4();
			mcRoll = Pcard4num + mcAtk;
			jackRoll = Ccard4num + jacksAtk;
			if (mcRoll > jackRoll) {
				messageBar = mcRoll + ' beats ' + jackRoll + '--Jack takes damage!';
				jacksHP -= mcRoll - jackRoll;
			}
			if (mcRoll < jackRoll) {
				messageBar = jackRoll + ' beats ' + mcRoll + '--you take damage!';
				mcHP -= jackRoll - mcRoll;
			}
			if (mcRoll == jackRoll) {
				messageBar = jackRoll + ' equals ' + mcRoll + '--a tie.';
			}
			if (jacksHP < 0) {
				jacksHP = 0;
			}
			if (mcHP < 0) {
				mcHP = 0;
			}
			winConditions();
		}
		function challengeCcard5() {
			checkSpecial5();
			mcRoll = Pcard5num + mcAtk;
			jackRoll = Ccard5num + jacksAtk;
			if (mcRoll > jackRoll) {
				messageBar = mcRoll + ' beats ' + jackRoll + '--Jack takes damage!';
				jacksHP -= mcRoll - jackRoll;
			}
			if (mcRoll < jackRoll) {
				messageBar = jackRoll + ' beats ' + mcRoll + '--you take damage!';
				mcHP -= jackRoll - mcRoll;
			}
			if (mcRoll == jackRoll) {
				messageBar = jackRoll + ' equals ' + mcRoll + '--a tie.';
			}
			if (jacksHP < 0) {
				jacksHP = 0;
			}
			if (mcHP < 0) {
				mcHP = 0;
			}
			winConditions();
		}
		function checkSpecial1() {
			if (Pcard1num == 1) {
				if (mcPsP >= 6) {
					mcPsP -= 6;
					mcAtk += 3;
				}
			}
			if (Pcard1num == 2) {
				if (mcPsP >= 4) {
					mcPsP -= 4;
					mcAtk += 2;
				}
			}
			if (Pcard1num == 3) {
				if (mcPsP >= 3) {
					mcPsP -= 3;
					mcAtk += 1;
				}
			}
			if (Pcard1num == 4) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 10;
				}
			}
			if (Pcard1num == 5) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 8;
				}
			}
			if (Pcard1num == 6) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 5;
				}
			}
			if (Pcard1num == 7 || Pcard1num == 8) {
				if (mcPsP < 10) {
					mcPsP += 1;
				}
			}
			if (Ccard1num == 1) {
				if (jacksPsP >= 6) {
					jacksPsP -= 6;
					jacksAtk += 3;
				}
			}
			if (Ccard1num == 2) {
				if (jacksPsP >= 4) {
					jacksPsP -= 4;
					jacksAtk += 2;
				}
			}
			if (Ccard1num == 3) {
				if (jacksPsP >= 3) {
					jacksPsP -= 3;
					jacksAtk += 1;
				}
			}
			if (Ccard1num == 4) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 10;
				}
			}
			if (Ccard1num == 5) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 8;
				}
			}
			if (Ccard1num == 6) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 5;
				}
			}
			if (Ccard1num == 7 || Ccard1num == 8) {
				if (jacksPsP < 10) {
					jacksPsP += 1;
				}
			}
		}
		function checkSpecial2() {
			if (Pcard2num == 1) {
				if (mcPsP >= 6) {
					mcPsP -= 6;
					mcAtk += 3;
				}
			}
			if (Pcard2num == 2) {
				if (mcPsP >= 4) {
					mcPsP -= 4;
					mcAtk += 2;
				}
			}
			if (Pcard2num == 3) {
				if (mcPsP >= 3) {
					mcPsP -= 3;
					mcAtk += 1;
				}
			}
			if (Pcard2num == 4) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 10;
				}
			}
			if (Pcard2num == 5) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 8;
				}
			}
			if (Pcard2num == 6) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 5;
				}
			}
			if (Pcard2num == 7 || Pcard2num == 8) {
				if (mcPsP < 10) {
					mcPsP += 1;
				}
			}
			if (Ccard2num == 1) {
				if (jacksPsP >= 6) {
					jacksPsP -= 6;
					jacksAtk += 3;
				}
			}
			if (Ccard2num == 2) {
				if (jacksPsP >= 4) {
					jacksPsP -= 4;
					jacksAtk += 2;
				}
			}
			if (Ccard2num == 3) {
				if (jacksPsP >= 3) {
					jacksPsP -= 3;
					jacksAtk += 1;
				}
			}
			if (Ccard2num == 4) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 10;
				}
			}
			if (Ccard2num == 5) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 8;
				}
			}
			if (Ccard2num == 6) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 5;
				}
			}
			if (Ccard2num == 7 || Ccard2num == 8) {
				if (jacksPsP < 10) {
					jacksPsP += 1;
				}
			}
		}
		function checkSpecial3() {
			if (Pcard3num == 1) {
				if (mcPsP >= 6) {
					mcPsP -= 6;
					mcAtk += 3;
				}
			}
			if (Pcard3num == 2) {
				if (mcPsP >= 4) {
					mcPsP -= 4;
					mcAtk += 2;
				}
			}
			if (Pcard3num == 3) {
				if (mcPsP >= 3) {
					mcPsP -= 3;
					mcAtk += 1;
				}
			}
			if (Pcard3num == 4) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 10;
				}
			}
			if (Pcard3num == 5) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 8;
				}
			}
			if (Pcard3num == 6) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 5;
				}
			}
			if (Pcard3num == 7 || Pcard3num == 8) {
				if (mcPsP < 10) {
					mcPsP += 1;
				}
			}
			if (Ccard3num == 1) {
				if (jacksPsP >= 6) {
					jacksPsP -= 6;
					jacksAtk += 3;
				}
			}
			if (Ccard3num == 2) {
				if (jacksPsP >= 4) {
					jacksPsP -= 4;
					jacksAtk += 2;
				}
			}
			if (Ccard3num == 3) {
				if (jacksPsP >= 3) {
					jacksPsP -= 3;
					jacksAtk += 1;
				}
			}
			if (Ccard3num == 4) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 10;
				}
			}
			if (Ccard3num == 5) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 8;
				}
			}
			if (Ccard3num == 6) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 5;
				}
			}
			if (Ccard3num == 7 || Ccard3num == 8) {
				if (jacksPsP < 10) {
					jacksPsP += 1;
				}
			}
		}
		function checkSpecial4() {
			if (Pcard4num == 1) {
				if (mcPsP >= 6) {
					mcPsP -= 6;
					mcAtk += 3;
				}
			}
			if (Pcard4num == 2) {
				if (mcPsP >= 4) {
					mcPsP -= 4;
					mcAtk += 2;
				}
			}
			if (Pcard4num == 3) {
				if (mcPsP >= 3) {
					mcPsP -= 3;
					mcAtk += 1;
				}
			}
			if (Pcard4num == 4) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 10;
				}
			}
			if (Pcard4num == 5) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 8;
				}
			}
			if (Pcard4num == 6) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 5;
				}
			}
			if (Pcard4num == 7 || Pcard4num == 8) {
				if (mcPsP < 10) {
					mcPsP += 1;
				}
			}
			if (Ccard4num == 1) {
				if (jacksPsP >= 6) {
					jacksPsP -= 6;
					jacksAtk += 3;
				}
			}
			if (Ccard4num == 2) {
				if (jacksPsP >= 4) {
					jacksPsP -= 4;
					jacksAtk += 2;
				}
			}
			if (Ccard4num == 3) {
				if (jacksPsP >= 3) {
					jacksPsP -= 3;
					jacksAtk += 1;
				}
			}
			if (Ccard4num == 4) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 10;
				}
			}
			if (Ccard4num == 5) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 8;
				}
			}
			if (Ccard4num == 6) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 5;
				}
			}
			if (Ccard4num == 7 || Ccard4num == 8) {
				if (jacksPsP < 10) {
					jacksPsP += 1;
				}
			}
		}
		function checkSpecial5() {
			if (Pcard5num == 1) {
				if (mcPsP >= 6) {
					mcPsP -= 6;
					mcAtk += 3;
				}
			}
			if (Pcard5num == 2) {
				if (mcPsP >= 4) {
					mcPsP -= 4;
					mcAtk += 2;
				}
			}
			if (Pcard5num == 3) {
				if (mcPsP >= 3) {
					mcPsP -= 3;
					mcAtk += 1;
				}
			}
			if (Pcard5num == 4) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 10;
				}
			}
			if (Pcard5num == 5) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 8;
				}
			}
			if (Pcard5num == 6) {
				if (mcPsP >= 1) {
					mcPsP -= 1;
					mcHP += 5;
				}
			}
			if (Pcard5num == 7 || Pcard5num == 8) {
				if (mcPsP < 10) {
					mcPsP += 1;
				}
			}
			if (Ccard5num == 1) {
				if (jacksPsP >= 6) {
					jacksPsP -= 6;
					jacksAtk += 3;
				}
			}
			if (Ccard5num == 2) {
				if (jacksPsP >= 4) {
					jacksPsP -= 4;
					jacksAtk += 2;
				}
			}
			if (Ccard5num == 3) {
				if (jacksPsP >= 3) {
					jacksPsP -= 3;
					jacksAtk += 1;
				}
			}
			if (Ccard5num == 4) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 10;
				}
			}
			if (Ccard5num == 5) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 8;
				}
			}
			if (Ccard5num == 6) {
				if (jacksPsP >= 1) {
					jacksPsP -= 1;
					jacksHP += 5;
				}
			}
			if (Ccard5num == 7 || Ccard5num == 8) {
				if (jacksPsP < 10) {
					jacksPsP += 1;
				}
			}
		}
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		cardGUIClosed = true;
		okayButtonClosed = true;
		refreshMenu();
		lastscene = 'town02';
		Background.Niven.gotoAndStop(5);
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		winLimit = 65;
		if (mission2Done == true) {
			winLimit = 95;
		}
		if (mission3Done == true) {
			winLimit = 150;
		}
		if (mission4Done == true) {
			winLimit = 250;
		}
		if (mission5Done == true) {
			winLimit = 400;
		}
		if (mission6Done == true) {
			winLimit = 600;
		}
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		if (gotBlueOrb && gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BOBlW');
		}
		if (gotBlueOrb && gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BOBl');
		}
		if (gotBlueOrb && gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BOW');
		}
		if (!gotBlueOrb && gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('OBlW');
		}
		if (gotBlueOrb && !gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BBlW');
		}
		if (gotBlueOrb && gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BO');
		}
		if (gotBlueOrb && !gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BBl');
		}
		if (gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BW');
		}
		if (!gotBlueOrb && gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('OBl');
		}
		if (!gotBlueOrb && gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('OW');
		}
		if (!gotBlueOrb && !gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BlW');
		}
		if (!gotBlueOrb && !gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('Bl');
		}
		if (!gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('W');
		}
		if (!gotBlueOrb && gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('O');
		}
		if (gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('B');
		}
		if (!gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('none');
		}
		if (gotGreenOrb && gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BOBlW');
		}
		if (gotGreenOrb && gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BOBl');
		}
		if (gotGreenOrb && gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BOW');
		}
		if (!gotGreenOrb && gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('OBlW');
		}
		if (gotGreenOrb && !gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BBlW');
		}
		if (gotGreenOrb && gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BO');
		}
		if (gotGreenOrb && !gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BBl');
		}
		if (gotGreenOrb && !gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BW');
		}
		if (!gotGreenOrb && gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('OBl');
		}
		if (!gotGreenOrb && gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('OW');
		}
		if (!gotGreenOrb && !gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BlW');
		}
		if (!gotGreenOrb && !gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('Bl');
		}
		if (!gotGreenOrb && !gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('W');
		}
		if (!gotGreenOrb && gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('O');
		}
		if (gotGreenOrb && !gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('B');
		}
		if (!gotGreenOrb && !gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('none');
		}
		Background.orbTable.blue.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 51;
				conversation();
			}
		};
		Background.orbTable.orange.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 52;
				conversation();
			}
		};
		Background.orbTable.black.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 53;
				conversation();
			}
		};
		Background.orbTable.white.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 54;
				conversation();
			}
		};
		Background.orbTable2.green.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 55;
				conversation();
			}
		};
		Background.orbTable2.red.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 56;
				conversation();
			}
		};
		Background.orbTable2.yellow.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 57;
				conversation();
			}
		};
		Background.orbTable2.indigo.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 58;
				conversation();
			}
		};
		Background.Beer01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 3;
				conversation();
			}
		};
		Background.Book03.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 4;
				conversation();
			}
		};
		Background.Target01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 6;
				conversation();
			}
		};
		if (!gotDarkling || darklingDead == true) {
			Background.Darkling.swapDepths(1);
			Background.Darkling.removeMovieClip();
			Background.Collision.darklingCollide.swapDepths(21);
			Background.Collision.darklingCollide.removeMovieClip();
		}
		if (!gotShadowboxer || shadowboxerDead == true) {
			Background.Shadowboxer.swapDepths(2);
			Background.Shadowboxer.removeMovieClip();
			Background.Collision.shadowboxerCollide.swapDepths(22);
			Background.Collision.shadowboxerCollide.removeMovieClip();
		}
		if (!gotFestus || festusDead == true) {
			Background.Festus.swapDepths(3);
			Background.Festus.removeMovieClip();
			Background.Collision.festusCollide.swapDepths(23);
			Background.Collision.festusCollide.removeMovieClip();
		}
		if (!gotNiven || nivenDead == true) {
			Background.Niven.swapDepths(4);
			Background.Niven.removeMovieClip();
			Background.Collision.nivenCollide.swapDepths(24);
			Background.Collision.nivenCollide.removeMovieClip();
		}
		if (!gotGrotius || grotiusDead == true) {
			Background.Grotius.swapDepths(5);
			Background.Grotius.removeMovieClip();
			Background.Collision.grotiusCollide.swapDepths(25);
			Background.Collision.grotiusCollide.removeMovieClip();
		}
		if (!gotAnya || anyaDead == true) {
			Background.Anya.swapDepths(6);
			Background.Anya.removeMovieClip();
			Background.Collision.anyaCollide.swapDepths(26);
			Background.Collision.anyaCollide.removeMovieClip();
		}
		if (!gotGuy || guyDead == true) {
			Background.Guy.swapDepths(7);
			Background.Guy.removeMovieClip();
			Background.Collision.guyCollide.swapDepths(27);
			Background.Collision.guyCollide.removeMovieClip();
		}
		if (!gotJack || jackDead == true) {
			Background.Jack.swapDepths(8);
			Background.Jack.removeMovieClip();
			Background.Collision.jackCollide.swapDepths(28);
			Background.Collision.jackCollide.removeMovieClip();
		}
		if (!gotFlint || flintDead == true) {
			Background.Flint.swapDepths(9);
			Background.Flint.removeMovieClip();
			Background.Collision.flintCollide.swapDepths(29);
			Background.Collision.flintCollide.removeMovieClip();
		}
		if (!gotHelena || helenaDead == true) {
			Background.Helena.swapDepths(10);
			Background.Helena.removeMovieClip();
			Background.Collision.helenaCollide.swapDepths(30);
			Background.Collision.helenaCollide.removeMovieClip();
		}
		Background.Darkling.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Darkling._x + Background._x - mainChar._x;
				delta_y = Background.Darkling._y + Background._y - mainChar._y;
				Background.Darkling._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'darkling1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Shadowboxer.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Shadowboxer._x + Background._x - mainChar._x;
				delta_y = Background.Shadowboxer._y + Background._y - mainChar._y;
				Background.Shadowboxer._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'shadowboxer1';
				convBranch = 1;
				if (darklingDead == true) {
					convBranch = 5;
				}
				conversation();
			}
		};
		Background.Festus.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Festus._x + Background._x - mainChar._x;
				delta_y = Background.Festus._y + Background._y - mainChar._y;
				Background.Festus._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'festus1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Grotius.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Grotius._x + Background._x - mainChar._x;
				delta_y = Background.Grotius._y + Background._y - mainChar._y;
				Background.Grotius._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'grotius1';
				convBranch = 1;
				if (spokeToGrotius == 3) {
					convBranch = 8;
				}
				if (spokeToGrotius == 4) {
					convBranch = 15;
				}
				if (mission6Done == true && spokeToGrotius !== 3) {
					convBranch = 17;
				}
				conversation();
			}
		};
		Background.Anya.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Anya._x + Background._x - mainChar._x;
				delta_y = Background.Anya._y + Background._y - mainChar._y;
				Background.Anya._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'anya1';
				convBranch = 1;
				if (spokeToAnya == 2 && mission4Done == true) {
					convBranch = 9;
				}
				if (spokeToGrotius == 99) {
					convBranch = 98;
				}
				if (spokeToAnya == 99) {
					convBranch = 22;
				}
				if (spokeToAnya == 3) {
					convBranch = 24;
				}
				conversation();
			}
		};
		Background.Guy.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guy._x + Background._x - mainChar._x;
				delta_y = Background.Guy._y + Background._y - mainChar._y;
				Background.Guy._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guy1';
				convBranch = 1;
				if (spokeToGuy == 1 && gotJack == true && gotNiven == true) {
					convBranch = 4;
				}
				conversation();
			}
		};
		Background.Jack.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Jack._x + Background._x - mainChar._x;
				delta_y = Background.Jack._y + Background._y - mainChar._y;
				Background.Jack._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'jack2';
				convBranch = 1;
				bet = 5;
				conversation();
			}
		};
		Background.Niven.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'niven2';
				if (spokeToNiven == 3) {
					convBranch = 1;
				}
				conversation();
			}
		};
		Background.Helena.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Helena._x + Background._x - mainChar._x;
				delta_y = Background.Helena._y + Background._y - mainChar._y;
				Background.Helena._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'helena1';
				convBranch = 1;
				if (gotSaw == true && flintAttackType3 !== 'spinsaw') {
					convBranch = 50;
				}
				if (gotCapacitor == true && flintPsP < 9) {
					convBranch = 52;
				}
				if (gotFlameThrower == true && flintAttackType4 !== 'firebreath') {
					convBranch = 54;
				}
				conversation();
			}
		};
		Background.Flint.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Flint._x + Background._x - mainChar._x;
				delta_y = Background.Flint._y + Background._y - mainChar._y;
				Background.Flint._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'flint1';
				convBranch = 1;
				conversation();
			}
		};
	}
	movieClip 5030	{
	}
	movieClip 5032	{
	}
	movieClip 5034	{
	}
	movieClip 5036	{
	}
	movieClip 5037	{
	}
	movieClip 5049	{
		frame 145 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 5050	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5051	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5052	{
	}
	movieClip 5053	{
	}
	movieClip 5054	{
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5055	{
	}
	movieClip 5056	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5062	{
	}
	movieClip 5067	{
	}
	movieClip 5072	{
	}
	movieClip 5077	{
	}
	movieClip 5078	{
		frame 1 {
			stop();
		}
	}
	movieClip 5081	{
	}
	movieClip 5086	{
	}
	movieClip 5091	{
	}
	movieClip 5096	{
	}
	movieClip 5097	{
		frame 1 {
			stop();
		}
	}
	movieClip 5100	{
	}
	movieClip 5101	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.goToTown.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'town01';
				_root.gotoAndStop('switchTown02');
			}
			if (!_root.talking == 1 && _root.Background.goUpstairs.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'town02B';
				_root.gotoAndStop('switchTown02');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 104 {
		stop();
	}
	frame 105 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 106 {
		talking = 1;
		fadeOut.play();
	}
	frame 107 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		cardGUIClosed = true;
		okayButtonClosed = true;
		refreshMenu();
		lastscene = 'town02B';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		HPdisplay();
		Background.Bed.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 16;
				conversation();
			}
		};
	}
	movieClip 5108	{
	}
	movieClip 5109	{
	}
	movieClip 5115	{
	}
	movieClip 5118	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.goDownstairs.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'town02fromB';
				_root.gotoAndStop('switchTown02B');
			}
			if (!_root.talking == 1 && _root.Background.viewTown.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'town02C';
				_root.gotoAndStop('switchTown02B');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 116 {
		stop();
	}
	frame 117 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 118 {
		talking = 1;
		fadeOut.play();
	}
	frame 119 {
		Background.onPress = function () {
			goingtoScene = 'town02B';
			gotoAndStop('switchTown02C');
		};
		lastscene = 'town02C';
	}
	movieClip 5125	{
	}
	frame 128 {
		stop();
	}
	frame 131 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		cardGUIClosed = true;
		okayButtonClosed = true;
		refreshMenu();
		Background.Nightling.gotoAndStop(3);
		lastscene = 'town03';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		Background.Guard1.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard1._x + Background._x - mainChar._x;
				delta_y = Background.Guard1._y + Background._y - mainChar._y;
				Background.Guard1._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'shadguard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard2.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard2._x + Background._x - mainChar._x;
				delta_y = Background.Guard2._y + Background._y - mainChar._y;
				Background.Guard2._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'shadguard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Nightling.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Nightling._x + Background._x - mainChar._x;
				delta_y = Background.Nightling._y + Background._y - mainChar._y;
				Background.Nightling._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'nightling1';
				convBranch = 1;
				conversation();
			}
		};
	}
	movieClip 5127	{
	}
	movieClip 5133	{
	}
	movieClip 5135	{
	}
	movieClip 5136	{
	}
	movieClip 5137	{
	}
	movieClip 5138	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.goToTown.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'town01';
				_root.gotoAndStop('switchTown03');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 140 {
		stop();
	}
	frame 141 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 142 {
		talking = 1;
		fadeOut.play();
	}
	frame 143 {
		ConvBox.Clarifier._visible = false;
		floorType = 'grass';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'cave01';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
	}
	movieClip 5144	{
	}
	movieClip 5147	{
	}
	movieClip 5155	{
	}
	movieClip 5159	{
	}
	movieClip 5160	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.goToMap.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'mapScreen';
				_root.gotoAndStop('switchCave01');
			}
			if (!_root.talking == 1 && _root.Background.goToForest.hitTest(this._x, this._y, true)) {
				if (_root.spokeToTastidian !== 5) {
				}
				if (_root.spokeToTastidian == 5) {
					_root.goingtoScene = 'battle03A';
					_root.gotoAndStop('switchCave01');
				}
				if (_root.spokeToTastidian > 5) {
					_root.goingtoScene = 'cave02';
					_root.gotoAndStop('switchCave01');
				}
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5161	{
	}
	movieClip 5165	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 152 {
		stop();
	}
	frame 153 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 154 {
		talking = 1;
		fadeOut.play();
	}
	frame 155 {
		ConvBox.Clarifier._visible = false;
		floorType = 'grass';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'cave02';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		mainChar._rotation = 270;
		if (gotOrangeOrb) {
			Background.orangeOrb.swapDepths(9);
			Background.orangeOrb.removeMovieClip();
		}
		if (!mission4Done) {
			Background.Tent.swapDepths(10);
			Background.Tent.removeMovieClip();
			Background.Collision.tentCollide.swapDepths(11);
			Background.Collision.tentCollide.removeMovieClip();
		}
		Background.orangeOrb.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				convID = 'foundOrange';
				convBranch = 1;
				talking = 1;
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
				ConvBox.gotoAndStop(6);
				playMysteryFlourish();
			}
		};
		mainChar.onEnterFrame = function () {
			if (spokeToNarrator < 1) {
				if (Background.flashback01.hitTest(mainChar._x, mainChar._y, true)) {
					convID = 'Flashback';
					talking = 1;
					mainChar.gotoAndStop(1);
					convBoxClosed = false;
					refreshMenu();
					ConvBox.gotoAndStop(6);
					convtext1 = 'You sense emanations not far off. Somehow, they seem familiar to you. A wave of nostalgia passes over you, though you can\'t pinpoint why. A memory seems to be dangling from some unreachable spot at the back of your head, scrambling to get inside...';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						talking = 0;
						convBoxClosed = true;
						refreshMenu();
						spokeToNarrator = 1;
						replied = 0;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (spokeToNarrator < 2) {
				if (Background.flashback02.hitTest(mainChar._x, mainChar._y, true)) {
					convID = 'Flashback';
					talking = 1;
					mainChar.gotoAndStop(1);
					convBoxClosed = false;
					refreshMenu();
					ConvBox.gotoAndStop(6);
					convtext1 = 'Suddenly, as if a door in your brain had sprung open, you remember exactly who those emanations belong to. Anya. Guy. How could you have forgotten? But your memories are like memories of a dream. They belong to another time, another life. Anya and Guy have surely long since forgotten you, and they could not possibly be in the midst of this impenetrable tangle of vegetation. You must be imagining things.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						talking = 0;
						convBoxClosed = true;
						refreshMenu();
						spokeToNarrator = 2;
						replied = 0;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'foundOrange') {
				if (convBranch == 1) {
					convtext1 = 'You notice something peculiar lying in the vegetation beneath this tree. It looks like a smooth glass orange, but it pulses with a dim light. You can feel some sort of power emanating from it.';
					reply1 = '[Pick it up.]';
					reply2 = 'Maybe I\'d better not touch it...';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						gotOrangeOrb = true;
						checkOrbTotal();
						mainCharResists = 'Heat';
						Background.orangeOrb.swapDepths(9);
						Background.orangeOrb.removeMovieClip();
						convBranch = 2;
						replied = 0;
					}
					if (replied == 2) {
						talking = 0;
						convBoxClosed = true;
						playMystereMusic();
						refreshMenu();
						replied = 0;
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					convtext1 = 'As you pick up the orb, you feel intense, scalding heat wash over you. Then suddenly, you can\'t feel it anymore. Nor can you feel the hot, humid air of the forest. Everything seems pleasantly cool.';
					reply1 = 'Maybe I\'ll bring this back to HQ...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						talking = 0;
						convBoxClosed = true;
						refreshMenu();
						playMystereMusic();
						replied = 0;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
		};
	}
	movieClip 5172	{
	}
	movieClip 5173	{
	}
	movieClip 5179	{
	}
	movieClip 5183	{
	}
	movieClip 5184	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.goToCave01.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'cave01';
				_root.gotoAndStop('switchCave02');
			}
			if (_root.talking !== 1 && _root.Background.goToCave03.hitTest(this._x, this._y, true)) {
				if (_root.spokeToNarrator == 2) {
					_root.goingtoScene = 'battle03B';
					_root.gotoAndStop('switchCave02');
				}
				if (_root.spokeToNarrator > 2) {
					_root.goingtoScene = 'cave03';
					_root.gotoAndStop('switchCave02');
				}
			}
			if (_root.talking !== 1 && _root.Background.Tent.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'cave02C';
				_root.gotoAndStop('switchCave02');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5185	{
	}
	movieClip 5187	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	instance fadeIn of movieClip 5028	{
		onClipEvent (load) {
			this.swapDepths(800);
		}
	}
	frame 164 {
		stop();
	}
	frame 165 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	instance pinholeClose of movieClip 3284 pinholeClose {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 166 {
		talking = 1;
		fadeOut.play();
	}
	instance fadeOut of movieClip 3285 fadeOut {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 167 {
		ConvBox.Clarifier._visible = false;
		floorType = 'grass';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		gotAnya = true;
		gotGuy = true;
		anyaDead = false;
		guyDead = false;
		cueScene = 'Forest01';
		cutScene();
		lastscene = 'cave02B';
		goingtoScene = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		HPdisplay();
		convID = 'cutScene1';
		convBranch = 1;
		convBoxClosed = false;
		refreshMenu();
		thing1.onEnterFrame = function () {
			speaker1 = 'Guy';
			speaker2 = mainCharName;
			ConvBox.portraitFinder.gotoAndStop(10);
			if (convBranch == 1) {
				ConvBox.gotoAndStop(1);
				speaker2 = '';
				convtext1 = '[At first you were unsure, but as you approach, it becomes unmistakable. Anya and Guy are standing in the clearing up ahead. They look just how you remember them. Guy still has that same cocky smirk.] Took you long enough.';
				convtext2 = '';
				reply1 = 'Guy! Anya! What are you...';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 2) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Anya';
				ConvBox.portraitFinder.gotoAndStop(9);
				convtext1 = '[She gasps audibly.] Oh my goodness, ' + mainCharName + '! It\'s you! Thank heavens! We\'ve been looking for you for, like, forever!';
				convtext2 = 'Guy! Anya! What are you...';
				reply1 = 'You came looking...for me?';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 3) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Guy';
				ConvBox.portraitFinder.gotoAndStop(10);
				convtext1 = 'We\'d have shown up sooner, but the administration back at the Academy had us practically under 24-hour watch. They were afraid we\'d take off and get abducted too. Instead, we just got captured by a bunch of mercenaries. Shows how much they know.';
				convtext2 = 'You came looking...for me?';
				reply1 = '[Continue.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 4) {
				ConvBox.gotoAndStop(1);
				speaker1 = 'Anya';
				speaker2 = '';
				ConvBox.portraitFinder.gotoAndStop(9);
				convtext1 = 'You know, we had no idea what happened to you! We thought you\'d been kidnapped, or that you were dead. No one had heard anything, and we couldn\'t Contact you.';
				convtext2 = '';
				reply1 = '[Continue.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 5) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Anya';
				speaker2 = 'Guy';
				ConvBox.portraitFinder.gotoAndStop(9);
				convtext1 = '[Anya shoots Guy a dirty look.] Guy! That\'s no way to greet your friend! [She punches him in the arm, then turns back to you.] Don\'t mind him. We\'re just exhausted from searching. It\'s good to see you again, ' + mainCharName + '.';
				convtext2 = 'There one minute, gone the next. Like a fart in the wind.';
				reply1 = 'How\'d you know where to look?';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 6) {
				ConvBox.gotoAndStop(2);
				convtext1 = 'What can I say. When you start hearing rumors about a young, red-headed black cape leading shadowlings into battle, there are only so many potential candidates for who that could be.';
				convtext2 = 'How\'d you know where to look?';
				reply1 = '[Continue.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 7) {
				ConvBox.gotoAndStop(1);
				speaker1 = 'Anya';
				speaker2 = '';
				ConvBox.portraitFinder.gotoAndStop(9);
				convtext1 = 'We saw you deal with those mercenaries just now. That was amazing! How did you ever come to command shadowlings? I was reading that they live in a very hierarchical society, and view humans much the same way we view rats. Except we don\'t eat rats.';
				convtext2 = '';
				reply1 = 'It\'s a long story. So...you\'re both black capes now?';
				reply2 = 'Long story. Anya, where are all of your books?';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 8) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Anya';
				ConvBox.portraitFinder.gotoAndStop(9);
				convtext1 = '[Anya nods proudly.] I came first in the class in defense! And it turns out that Guy has a real knack for pyrokinetics. Between the two of us, we\'re guaranteed to get you home safely.';
				convtext2 = 'It\'s a long story. So...you\'re both black capes now?';
				reply1 = 'Um, about that...';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 9) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Guy';
				ConvBox.portraitFinder.gotoAndStop(10);
				convtext1 = 'She sold them to finance our search! Can you believe that? That\'s like me selling my kidney or something. [You notice Anya blushing.] Anyway, ' + mainCharName + ', I think you\'ve now officially made us suffer enough on your behalf. Let\'s go home.';
				convtext2 = 'Long story. Anya, where are all of your books?';
				reply1 = 'Um, about that...';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 10) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Guy';
				ConvBox.portraitFinder.gotoAndStop(10);
				convtext1 = 'Wait...that looks familiar. Isn\'t that that thing I found in the woods?';
				convtext2 = 'Um, about that...I can\'t leave. [You hold up your slave bracelet.]';
				reply1 = 'It\'s a slave bracelet.';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 11) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Anya';
				ConvBox.portraitFinder.gotoAndStop(9);
				convtext1 = '[A guilty look comes over Guy\'s face. Anya looks horrified.] Oh no...I\'ve read about those things...' + mainCharName + ', I\'m so sorry.';
				convtext2 = 'It\'s a slave bracelet.';
				reply1 = '[Continue.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 12) {
				ConvBox.gotoAndStop(1);
				speaker1 = 'Guy';
				speaker2 = '';
				ConvBox.portraitFinder.gotoAndStop(10);
				convtext1 = '[Guy shakes his head.] This is my fault. ' + mainCharName + ', I\'m not leaving here until that thing is off your wrist. Don\'t try to talk me out of it. I\'ve made up my mind.';
				convtext2 = '';
				reply1 = 'Really?';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 13) {
				ConvBox.gotoAndStop(2);
				speaker1 = 'Anya';
				ConvBox.portraitFinder.gotoAndStop(9);
				convtext1 = '[Anya chimes in, her voice shaking a little.] Me too. I...don\'t care how dangerous it is. I can\'t just leave you both like this. Besides...maybe I\'ll get to learn more about the shadowlings this way. I\'ve always wanted to visit their city beneath the earth.';
				convtext2 = 'Really?';
				reply1 = 'You guys are amazing. Let\'s get out of here...';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 1) {
				if (replied == 1) {
					convBranch = 2;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 2) {
				if (replied == 1) {
					convBranch = 3;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 3) {
				if (replied == 1) {
					convBranch = 4;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 4) {
				if (replied == 1) {
					convBranch = 5;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 5) {
				if (replied == 1) {
					convBranch = 6;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 6) {
				if (replied == 1) {
					convBranch = 7;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 7) {
				if (replied == 1) {
					convBranch = 8;
					replied = 0;
				}
				if (replied == 2) {
					convBranch = 9;
					replied = 0;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 8) {
				if (replied == 1) {
					convBranch = 10;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 9) {
				if (replied == 1) {
					convBranch = 10;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 10) {
				if (replied == 1) {
					convBranch = 11;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 11) {
				if (replied == 1) {
					convBranch = 12;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 12) {
				if (replied == 1) {
					convBranch = 13;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 13) {
				if (replied == 1) {
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
					goingtoScene = 'cave03';
					gotoAndStop('switchCave02B');
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
		};
	}
	movieClip 5195	{
	}
	movieClip 5198	{
	}
	movieClip 5199	{
	}
	movieClip 5201	{
	}
	instance Overhead of movieClip 5201	{
		onClipEvent (load) {
			this.swapDepths(480);
		}
	}
	frame 177 {
		stop();
		fadeIn.removeMovieClip();
	}
	frame 178 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 179 {
		talking = 1;
		fadeOut.play();
	}
	instance fadeOut of movieClip 3285 fadeOut {
		onClipEvent (load) {
			this.swapDepths(800);
		}
	}
	frame 180 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'cave02C';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		mainChar._rotation -= 180;
		Background.Gelf.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Gelf._x + Background._x - mainChar._x;
				delta_y = Background.Gelf._y + Background._y - mainChar._y;
				Background.Gelf._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'gelf1';
				convBranch = 1;
				if (spokeToGelf == 1) {
					convBranch = 9;
				}
				if (gotFlameThrower == true) {
					convBranch = 10;
				}
				if (gotCapacitor == true) {
					convBranch = 11;
				}
				if (gotFlameThrower == true && gotCapacitor == true) {
					convBranch = 12;
				}
				conversation();
			}
		};
	}
	movieClip 5203	{
	}
	movieClip 5205	{
	}
	movieClip 5207	{
	}
	movieClip 5209	{
	}
	movieClip 5211	{
	}
	movieClip 5225	{
	}
	movieClip 5226	{
		frame 1 {
			stop();
		}
		instance of movieClip 5225	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 5228	{
	}
	movieClip 5229	{
	}
	movieClip 5230	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5232	{
	}
	movieClip 5234	{
	}
	movieClip 5237	{
	}
	movieClip 5238	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.leaveTent.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'cave02';
				_root.gotoAndStop('switchCave02C');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5239	{
	}
	movieClip 5241	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 189 {
		stop();
	}
	frame 190 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 191 {
		talking = 1;
		fadeOut.play();
	}
	frame 192 {
		ConvBox.Clarifier._visible = false;
		floorType = 'grass';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		mainChar._rotation = 270;
		lastscene = 'cave03';
		whichBattle = 0;
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
	}
	movieClip 5247	{
	}
	movieClip 5251	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.goToForest.hitTest(this._x, this._y, true)) {
				if (_root.spokeToNarrator > 2) {
					_root.goingtoScene = 'cave02';
					_root.gotoAndStop('switchCave03');
				}
			}
			if (_root.talking !== 1 && _root.Background.goToCave04.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'cave04';
				_root.gotoAndStop('switchCave03');
			}
			if (_root.talking !== 1 && _root.Background.cutscene01.hitTest(this._x, this._y, true)) {
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5252	{
	}
	movieClip 5254	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 201 {
		stop();
	}
	frame 202 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 203 {
		talking = 1;
		fadeOut.play();
	}
	frame 204 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		mainChar._rotation = 270;
		lastscene = 'cave04';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		mainChar.onEnterFrame = function () {
			if (Background.startCutscene.hitTest(mainChar._x, mainChar._y, true) && spokeToNarrator < 4) {
				if (talking == 0) {
					convID = 'battle03C';
					convBranch = 1;
				}
				talking = 1;
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
				speaker1 = 'Darkling';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(2);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker2 = '';
					convtext1 = '[Darkling\'s voice pops into your head.] All right, where are they? Do you see the Golem workshop? Is the cave just crawling with bad guys?';
					convtext2 = '';
					reply1 = 'Actually...no. There\'s nothing here.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Shadowboxer';
					ConvBox.portraitFinder.gotoAndStop(3);
					convtext1 = '[Shadowboxer\'s voice appears in your mind.] Wait. Did you just say there\'s nothing in there?';
					convtext2 = 'Actually...no. There\'s nothing here.';
					reply1 = 'Looks pretty empty to me.';
					reply2 = 'Wait a minute, I wasn\'t talking to you.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Festus';
					ConvBox.portraitFinder.gotoAndStop(4);
					convtext1 = '[Festus\'s voice appears in your mind.] I\'ve got a bad feeling about this, ' + mainCharName + '. I smell a trap. You\'d better get out of there.';
					convtext2 = 'Looks pretty empty to me.';
					reply1 = 'I\'ll be out in a minute.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Festus';
					ConvBox.portraitFinder.gotoAndStop(4);
					convtext1 = '[Festus\'s voice appears in your mind.] We can all hear you, ' + mainCharName + '. This is how we normally speak. Anyway, something doesn\'t smell right about this. You should probably get out of there...';
					convtext2 = 'Wait a minute, I wasn\'t talking to you.';
					reply1 = 'I\'ll be out in a minute.';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Unknown';
					ConvBox.portraitFinder.gotoAndStop(50);
					convtext1 = '[Suddenly, you lose Contact with your teammates. A voice you haven\'t heard before pops into your head.] Yes, take your time. We\'d hate to rush you during your last moments alive... [You hear what sounds a great deal like snickering.]';
					convtext2 = 'I\'ll be out in a minute.';
					reply1 = 'What--who is this?!';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Unknown';
					ConvBox.portraitFinder.gotoAndStop(50);
					convtext1 = 'Why don\'t you come outside and meet us? [Another voice chimes in.] Yes. We\'ve gone to great pains to arrange this meeting. [A third voice appears.] Did we say \'meeting\'? We meant \'beating.\' And shortly thereafter, \'bleeding.\' Then, it will be you who is going through great pains...';
					convtext2 = 'What--who is this?!';
					reply1 = 'We\'ll see about that...';
					reply2 = 'Funny. You won\'t be laughing in a second.';
					reply3 = 'You\'re the dissidents, aren\'t you?';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Unknown';
					ConvBox.portraitFinder.gotoAndStop(50);
					convtext1 = 'Dissidents, huh? Is that what you call us? [The second voice chimes in.] It\'s pitiful to see slaves fighting on behalf of their captors. [You hear snickering again--you\'re pretty sure this is the third voice now.] Come outside: we\'ll end your bondage...forever.';
					convtext2 = 'You\'re the dissidents, aren\'t you?';
					reply1 = 'All right, that does it...';
					reply2 = 'Funny. You won\'t be laughing in a second.';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convBranch == 1) {
				if (replied == 1) {
					convBranch = 2;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 2) {
				if (replied == 1) {
					convBranch = 3;
					replied = 0;
				}
				if (replied == 2) {
					replied = 0;
					convBranch = 4;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 3 || convBranch == 4) {
				if (replied == 1) {
					convBranch = 5;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 5) {
				if (replied == 1) {
					convBranch = 6;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 6) {
				if (replied == 1) {
					spokeToNarrator = 4;
					talking = 0;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 2) {
					spokeToNarrator = 4;
					talking = 0;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 3) {
					convBranch = 7;
					replied = 0;
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 7) {
				if (replied == 1) {
					spokeToNarrator = 4;
					talking = 0;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 2) {
					spokeToNarrator = 4;
					talking = 0;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
		};
	}
	movieClip 5260	{
	}
	movieClip 5263	{
	}
	movieClip 5265	{
	}
	movieClip 5267	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.mission3Done == false && _root.spokeToNarrator == 4 && _root.Background.leaveCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'battle03C';
				_root.gotoAndStop('switchCave04');
			}
			if (_root.talking !== 1 && _root.mission3Done == true && _root.Background.leaveCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'cave03';
				_root.gotoAndStop('switchCave04');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 213 {
		stop();
	}
	frame 214 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 215 {
		talking = 1;
		fadeOut.play();
	}
	frame 216 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'deeper01';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		Background.treasureChest.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				if (gotRedOrb == true) {
					convID = 'noRed';
					convBranch = 1;
					talking = 1;
					mainChar.gotoAndStop(1);
					convBoxClosed = false;
					refreshMenu();
					ConvBox.gotoAndStop(6);
				} else {
					convID = 'foundRed';
					convBranch = 1;
					talking = 1;
					mainChar.gotoAndStop(1);
					convBoxClosed = false;
					refreshMenu();
					ConvBox.gotoAndStop(6);
					playMysteryFlourish();
				}
			}
		};
		mainChar.onEnterFrame = function () {
			if (convID == 'foundRed') {
				if (convBranch == 1) {
					convtext1 = 'You pop open the chest and notice a blood-red glass ball inside, perhaps the size of your fist. It pulses with a dim light. You can feel some sort of power emanating from it.';
					reply1 = '[Pick it up.]';
					reply2 = 'Maybe I\'d better not touch it...';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						gotRedOrb = true;
						checkOrbTotal();
						mainCharAttackType3 = 'pyrohail';
						hyperfocus = false;
						mainCharSpeed = 5;
						mainCharAttackType2 = 'mindshield';
						convBranch = 2;
						replied = 0;
					}
					if (replied == 2) {
						talking = 0;
						convBoxClosed = true;
						playCreepyMusic();
						refreshMenu();
						replied = 0;
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					convtext1 = 'As you pick up the orb, you feel a sudden, overwhelming desire to scorch everything around you. You\'re no longer sure that you can control your pyrokinesis quite the way you once could.';
					reply1 = 'Maybe I\'ll bring this back to HQ...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						talking = 0;
						convBoxClosed = true;
						refreshMenu();
						playCreepyMusic();
						replied = 0;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
			if (convID == 'noRed') {
				if (convBranch == 1) {
					convtext1 = 'You pop open the chest, but it is empty.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						talking = 0;
						convBoxClosed = true;
						refreshMenu();
						replied = 0;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
		};
	}
	movieClip 5273	{
	}
	movieClip 5276	{
	}
	movieClip 5283	{
	}
	movieClip 5288	{
	}
	movieClip 5293	{
	}
	movieClip 5300	{
	}
	movieClip 5302	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.leaveCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'mapScreen';
				_root.gotoAndStop('closeDeeper01');
			}
			if (_root.talking !== 1 && _root.Background.goDeeper.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'deeper02';
				_root.gotoAndStop('switchDeeper01');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5304	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 227 {
		stop();
	}
	frame 228 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 229 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 230 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		cueScene = 'DeeperDowns01';
		lastscene = 'deeper02';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		mainChar.onEnterFrame = function () {
			if (Background.startCutscene.hitTest(mainChar._x, mainChar._y, true) && spokeToNarrator < 5) {
				if (talking == 0) {
					cutScene();
					convID = 'cutScene';
					convBranch = 1;
				}
				talking = 1;
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
				speaker1 = 'Cerzak';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(25);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Unknown';
					ConvBox.portraitFinder.gotoAndStop(25);
					speaker2 = '';
					convtext1 = '[A deep, bemused voice pops into your head.] Well, well. I had a feeling we\'d be seeing you sooner or later.';
					convtext2 = '';
					reply1 = 'Who are you?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Cerzak';
					ConvBox.portraitFinder.gotoAndStop(25);
					convtext1 = 'I am Cerzak. [He gestures to the other creatures around you.] We...are the Spriggats. [He glances down at your wrist.] And you, I take it, are a shadowling slave. We, too, were slaves once.';
					convtext2 = 'Who are you?';
					reply1 = 'You were slaves?';
					reply2 = 'Why were you expecting me?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yes--slaves to a tyrannical government. But no longer! Now they call us dissidents, or rebels. Really, all we are is freedom fighters. [He pauses.] Human, haven\'t you ever wondered why there are so few female shadowlings?';
					convtext2 = 'You were slaves?';
					reply1 = 'Well, now that you mention it...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Cerzak\'s voice quivers with rage and disgust. The other spriggats look down at their feet.] She kills them, fleshling. She kills them. To keep us all dependent on her for our survival. Though we are now free, our race is not. That is why we fight.';
					convtext2 = 'Well, now that you mention it...';
					reply1 = 'That\'s not my problem.';
					reply2 = 'That\'s...horrifying.';
					reply3 = 'I don\'t believe you.';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'You\'ve made a bit of a name for yourself as a troublemaker. It seemed to be only a matter of time before you stopped harrying the Mechanics and started meddling with us directly.';
					convtext2 = 'Why were you expecting me?';
					reply1 = 'What was that about you being slaves?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'We were once all slaves to a tyrannical government.	But no longer! Now they call us dissidents, or rebels. Really, all we are is freedom fighters. [He pauses.] Human, haven\'t you ever wondered why there are so few female shadowlings?';
					convtext2 = 'What was that about you being slaves?';
					reply1 = 'Well, now that you mention it...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[You feel rage suddenly emanating from the spriggats around you in thick waves. Cerzak shakes his head.] To the contrary, little animal, it is very much your problem--starting right now.';
					convtext2 = 'That\'s not my problem.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Cerzak nods.] I appreciate your sympathy. Unfortunately, that won\'t help you.';
					convtext2 = 'That\'s...horrifying.';
					reply1 = 'Why not?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[Cerzak shrugs.] It is your right to choose what you believe, human. This is one of our central convictions. Unfortunately, that won\'t help you.';
					convtext2 = 'I don\'t believe you.';
					reply1 = 'Why not?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'I truly wish I had a way to remove that bracelet of yours, but I don\'t. And as long as you wear that...thing...you pose too much of a risk to us. You will never be free to choose not to fight us.';
					convtext2 = 'Why not?';
					reply1 = 'Now wait a min--';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(1);
					speaker2 = 'Red Spriggat';
					convtext1 = '[He nods to four of the other spriggats.] Drop them into the Bug Pit, and make sure they don\'t get out.';
					convtext2 = 'Yes, sir.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convBranch == 1) {
				if (replied == 1) {
					convBranch = 2;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 2) {
				if (replied == 1) {
					convBranch = 3;
					replied = 0;
				}
				if (replied == 2) {
					convBranch = 5;
					replied = 0;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 3) {
				if (replied == 1) {
					convBranch = 4;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 4) {
				if (replied == 1) {
					convBranch = 7;
					replied = 0;
				}
				if (replied == 2) {
					convBranch = 8;
					replied = 0;
				}
				if (replied == 3) {
					convBranch = 9;
					replied = 0;
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 5) {
				if (replied == 1) {
					convBranch = 6;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 6) {
				if (replied == 1) {
					convBranch = 4;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 7) {
				if (replied == 1) {
					convBranch = 11;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 8) {
				if (replied == 1) {
					convBranch = 10;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 9) {
				if (replied == 1) {
					convBranch = 10;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 10) {
				if (replied == 1) {
					convBranch = 11;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 11) {
				if (replied == 1) {
					spokeToNarrator = 5;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
					goingtoScene = 'deeper03';
					gotoAndStop('closeDeeper02');
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
		};
	}
	movieClip 5311	{
	}
	movieClip 5313	{
	}
	movieClip 5318	{
	}
	movieClip 5320	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.leaveCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'deeper01';
				_root.gotoAndStop('switchDeeper02');
			}
			if (_root.talking !== 1 && _root.spokeToNarrator >= 5 && _root.Background.goDeeper.hitTest(this._x, this._y, true)) {
				if (!_root.mission4Done) {
					_root.goingtoScene = 'battle04A';
					_root.gotoAndStop('closeDeeper02');
				} else {
					_root.goingtoScene = 'deeper04';
					_root.gotoAndStop('switchDeeper02');
				}
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 241 {
		stop();
	}
	frame 242 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 243 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 244 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'deeper03';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		if (gotFlint) {
			Background.Flint.swapDepths(9);
			Background.Flint.removeMovieClip();
			Background.Collision.flintCollide.swapDepths(29);
			Background.Collision.flintCollide.removeMovieClip();
		}
		if (gotHelena) {
			Background.Helena.swapDepths(10);
			Background.Helena.removeMovieClip();
			Background.Collision.helenaCollide.swapDepths(30);
			Background.Collision.helenaCollide.removeMovieClip();
		}
		Background.Helena.onPress = function () {
			if (talking == 0 && spokeToNarrator == 7) {
				delta_x = Background.Helena._x + Background._x - mainChar._x;
				delta_y = Background.Helena._y + Background._y - mainChar._y;
				Background.Helena._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'cutScene1';
				convBranch = 1;
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
			}
			speaker1 = 'Helena';
			speaker2 = mainCharName;
			ConvBox.portraitFinder.gotoAndStop(7);
			if (convBranch == 1) {
				ConvBox.gotoAndStop(1);
				speaker2 = '';
				convtext1 = 'Sorry pal, you had your chance. Have fun with the bugs.';
				convtext2 = '';
				reply1 = '[Leave.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
		};
		Background.Flint.onPress = function () {
			if (talking == 0 && spokeToNarrator == 7) {
				delta_x = Background.Flint._x + Background._x - mainChar._x;
				delta_y = Background.Flint._y + Background._y - mainChar._y;
				Background.Flint._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'cutScene3';
				convBranch = 1;
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
			}
			speaker1 = 'Flint';
			speaker2 = mainCharName;
			ConvBox.portraitFinder.gotoAndStop(6);
			if (convBranch == 1) {
				ConvBox.gotoAndStop(1);
				speaker2 = '';
				convtext1 = '[The Golem\'s eye fixates on you. A low rumble, like stone grinding against stone, emanates from his belly. Otherwise, he does nothing. He simply stares at you.]';
				convtext2 = '';
				reply1 = '[Leave.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
		};
		mainChar.onEnterFrame = function () {
			if (Background.goDeeper.hitTest(mainChar._x, mainChar._y, true) && spokeToNarrator == 5) {
				if (talking == 0) {
					convID = 'cutScene0';
					convBranch = 1;
				}
				talking = 1;
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
				speaker1 = 'Helena';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(7);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Unknown';
					ConvBox.portraitFinder.gotoAndStop(50);
					speaker2 = '';
					convtext1 = '[You hear a woman yelling somewhere behind you.] Hey! Hey you! What the hell do you think you\'re doing? Get over here!';
					convtext2 = '';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'cutScene0' && convBranch == 1) {
				if (replied == 1) {
					talking = 0;
					spokeToNarrator = 6;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (Background.startCutscene.hitTest(mainChar._x, mainChar._y, true) && spokeToNarrator < 7) {
				if (talking == 0) {
					delta_x = Background.Helena._x + Background._x - mainChar._x;
					delta_y = Background.Helena._y + Background._y - mainChar._y;
					Background.Helena._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
					talking = 1;
					convID = 'cutScene2';
					convBranch = 1;
					mainChar.gotoAndStop(1);
					convBoxClosed = false;
					refreshMenu();
				}
				speaker1 = 'Helena';
				speaker2 = mainCharName;
				ConvBox.portraitFinder.gotoAndStop(7);
				if (convBranch == 1) {
					ConvBox.gotoAndStop(1);
					speaker1 = 'Unknown';
					speaker2 = '';
					convtext1 = 'You know, standing around in the open down here is likely to earn you a one-way ticket to a dirt nap.';
					convtext2 = '';
					reply1 = 'Dirt nap?';
					reply2 = 'Who are you?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 2) {
					ConvBox.gotoAndStop(2);
					speaker1 = 'Unknown';
					convtext1 = 'Yeah. A nap in the dirt. A permanent one. You follow? There\'s some nasty bugs down here, and they\'re pretty territorial. They won\'t bother Flint and I, so long as we stay in this corner, here. But if we head out there... [She cracks her knuckles.] ...then it\'s trouble.';
					convtext2 = 'Dirt nap?';
					reply1 = 'Who are you?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 3) {
					speaker1 = 'Helena';
					ConvBox.gotoAndStop(2);
					convtext1 = 'The name\'s Helena. [She grabs your hand and shakes it.] Mechanic Captain. Or I used to be, till just recently anyway.';
					convtext2 = 'Who are you?';
					reply1 = 'What happened?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 4) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Flint and I, we got greedy. Started wanting more pay. [A fierce glint appears in her eye.] And why shouldn\'t we! I coulda out-fought any of the other captains, easy! It\'s \'cuz I\'m a woman, I tell ya. Anyway, they caught us takin\' parts, threw us down here.';
					convtext2 = 'What happened?';
					reply1 = 'Parts?';
					reply2 = 'So, what have you been eating down here?';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 5) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Yeah. Golem parts. [She winks at you.] That\'s why Flint is so strong. I jury-rigged \'im with some special gears. He could punch your head right off, if he wanted to. [The golem grunts.]';
					convtext2 = 'Parts?';
					reply1 = 'So, what have you been eating down here?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 6) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She grins wickedly.] What do you think we\'ve been eating, pal? Only one thing down here besides rocks, and that\'s bugs. Cook bug meat a little over some lava, though, and it\'s not half bad.';
					convtext2 = 'So, what have you been eating down here?';
					reply1 = 'Oh. Um...is there a way out of here?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 7) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She looks you up and down, clearly sizing you up.] Yeah.';
					convtext2 = 'Oh. Um...is there a way out of here?';
					reply1 = 'So why haven\'t you left?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 8) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She shakes her head.] The only way outta here is through the Bug Queen. And while Flint and I are strong, we ain\'t that strong. You follow? The Queen\'s a real monster, pal. She\'ll rip you in two, quick as a thought. Plus, I\'ve heard she\'s mostly invulnerable. Some kind of weird mask.';
					convtext2 = 'So why haven\'t you left?';
					reply1 = 'Can you show me the way out?';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 9) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She laughs.] You\'re nuts! I like it. Sure, I\'ll show ya, but it ain\'t gonna be free.';
					convtext2 = 'Can you show me the way out?';
					reply1 = 'Okay, sounds fair.';
					reply2 = 'Forget it--I\'ll just do this myself.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 10) {
					ConvBox.gotoAndStop(2);
					convtext1 = 'Swell. These bugs hoard gold, and I want a 500 gold cut of whatever they drop.';
					convtext2 = 'Okay, sounds fair.';
					reply1 = 'Great, let\'s go.';
					reply2 = 'Forget it--I\'ll just do this myself.';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 11) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She smiles nastily.] Fine--suit yourself. Just don\'t complain when I loot your body after the Queen has her way with you.';
					convtext2 = 'Forget it--I\'ll just do this myself.';
					reply1 = '[Leave.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
				if (convBranch == 12) {
					ConvBox.gotoAndStop(2);
					convtext1 = '[She turns to the golem.] Did you hear that, Flint? Let\'s blow this joint.';
					convtext2 = 'Great, let\'s go.';
					reply1 = '[Continue.]';
					reply2 = '';
					reply3 = '';
					reply4 = '';
				}
			}
			if (convID == 'cutScene2' && convBranch == 1) {
				if (replied == 1) {
					convBranch = 2;
					replied = 0;
				}
				if (replied == 2) {
					convBranch = 3;
					replied = 0;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 2) {
				if (replied == 1) {
					convBranch = 3;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 3) {
				if (replied == 1) {
					convBranch = 4;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 4) {
				if (replied == 1) {
					convBranch = 5;
					replied = 0;
				}
				if (replied == 2) {
					convBranch = 6;
					replied = 0;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 5) {
				if (replied == 1) {
					convBranch = 6;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 6) {
				if (replied == 1) {
					convBranch = 7;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 7) {
				if (replied == 1) {
					convBranch = 8;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 8) {
				if (replied == 1) {
					convBranch = 9;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 9) {
				if (replied == 1) {
					convBranch = 10;
					replied = 0;
				}
				if (replied == 2) {
					convBranch = 11;
					replied = 0;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 10) {
				if (replied == 1) {
					convBranch = 12;
					replied = 0;
				}
				if (replied == 2) {
					convBranch = 11;
					replied = 0;
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 11) {
				if (replied == 1) {
					spokeToNarrator = 7;
					talking = 0;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 12) {
				if (replied == 1) {
					spokeToNarrator = 7;
					Background.startCutscene.swapDepths(9);
					Background.startCutscene.removeMovieClip();
					gotFlint = true;
					flintDead = false;
					gotHelena = true;
					helenaDead = false;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
					goingtoScene = 'deeper03';
					gotoAndStop('switchDeeper03');
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convID == 'cutScene1' && convBranch == 1) {
				if (replied == 1) {
					talking = 0;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convID == 'cutScene3' && convBranch == 1) {
				if (replied == 1) {
					talking = 0;
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
		};
	}
	movieClip 5326	{
	}
	movieClip 5328	{
	}
	movieClip 5331	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.spokeToNarrator >= 7 && _root.Background.goDeeper.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'battle04A';
				_root.gotoAndStop('closeDeeper03');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 255 {
		stop();
	}
	frame 256 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 257 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 258 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'deeper04';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		if (workshopOpened == true) {
			Background.Doors.Door01._x -= 140;
			Background.Doors.Door02._x += 140;
			Background.ShadowMap.light.swapDepths(9);
			Background.ShadowMap.light.removeMovieClip();
		}
		Background.goDeeper02.onRelease = function () {
			if (!mission5Done) {
				convID = 'narrative1';
				talking = 1;
				if (gotHelena == true && workshopOpened == false) {
					convBranch = 46;
				}
				if (!gotHelena && workshopOpened == false) {
					convBranch = 47;
				}
				if (gotHelena == true && workshopOpened == true) {
					convBranch = 48;
				}
				if (!gotHelena && workshopOpened == true) {
					convBranch = 49;
				}
				conversation();
			}
			if (mission5Done == true) {
				goingtoScene = 'workshop07';
				gotoAndStop('switchDeeper04');
			}
		};
	}
	movieClip 5337	{
	}
	movieClip 5339	{
	}
	movieClip 5343	{
	}
	movieClip 5346	{
	}
	movieClip 5350	{
	}
	movieClip 5352	{
	}
	movieClip 5353	{
	}
	movieClip 5354	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.goDeeper01.hitTest(this._x, this._y, true)) {
				if (_root.beat05A == true) {
					_root.goingtoScene = 'workshop01';
				} else {
					_root.goingtoScene = 'battle05A';
				}
				_root.gotoAndStop('switchDeeper04');
			}
			if (_root.talking !== 1 && _root.Background.leaveCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'deeper02';
				_root.gotoAndStop('switchDeeper04');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 269 {
		stop();
	}
	frame 270 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 271 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		fadeOut.play();
	}
	frame 272 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'workshop01';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		Background.lamp01.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp01();
			}
		};
		Background.lamp02.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp02();
			}
		};
	}
	movieClip 5360	{
	}
	movieClip 5362	{
	}
	movieClip 5370	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
	}
	movieClip 5372	{
	}
	movieClip 5374	{
	}
	movieClip 5376	{
	}
	movieClip 5378	{
	}
	movieClip 5380	{
	}
	movieClip 5382	{
	}
	movieClip 5383	{
	}
	movieClip 5384	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.progress.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop02';
				_root.gotoAndStop('switchWorkshop01');
			}
			if (_root.talking !== 1 && _root.Background.leave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'deeper04';
				_root.gotoAndStop('switchWorkshop01');
			}
			if (_root.talking !== 1 && _root.Background.Patrol.hitTest(this._x, this._y, true)) {
				_root.Background.Patrol.stop();
				_root.goingtoScene = 'battle05B';
				_root.gotoAndStop('closeWorkshop01');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	frame 284 {
		stop();
	}
	frame 285 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 286 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 287 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'workshop02';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		Background.lamp03.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp03();
			}
		};
	}
	movieClip 5390	{
	}
	movieClip 5392	{
	}
	movieClip 5393	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.progress.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop03';
				_root.gotoAndStop('switchWorkshop02');
			}
			if (_root.talking !== 1 && _root.Background.leave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop01';
				_root.gotoAndStop('switchWorkshop02');
			}
			if (_root.talking !== 1 && _root.Background.Patrol.hitTest(this._x, this._y, true)) {
				_root.Background.Patrol.stop();
				_root.goingtoScene = 'battle05C';
				_root.gotoAndStop('closeWorkshop02');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	frame 299 {
		stop();
	}
	frame 300 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 301 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 302 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'workshop03';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		Background.lamp04.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp04();
			}
		};
		Background.lamp05.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp05();
			}
		};
	}
	movieClip 5399	{
	}
	movieClip 5401	{
	}
	movieClip 5402	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.progress.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop04';
				_root.gotoAndStop('switchWorkshop03');
			}
			if (_root.talking !== 1 && _root.Background.leave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop02';
				_root.gotoAndStop('switchWorkshop03');
			}
			if (_root.talking !== 1 && _root.Background.Patrol.hitTest(this._x, this._y, true)) {
				_root.Background.Patrol.stop();
				_root.goingtoScene = 'battle05D';
				_root.gotoAndStop('closeWorkshop03');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	frame 314 {
		stop();
	}
	frame 315 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 316 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 317 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'workshop04';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		Background.lamp06.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp06();
			}
		};
		Background.lamp07.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp07();
			}
		};
	}
	movieClip 5408	{
	}
	movieClip 5412	{
	}
	movieClip 5413	{
	}
	movieClip 5414	{
	}
	movieClip 5415	{
	}
	movieClip 5416	{
	}
	movieClip 5417	{
	}
	movieClip 5418	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.progress.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop05';
				_root.gotoAndStop('switchWorkshop04');
			}
			if (_root.talking !== 1 && _root.Background.leave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop03';
				_root.gotoAndStop('switchWorkshop04');
			}
			if (_root.talking !== 1 && _root.Background.Patrol.hitTest(this._x, this._y, true)) {
				_root.Background.Patrol.golem1.stop();
				_root.Background.Patrol.golem2.stop();
				_root.Background.Patrol.golem3.stop();
				_root.goingtoScene = 'battle05E';
				_root.gotoAndStop('closeWorkshop04');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5419	{
	}
	frame 329 {
		stop();
	}
	frame 330 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 331 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 332 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'workshop05';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		Background.lamp08.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp08();
			}
		};
		Background.lamp09.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp09();
			}
		};
		Background.lamp10.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp10();
			}
		};
	}
	movieClip 5425	{
	}
	movieClip 5428	{
	}
	movieClip 5429	{
	}
	movieClip 5430	{
	}
	movieClip 5431	{
	}
	movieClip 5432	{
	}
	movieClip 5433	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.progress.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop06';
				_root.gotoAndStop('switchWorkshop05');
			}
			if (_root.talking !== 1 && _root.Background.leave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop04';
				_root.gotoAndStop('switchWorkshop05');
			}
			if (_root.talking !== 1 && _root.Background.Patrol.hitTest(this._x, this._y, true)) {
				_root.Background.Patrol.golem1.stop();
				_root.Background.Patrol.golem2.stop();
				_root.Background.Patrol.golem3.stop();
				_root.goingtoScene = 'battle05F';
				_root.gotoAndStop('closeWorkshop05');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	frame 344 {
		stop();
	}
	frame 345 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 346 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 347 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'workshop06';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		pressed = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		Background.lamp04.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp04();
			}
		};
		Background.lamp05.onPress = function () {
			if (talking == 0 && _ymouse > 130 && _ymouse < 270 && _xmouse > 195 && _xmouse < 355) {
				changeFloorLamp05();
			}
		};
	}
	movieClip 5439	{
	}
	movieClip 5448	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
	}
	movieClip 5450	{
	}
	movieClip 5451	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.leave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'workshop05';
				_root.gotoAndStop('switchWorkshop06');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 359 {
		stop();
	}
	frame 360 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 361 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 362 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'workshop07';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		if (gotGrotius || spokeToTastidian >= 9) {
			Background.Grotius.swapDepths(9);
			Background.Grotius.removeMovieClip();
			Background.Collision.grotiusCollide.swapDepths(29);
			Background.Collision.grotiusCollide.removeMovieClip();
		}
		if (flintAttackType2 == 'steamengine') {
			Background.engine.swapDepths(10);
			Background.engine.removeMovieClip();
		}
		Background.engine.onPress = function () {
			if (talking == 0 && _ymouse > 150 && _ymouse < 250 && _xmouse > 190 && _xmouse < 360) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 50;
				conversation();
			}
		};
		Background.Book01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 12;
				conversation();
			}
		};
		Background.Book02.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 13;
				conversation();
			}
		};
		Background.junktable01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 9;
				conversation();
			}
		};
		Background.junktable02.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 9;
				conversation();
			}
		};
		Background.debris01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 9;
				conversation();
			}
		};
		Background.debris02.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 9;
				conversation();
			}
		};
		Background.debris03.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 9;
				conversation();
			}
		};
		Background.tools01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 10;
				conversation();
			}
		};
		Background.tools02.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 10;
				conversation();
			}
		};
		Background.tools03.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 10;
				conversation();
			}
		};
		Background.tools04.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 10;
				conversation();
			}
		};
		Background.tools05.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 10;
				conversation();
			}
		};
		Background.tools06.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 10;
				conversation();
			}
		};
		Background.golem1.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 11;
				conversation();
			}
		};
		Background.golem2.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 11;
				conversation();
			}
		};
		Background.golem3.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 11;
				conversation();
			}
		};
		Background.golem4.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 11;
				conversation();
			}
		};
		Background.golem5.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 11;
				conversation();
			}
		};
		Background.golem6.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 11;
				conversation();
			}
		};
		Background.golem7.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 11;
				conversation();
			}
		};
		Background.Grotius.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Grotius._x + Background._x - mainChar._x;
				delta_y = Background.Grotius._y + Background._y - mainChar._y;
				Background.Grotius._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'grotius0';
				if (spokeToGrotius == 1) {
					convBranch = 17;
				} else {
					convBranch = 1;
				}
				conversation();
			}
		};
	}
	movieClip 5458	{
	}
	movieClip 5462	{
	}
	movieClip 5463	{
	}
	movieClip 5465	{
	}
	movieClip 5468	{
	}
	movieClip 5469	{
	}
	movieClip 5471	{
	}
	movieClip 5474	{
	}
	movieClip 5475	{
	}
	movieClip 5476	{
	}
	movieClip 5478	{
	}
	movieClip 5480	{
	}
	movieClip 5481	{
	}
	movieClip 5483	{
	}
	movieClip 5484	{
	}
	movieClip 5485	{
	}
	movieClip 5487	{
	}
	movieClip 5489	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.Background.leave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'deeper04';
				_root.gotoAndStop('switchWorkshop07');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	instance fadeIn of movieClip 5028	{
		onClipEvent (load) {
			this.swapDepths(800);
		}
	}
	frame 374 {
		stop();
	}
	frame 375 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	instance pinholeClose of movieClip 3284 pinholeClose {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 376 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	instance fadeOut of movieClip 3285 fadeOut {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 377 {
		ConvBox.Clarifier._visible = false;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'lake01';
		autoSave();
		goingtoScene = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		HPdisplay();
		if (!mission5Done || spokeToTastidian < 9 || mission6Done == true) {
			Background.Pete.swapDepths(9);
			Background.Pete.removeMovieClip();
			Background.Collision.peteCollide.swapDepths(10);
			Background.Collision.peteCollide.removeMovieClip();
		}
		Background.Pete.onPress = function () {
			talking = 1;
			convID = 'pete1';
			convBranch = 1;
			if (chestsFound == 4) {
				convBranch = 6;
			}
			if (gotGreenOrb == true) {
				convBranch = 10;
			}
			conversation();
		};
	}
	movieClip 5495	{
	}
	movieClip 5498	{
	}
	movieClip 5507	{
	}
	movieClip 5514	{
	}
	movieClip 5516	{
	}
	movieClip 5517	{
	}
	movieClip 5518	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5519	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.goToMap.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'mapScreen';
				_root.gotoAndStop('closeLake01');
			}
			if (!_root.talking == 1 && _root.Background.goToBoat.hitTest(this._x, this._y, true)) {
				if (!_root.mission5Done) {
				}
				if (_root.mission5Done == true && !_root.beat06A) {
					_root.goingtoScene = 'battle06A';
					_root.gotoAndStop('switchLake01');
				}
			}
			if (_root.mission5Done == true && _root.Background.goToBoat2.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'lakeOpen';
				_root.gotoAndStop('closeLake01');
			}
			if (_root.Background.onGrass.hitTest(this._x, this._y, true)) {
				_root.floorType = 'grass';
			}
			if (_root.Background.onTile.hitTest(this._x, this._y, true)) {
				_root.floorType = 'tile';
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5520	{
	}
	movieClip 5524	{
	}
	movieClip 5525	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	instance fadeIn of movieClip 5028	{
		onClipEvent (load) {
			this.swapDepths(800);
		}
	}
	frame 387 {
		stop();
		fadeIn.removeMovieClip();
	}
	frame 388 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	instance pinholeClose of movieClip 3284 pinholeClose {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 389 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	instance fadeOut of movieClip 3285 fadeOut {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 390 {
		ConvBox.Clarifier._visible = false;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		lastscene = 'lake02';
		autoSave();
		goingtoScene = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		HPdisplay();
	}
	movieClip 5532	{
	}
	movieClip 5535	{
	}
	movieClip 5536	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.goToCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'lake03';
				_root.gotoAndStop('switchLake02');
			}
			if (_root.mission5Done == true && _root.Background.goToBoat2.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'lakeOpen';
				_root.gotoAndStop('closeLake02');
			}
			if (_root.Background.onGrass.hitTest(this._x, this._y, true)) {
				_root.floorType = 'grass';
			}
			if (_root.Background.onTile.hitTest(this._x, this._y, true)) {
				_root.floorType = 'tile';
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5537	{
	}
	movieClip 5539	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 400 {
		stop();
		fadeIn.removeMovieClip();
	}
	frame 401 {
		talking = 1;
		mainChar.gotoAndStop(1);
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 402 {
		talking = 1;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	frame 403 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		talking = 0;
		lastscene = 'lake03';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		if (!mission6Done || spokeToGrotius > 97 || spokeToTastidian >= 11) {
			Background.Cerzak.swapDepths(9);
			Background.Cerzak.removeMovieClip();
			Background.Collision.cerzakCollide.swapDepths(10);
			Background.Collision.cerzakCollide.removeMovieClip();
		}
		if (mission6Done == true || spokeToTastidian >= 11) {
			Background.DarkEye.swapDepths(9);
			Background.DarkEye.removeMovieClip();
			Background.Collision.darkEyeCollide.swapDepths(10);
			Background.Collision.darkEyeCollide.removeMovieClip();
		}
		Background.DarkEye.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.DarkEye._x + Background._x - mainChar._x;
				delta_y = Background.DarkEye._y + Background._y - mainChar._y;
				Background.DarkEye._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'darkeye1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Cerzak.onPress = function () {
			if (talking == 0) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 70;
				conversation();
			}
		};
	}
	movieClip 5545	{
	}
	movieClip 5552	{
	}
	movieClip 5567	{
	}
	movieClip 5568	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 5570	{
	}
	movieClip 5573	{
	}
	movieClip 5576	{
	}
	movieClip 5577	{
	}
	movieClip 5578	{
		frame 1 {
			stop();
		}
	}
	movieClip 5579	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.spokeToTastidian >= 11 && _root.Background.leaveCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'lake02';
				_root.gotoAndStop('switchLake03');
			} else {}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	frame 412 {
		stop();
	}
	frame 413 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 414 {
		talking = 1;
		fadeOut.play();
	}
	frame 415 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		cueScene = 'LakeAlto01';
		cutScene();
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		Background.Cerzak.onEnterFrame = function () {
			if (talking == 0) {
				talking = 1;
				convID = 'darkeye1';
				convBranch = 11;
				conversation();
			}
		};
	}
	movieClip 5581	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 424 {
		stop();
	}
	frame 425 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.swapDepths(89000);
		pinholeClose.play();
	}
	frame 426 {
		talking = 1;
		fadeOut.play();
	}
	frame 427 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		talking = 0;
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		pincushionGold = 0;
		timesStuck = 0;
		trainingCost = 0;
		HPdisplay();
		Background.DarkEye.onPress = function () {
			if (talking == 0) {
				talking = 1;
				convID = 'darkeye1';
				convBranch = 1;
				if (spokeToGrotius == 99) {
					convBranch = 8;
				}
				if (spokeToGrotius == 98) {
					convBranch = 10;
				}
				conversation();
			}
		};
	}
	movieClip 5586	{
	}
	movieClip 5587	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking !== 1 && _root.spokeToTastidian >= 11 && _root.Background.leaveCave.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'lake02';
				_root.gotoAndStop('switchLake03');
			} else {}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 436 {
		stop();
	}
	frame 437 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 438 {
		talking = 1;
		fadeOut.play();
	}
	frame 439 {
		function deriveStats2() {
			mainCharHP = 2 * mainCharPsyDefense;
			if (mainCharHP < 14) {
				mainCharHP = 14;
			}
			mainCharPsP = mainCharPsyDefense + mainCharPsyPower;
		}
		function countDead() {
			totalDead = 0;
			if (darklingDead == true && gotDarkling == true) {
				++totalDead;
			}
			if (shadowboxerDead == true && gotShadowboxer == true) {
				++totalDead;
			}
			if (festusDead == true && gotFestus == true) {
				++totalDead;
			}
			if (nivenDead == true && gotNiven == true) {
				++totalDead;
			}
			if (flintDead == true && gotFlint == true) {
				++totalDead;
			}
			if (helenaDead == true && gotHelena == true) {
				++totalDead;
			}
			if (grotiusDead == true && gotGrotius == true) {
				++totalDead;
			}
			if (anyaDead == true && gotAnya == true) {
				++totalDead;
			}
			if (guyDead == true && gotGuy == true) {
				++totalDead;
			}
			if (dorgonDead == true && gotDorgon == true) {
				++totalDead;
			}
			if (jackDead == true && gotJack == true) {
				++totalDead;
			}
			if (lucaDead == true && gotLuca == true) {
				++totalDead;
			}
			if (magellanDead == true && gotMagellan == true) {
				++totalDead;
			}
			if (xerxesDead == true && gotXerxes == true) {
				++totalDead;
			}
			if (gameDifficulty == 'easy') {
				reviveCost = totalDead * 20;
			}
			if (gameDifficulty == 'normal') {
				reviveCost = totalDead * 30;
			}
			if (gameDifficulty == 'hard') {
				reviveCost = totalDead * 40;
			}
			if (gameDifficulty == 'brutal') {
				reviveCost = totalDead * 50;
			}
		}
		function raiseDead() {
			money -= reviveCost;
			if (darklingDead == true && gotDarkling == true) {
				darklingDead = false;
			}
			if (shadowboxerDead == true && gotShadowboxer == true) {
				shadowboxerDead = false;
			}
			if (festusDead == true && gotFestus == true) {
				festusDead = false;
			}
			if (nivenDead == true && gotNiven == true) {
				nivenDead = false;
			}
			if (flintDead == true && gotFlint == true) {
				flintDead = false;
			}
			if (helenaDead == true && gotHelena == true) {
				helenaDead = false;
			}
			if (grotiusDead == true && gotGrotius == true) {
				grotiusDead = false;
			}
			if (anyaDead == true && gotAnya == true) {
				anyaDead = false;
			}
			if (guyDead == true && gotGuy == true) {
				guyDead = false;
			}
			if (dorgonDead == true && gotDorgon == true) {
				dorgonDead = false;
			}
			if (jackDead == true && gotJack == true) {
				jackDead = false;
			}
			if (lucaDead == true && gotLuca == true) {
				lucaDead = false;
			}
			if (magellanDead == true && gotMagellan == true) {
				magellanDead = false;
			}
			if (xerxesDead == true && gotXerxes == true) {
				xerxesDead = false;
			}
		}
		function levelUp() {
			--mainCharLeftToLevel;
			if (mainCharLeftToLevel == 0) {
				mainCharLeftToLevel = 3;
				++mainCharLevel;
				pointsleft = 1;
				levelUpMsg = mainCharName + ' is level ' + mainCharLevel + '!';
				leveling = true;
				levelBoxClosed = false;
				refreshMenu();
				playFanfareMusic();
			}
		}
		function newSkill() {
			if (leveler == 'mainChar1') {
				mainCharAttackType4 = 'vengeance';
				newSkillMsg = 'After intensive training, you have learned a powerful new attack, Vengeance! Select it in combat to suck damage out of yourself and rain it down on all who stand before you.';
			}
			if (leveler == 'Darkling1') {
				darklingAttackType2 = 'shadowport1';
				darklingMSLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has learned a powerful new ability, Shadowport! Select it in combat to \'jump\' over an occupied space.';
			}
			if (leveler == 'Darkling2') {
				darklingAttackType3 = 'shadowport2';
				darklingMSLevel = 2;
				newSkillMsg = 'After intensive training, Darkling has improved his Shadowport ability! Select Shadowport 2 in combat to \'jump\' over two spaces at once.';
			}
			if (leveler == 'Darkling3') {
				darklingAttackType4 = 'feedback';
				darklingFBLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has has learned a powerful new attack, Feedback! Select it in combat to suck damage out of Darkling and blast an enemy with it.';
			}
			if (leveler == 'Darkling4') {
				darklingResists = 'Shadow';
				newSkillMsg = 'After intensive training, Darkling has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Darkling5') {
				darklingAttackType4 = 'shadowblast';
				darklingPBLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has has learned a powerful new attack, Shadow Blast! Select it in combat to torpedo an enemy with explosive dark energy.';
			}
			if (leveler == 'Darkling6') {
				darklingPBLevel = 2;
				newSkillMsg = 'After intensive training, Darkling has improved his Shadow Blast attack! Shadow Blast is now at level 2.';
			}
			if (leveler == 'Shadowboxer1') {
				shadowboxerAttackType2 = 'shadowblast';
				shadowboxerPBLevel = 1;
				newSkillMsg = 'After intensive training, Shadowboxer has learned a powerful new attack, Shadow Blast! Select it in combat to torpedo an enemy with explosive dark energy.';
			}
			if (leveler == 'Shadowboxer2') {
				shadowboxerPBLevel = 2;
				newSkillMsg = 'After intensive training, Shadowboxer has improved his Shadow Blast attack! Shadow Blast is now at level 2.';
			}
			if (leveler == 'Shadowboxer3') {
				shadowboxerAttackType3 = 'darkvortex';
				shadowboxerFBLevel = 1;
				newSkillMsg = 'After intensive training, Shadowboxer has learned a powerful new attack, Dark Vortex! Select it in combat to unleash a cyclone of negative energy over a wide area.';
			}
			if (leveler == 'Shadowboxer4') {
				shadowboxerResists = 'Shadow';
				newSkillMsg = 'After intensive training, Shadowboxer has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Festus1') {
				festusAttackType3 = 'megashield';
				festusFBLevel = 1;
				newSkillMsg = 'After intensive training, Festus has learned a powerful new defense skill, Mega Shield! Select it in combat to vastly improve an ally\'s defense.';
			}
			if (leveler == 'Festus2') {
				festusMSLevel = 6;
				newSkillMsg = 'After intensive training, Festus has improved his Shield abilities! Mind Shield and Mega Shield are now at level 6.';
			}
			if (leveler == 'Festus3') {
				festusAttackType4 = 'bigshield';
				newSkillMsg = 'After intensive training, Festus has learned a powerful new defense skill, Big Shield! Select it in combat to boost the defenses of everyone around him.';
			}
			if (leveler == 'Festus4') {
				festusResists = 'Shadow';
				newSkillMsg = 'After intensive training, Festus has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Niven1') {
				nivenAttackType3 = 'trickshot';
				nivenPBLevel = 1;
				newSkillMsg = 'After intensive training, Niven has learned a powerful new attack, Trick Shot! Select it in combat to \'hook\' a knife 2 squares ahead and 1 to his right.';
			}
			if (leveler == 'Helena1') {
				helenaAttackType2 = 'whirlwind';
				helenaMBLevel = 1;
				if (helenaPsyPower == 5 || helenaPsyPower == 6) {
					helenaMBLevel = 2;
				}
				if (helenaPsyPower >= 7) {
					helenaMBLevel = 3;
				}
				newSkillMsg = 'After intensive training, Helena has learned a powerful new attack, Whirlwind! Select it in combat to spin and strike every surrounding enemy.';
			}
			if (leveler == 'Helena2') {
				helenaMBLevel = 2;
				newSkillMsg = 'After intensive training, Helena has improved her Whirlwind attack! Whirlwind is now at level 2.';
			}
			if (leveler == 'Helena3') {
				helenaMBLevel = 3;
				newSkillMsg = 'After intensive training, Helena has improved her Whirlwind attack! Whirlwind is now at level 3.';
			}
			if (leveler == 'Grotius1') {
				grotiusPBLevel = 4;
				newSkillMsg = 'After intensive training, Grotius has improved his Frost Blast attack! Frost Blast is now at level 4.';
			}
			if (leveler == 'Grotius2') {
				grotiusAttackType3 = 'frostblast2';
				newSkillMsg = 'After intensive training, Grotius has improved his Frost Blast attack! Select Frost Blast 2 in combat to ice over enemies up to three squares away.';
			}
			if (leveler == 'Grotius3') {
				grotiusAttackType4 = 'frostshield';
				newSkillMsg = 'After intensive training, Grotius has learned a powerful new defense skill, Frost Shield! Select it in combat to numb an ally to the effects of cold-based attacks.';
			}
			if (leveler == 'Grotius4') {
				grotiusHP += 4;
				newSkillMsg = 'After intensive training, Grotius has developed the passive ability Frost Armor! He is now more difficult to kill in combat.';
			}
			if (leveler == 'Anya1') {
				anyaAttackType3 = 'megashield';
				anyaFBLevel = 1;
				newSkillMsg = 'After intensive training, Anya has learned a powerful new defense skill, Mega Shield! Select it in combat to vastly improve an ally\'s defense.';
			}
			if (leveler == 'Anya2') {
				anyaMSLevel = 6;
				newSkillMsg = 'After intensive training, Anya has improved her Shield abilities! Mind Shield and Mega Shield are now at level 6.';
			}
			if (leveler == 'Anya3') {
				anyaAttackType4 = 'bigshield';
				newSkillMsg = 'After intensive training, Anya has learned a powerful new defense skill, Big Shield! Select it in combat to boost the defenses of everyone around her.';
			}
			if (leveler == 'Anya4') {
				anyaResists = 'Light';
				newSkillMsg = 'After intensive training, Anya has developed Light Resistance, a group of techniques that make her particularly resistant to Light attacks.';
			}
			if (leveler == 'Guy1') {
				guyAttackType3 = 'pyrohail';
				guyFBLevel = 1;
				newSkillMsg = 'After intensive training, Guy has learned a powerful new attack, Pyro Hail! Select it in combat to rain down fireballs over a small, t-shaped area.';
			}
			if (leveler == 'Guy4') {
				guyResists = 'Heat';
				newSkillMsg = 'After intensive training, Guy has developed Heat Resistance, a group of techniques that make him particularly resistant to Fire attacks.';
			}
			if (leveler == 'Jack1') {
				jackAttackType2 = 'snakeeyes';
				jackMBLevel = 1;
				newSkillMsg = 'After intensive training, Jack has learned a powerful new attack, Snake Eyes! Select it in combat to take a chance on dealing massive damage.';
			}
			if (leveler == 'Jack2') {
				jackAttackType3 = 'mindshield';
				jackMSLevel = 1;
				newSkillMsg = 'After intensive training, Jack has learned a new defense skill, Mind Shield! Select it in combat to improve an ally\'s defense.';
			}
			attachMovie('newSkillBox', 'newSkillBox', 610);
			newSkillBox._x = 79;
			newSkillBox._y = 57;
			ConvBox.hideButtons();
			playFanfareMusic();
		}
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		levelBoxClosed = true;
		newSkillBoxClosed = true;
		refreshMenu();
		lastscene = 'acad01';
		autoSave();
		goingtoScene = '';
		saveDisplay = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		mainChar.onEnterFrame = function () {
			if (Background.BldgNW.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameNW._visible = false;
				Overhead.BldgNW._visible = false;
			}
			if (Background.BldgNW.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameNW._visible = true;
				Overhead.BldgNW._visible = true;
			}
			if (Background.BldgNE.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameNE._visible = false;
				Overhead.BldgNE._visible = false;
			}
			if (Background.BldgNE.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameNE._visible = true;
				Overhead.BldgNE._visible = true;
			}
			if (Background.BldgSW.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameSW._visible = false;
				Overhead.BldgSW._visible = false;
			}
			if (Background.BldgSW.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameSW._visible = true;
				Overhead.BldgSW._visible = true;
			}
			if (Background.BldgSE.entryTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameSE._visible = false;
				Overhead.BldgSE._visible = false;
			}
			if (Background.BldgSE.exitTrigger.hitTest(mainChar._x, mainChar._y, true)) {
				Background.DoorFrameSE._visible = true;
				Overhead.BldgSE._visible = true;
			}
			if (Background.BldgNW.stairsW.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02NW_W';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgNW.stairsE.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02NW_E';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgNE.stairsW.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02NE_W';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgNE.stairsE.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02NE_E';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgNE.stairsSE.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02NE_SE';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgSW.stairsW.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02SW_W';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgSW.stairsE.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02SW_E';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgSE.stairsW.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02SE_W';
				gotoAndStop('switchAcad01');
			}
			if (Background.BldgSE.stairsE.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'acad02SE_E';
				gotoAndStop('switchAcad01');
			}
		};
		Background.closedSign.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 21;
				conversation();
			}
		};
		Background.Gate_N.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 14;
				conversation();
			}
		};
		Background.Gate_S.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 15;
				conversation();
			}
		};
		Background.Gate_W.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 15;
				conversation();
			}
		};
		Background.Gate_E.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 15;
				conversation();
			}
		};
		Background.Piter.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Piter._x + Background._x - mainChar._x;
				delta_y = Background.Piter._y + Background._y - mainChar._y;
				Background.Piter._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'piter1';
				convBranch = 1;
				if (spokeToPiter == 1) {
					convBranch = 11;
				} else {
					if (spokeToPiter == 3) {
						convBranch = 12;
					} else {
						playDavidMusic();
					}
				}
				conversation();
			}
		};
		Background.Fredrik.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Fredrik._x + Background._x - mainChar._x;
				delta_y = Background.Fredrik._y + Background._y - mainChar._y;
				Background.Fredrik._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'fredrik1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard1.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard1._x + Background._x - mainChar._x;
				delta_y = Background.Guard1._y + Background._y - mainChar._y;
				Background.Guard1._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard2.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard2._x + Background._x - mainChar._x;
				delta_y = Background.Guard2._y + Background._y - mainChar._y;
				Background.Guard2._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard3.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard3._x + Background._x - mainChar._x;
				delta_y = Background.Guard3._y + Background._y - mainChar._y;
				Background.Guard3._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard4.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard4._x + Background._x - mainChar._x;
				delta_y = Background.Guard4._y + Background._y - mainChar._y;
				Background.Guard4._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard5.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard5._x + Background._x - mainChar._x;
				delta_y = Background.Guard5._y + Background._y - mainChar._y;
				Background.Guard5._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard6.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard6._x + Background._x - mainChar._x;
				delta_y = Background.Guard6._y + Background._y - mainChar._y;
				Background.Guard6._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Guard7.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guard7._x + Background._x - mainChar._x;
				delta_y = Background.Guard7._y + Background._y - mainChar._y;
				Background.Guard7._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Alvin.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Alvin._x + Background._x - mainChar._x;
				delta_y = Background.Alvin._y + Background._y - mainChar._y;
				Background.Alvin._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'alvin1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Karli.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Karli._x + Background._x - mainChar._x;
				delta_y = Background.Karli._y + Background._y - mainChar._y;
				Background.Karli._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'karli1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Amanda.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Amanda._x + Background._x - mainChar._x;
				delta_y = Background.Amanda._y + Background._y - mainChar._y;
				Background.Amanda._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'amanda1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Jack.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Jack._x + Background._x - mainChar._x;
				delta_y = Background.Jack._y + Background._y - mainChar._y;
				Background.Jack._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'jack1';
				if (spokeToJack == 0) {
					convBranch = 1;
				}
				if (spokeToJack > 0 && spokeToJack < 3) {
					convBranch = 10;
				}
				if (spokeToJack == 3) {
					convBranch = 11;
				}
				if (spokeToJack == 4) {
					convBranch = 14;
				}
				conversation();
			}
		};
	}
	movieClip 5594	{
	}
	movieClip 5598	{
	}
	movieClip 5601	{
	}
	movieClip 5604	{
	}
	movieClip 5606	{
	}
	movieClip 5608	{
	}
	movieClip 5610	{
	}
	movieClip 5612	{
	}
	movieClip 5614	{
	}
	movieClip 5617	{
	}
	movieClip 5621	{
	}
	movieClip 5624	{
	}
	movieClip 5625	{
	}
	movieClip 5627	{
	}
	movieClip 5631	{
	}
	movieClip 5632	{
	}
	movieClip 5634	{
	}
	movieClip 5636	{
	}
	movieClip 5641	{
	}
	movieClip 5642	{
	}
	movieClip 5643	{
	}
	movieClip 5644	{
		frame 1 {
			stop();
		}
	}
	movieClip 5658	{
	}
	movieClip 5659	{
		frame 1 {
			stop();
		}
		instance of movieClip 5658	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 5660	{
	}
	movieClip 5661	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5662	{
		frame 1 {
			stop();
		}
		instance of movieClip 236	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 5663	{
	}
	movieClip 5664	{
		frame 1 {
			stop();
		}
	}
	movieClip 5665	{
	}
	movieClip 5666	{
		frame 1 {
			stop();
		}
	}
	movieClip 5668	{
	}
	movieClip 5669	{
	}
	movieClip 5670	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5672	{
	}
	movieClip 5673	{
	}
	movieClip 5674	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5675	{
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5682	{
	}
	movieClip 5684	{
	}
	movieClip 5686	{
	}
	movieClip 5687	{
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 448 {
		stop();
	}
	frame 449 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 450 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		fadeOut.play();
	}
	frame 451 {
		function deriveStats2() {
			mainCharHP = 2 * mainCharPsyDefense;
			if (mainCharHP < 14) {
				mainCharHP = 14;
			}
			mainCharPsP = mainCharPsyDefense + mainCharPsyPower;
		}
		function countDead() {
			totalDead = 0;
			if (darklingDead == true && gotDarkling == true) {
				++totalDead;
			}
			if (shadowboxerDead == true && gotShadowboxer == true) {
				++totalDead;
			}
			if (festusDead == true && gotFestus == true) {
				++totalDead;
			}
			if (nivenDead == true && gotNiven == true) {
				++totalDead;
			}
			if (flintDead == true && gotFlint == true) {
				++totalDead;
			}
			if (helenaDead == true && gotHelena == true) {
				++totalDead;
			}
			if (grotiusDead == true && gotGrotius == true) {
				++totalDead;
			}
			if (anyaDead == true && gotAnya == true) {
				++totalDead;
			}
			if (guyDead == true && gotGuy == true) {
				++totalDead;
			}
			if (dorgonDead == true && gotDorgon == true) {
				++totalDead;
			}
			if (jackDead == true && gotJack == true) {
				++totalDead;
			}
			if (lucaDead == true && gotLuca == true) {
				++totalDead;
			}
			if (magellanDead == true && gotMagellan == true) {
				++totalDead;
			}
			if (xerxesDead == true && gotXerxes == true) {
				++totalDead;
			}
			if (gameDifficulty == 'easy') {
				reviveCost = totalDead * 20;
			}
			if (gameDifficulty == 'normal') {
				reviveCost = totalDead * 30;
			}
			if (gameDifficulty == 'hard') {
				reviveCost = totalDead * 40;
			}
			if (gameDifficulty == 'brutal') {
				reviveCost = totalDead * 50;
			}
		}
		function raiseDead() {
			money -= reviveCost;
			if (darklingDead == true && gotDarkling == true) {
				darklingDead = false;
			}
			if (shadowboxerDead == true && gotShadowboxer == true) {
				shadowboxerDead = false;
			}
			if (festusDead == true && gotFestus == true) {
				festusDead = false;
			}
			if (nivenDead == true && gotNiven == true) {
				nivenDead = false;
			}
			if (flintDead == true && gotFlint == true) {
				flintDead = false;
			}
			if (helenaDead == true && gotHelena == true) {
				helenaDead = false;
			}
			if (grotiusDead == true && gotGrotius == true) {
				grotiusDead = false;
			}
			if (anyaDead == true && gotAnya == true) {
				anyaDead = false;
			}
			if (guyDead == true && gotGuy == true) {
				guyDead = false;
			}
			if (dorgonDead == true && gotDorgon == true) {
				dorgonDead = false;
			}
			if (jackDead == true && gotJack == true) {
				jackDead = false;
			}
			if (lucaDead == true && gotLuca == true) {
				lucaDead = false;
			}
			if (magellanDead == true && gotMagellan == true) {
				magellanDead = false;
			}
			if (xerxesDead == true && gotXerxes == true) {
				xerxesDead = false;
			}
		}
		function levelUp() {
			--mainCharLeftToLevel;
			if (mainCharLeftToLevel == 0) {
				mainCharLeftToLevel = 3;
				++mainCharLevel;
				pointsleft = 1;
				levelUpMsg = mainCharName + ' is level ' + mainCharLevel + '!';
				leveling = true;
				levelBoxClosed = false;
				refreshMenu();
				playFanfareMusic();
			}
		}
		function newSkill() {
			if (leveler == 'mainChar1') {
				mainCharAttackType4 = 'vengeance';
				newSkillMsg = 'After intensive training, you have learned a powerful new attack, Vengeance! Select it in combat to suck damage out of yourself and rain it down on all who stand before you.';
			}
			if (leveler == 'Darkling1') {
				darklingAttackType2 = 'shadowport1';
				darklingMSLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has learned a powerful new ability, Shadowport! Select it in combat to \'jump\' over an occupied space.';
			}
			if (leveler == 'Darkling2') {
				darklingAttackType3 = 'shadowport2';
				darklingMSLevel = 2;
				newSkillMsg = 'After intensive training, Darkling has improved his Shadowport ability! Select Shadowport 2 in combat to \'jump\' over two spaces at once.';
			}
			if (leveler == 'Darkling3') {
				darklingAttackType4 = 'feedback';
				darklingFBLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has has learned a powerful new attack, Feedback! Select it in combat to suck damage out of Darkling and blast an enemy with it.';
			}
			if (leveler == 'Darkling4') {
				darklingResists = 'Shadow';
				newSkillMsg = 'After intensive training, Darkling has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Darkling5') {
				darklingAttackType4 = 'shadowblast';
				darklingPBLevel = 1;
				newSkillMsg = 'After intensive training, Darkling has has learned a powerful new attack, Shadow Blast! Select it in combat to torpedo an enemy with explosive dark energy.';
			}
			if (leveler == 'Darkling6') {
				darklingPBLevel = 2;
				newSkillMsg = 'After intensive training, Darkling has improved his Shadow Blast attack! Shadow Blast is now at level 2.';
			}
			if (leveler == 'Shadowboxer1') {
				shadowboxerAttackType2 = 'shadowblast';
				shadowboxerPBLevel = 1;
				newSkillMsg = 'After intensive training, Shadowboxer has learned a powerful new attack, Shadow Blast! Select it in combat to torpedo an enemy with explosive dark energy.';
			}
			if (leveler == 'Shadowboxer2') {
				shadowboxerPBLevel = 2;
				newSkillMsg = 'After intensive training, Shadowboxer has improved his Shadow Blast attack! Shadow Blast is now at level 2.';
			}
			if (leveler == 'Shadowboxer3') {
				shadowboxerAttackType3 = 'darkvortex';
				shadowboxerFBLevel = 1;
				newSkillMsg = 'After intensive training, Shadowboxer has learned a powerful new attack, Dark Vortex! Select it in combat to unleash a cyclone of negative energy over a wide area.';
			}
			if (leveler == 'Shadowboxer4') {
				shadowboxerResists = 'Shadow';
				newSkillMsg = 'After intensive training, Shadowboxer has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Festus1') {
				festusAttackType3 = 'megashield';
				festusFBLevel = 1;
				newSkillMsg = 'After intensive training, Festus has learned a powerful new defense skill, Mega Shield! Select it in combat to vastly improve an ally\'s defense.';
			}
			if (leveler == 'Festus2') {
				festusMSLevel = 6;
				newSkillMsg = 'After intensive training, Festus has improved his Shield abilities! Mind Shield and Mega Shield are now at level 6.';
			}
			if (leveler == 'Festus3') {
				festusAttackType4 = 'bigshield';
				newSkillMsg = 'After intensive training, Festus has learned a powerful new defense skill, Big Shield! Select it in combat to boost the defenses of everyone around him.';
			}
			if (leveler == 'Festus4') {
				festusResists = 'Shadow';
				newSkillMsg = 'After intensive training, Festus has developed Shadow Resistance, a group of techniques that make him particularly resistant to Shadow attacks.';
			}
			if (leveler == 'Niven1') {
				nivenAttackType3 = 'trickshot';
				nivenPBLevel = 1;
				newSkillMsg = 'After intensive training, Niven has learned a powerful new attack, Trick Shot! Select it in combat to \'hook\' a knife 2 squares ahead and 1 to his right.';
			}
			if (leveler == 'Helena1') {
				helenaAttackType2 = 'whirlwind';
				helenaMBLevel = 1;
				if (helenaPsyPower == 5 || helenaPsyPower == 6) {
					helenaMBLevel = 2;
				}
				if (helenaPsyPower >= 7) {
					helenaMBLevel = 3;
				}
				newSkillMsg = 'After intensive training, Helena has learned a powerful new attack, Whirlwind! Select it in combat to spin and strike every surrounding enemy.';
			}
			if (leveler == 'Helena2') {
				helenaMBLevel = 2;
				newSkillMsg = 'After intensive training, Helena has improved her Whirlwind attack! Whirlwind is now at level 2.';
			}
			if (leveler == 'Helena3') {
				helenaMBLevel = 3;
				newSkillMsg = 'After intensive training, Helena has improved her Whirlwind attack! Whirlwind is now at level 3.';
			}
			if (leveler == 'Grotius1') {
				grotiusPBLevel = 4;
				newSkillMsg = 'After intensive training, Grotius has improved his Frost Blast attack! Frost Blast is now at level 4.';
			}
			if (leveler == 'Grotius2') {
				grotiusAttackType3 = 'frostblast2';
				newSkillMsg = 'After intensive training, Grotius has improved his Frost Blast attack! Select Frost Blast 2 in combat to ice over enemies up to three squares away.';
			}
			if (leveler == 'Grotius3') {
				grotiusAttackType4 = 'frostshield';
				newSkillMsg = 'After intensive training, Grotius has learned a powerful new defense skill, Frost Shield! Select it in combat to numb an ally to the effects of cold-based attacks.';
			}
			if (leveler == 'Grotius4') {
				grotiusHP += 4;
				newSkillMsg = 'After intensive training, Grotius has developed the passive ability Frost Armor! He is now more difficult to kill in combat.';
			}
			if (leveler == 'Anya1') {
				anyaAttackType3 = 'megashield';
				anyaFBLevel = 1;
				newSkillMsg = 'After intensive training, Anya has learned a powerful new defense skill, Mega Shield! Select it in combat to vastly improve an ally\'s defense.';
			}
			if (leveler == 'Anya2') {
				anyaMSLevel = 6;
				newSkillMsg = 'After intensive training, Anya has improved her Shield abilities! Mind Shield and Mega Shield are now at level 6.';
			}
			if (leveler == 'Anya3') {
				anyaAttackType4 = 'bigshield';
				newSkillMsg = 'After intensive training, Anya has learned a powerful new defense skill, Big Shield! Select it in combat to boost the defenses of everyone around her.';
			}
			if (leveler == 'Anya4') {
				anyaResists = 'Light';
				newSkillMsg = 'After intensive training, Anya has developed Light Resistance, a group of techniques that make her particularly resistant to Light attacks.';
			}
			if (leveler == 'Guy1') {
				guyAttackType3 = 'pyrohail';
				guyFBLevel = 1;
				newSkillMsg = 'After intensive training, Guy has learned a powerful new attack, Pyro Hail! Select it in combat to rain down fireballs over a small, t-shaped area.';
			}
			if (leveler == 'Guy4') {
				guyResists = 'Heat';
				newSkillMsg = 'After intensive training, Guy has developed Heat Resistance, a group of techniques that make him particularly resistant to Fire attacks.';
			}
			if (leveler == 'Jack1') {
				jackAttackType2 = 'snakeeyes';
				jackMBLevel = 1;
				newSkillMsg = 'After intensive training, Jack has learned a powerful new attack, Snake Eyes! Select it in combat to take a chance on dealing massive damage.';
			}
			if (leveler == 'Jack2') {
				jackAttackType3 = 'mindshield';
				jackMSLevel = 1;
				newSkillMsg = 'After intensive training, Jack has learned a new defense skill, Mind Shield! Select it in combat to improve an ally\'s defense.';
			}
			attachMovie('newSkillBox', 'newSkillBox', 610);
			newSkillBox._x = 79;
			newSkillBox._y = 57;
			ConvBox.hideButtons();
			playFanfareMusic();
		}
		ConvBox.Clarifier._visible = false;
		menuclosed = true;
		convBoxClosed = true;
		levelBoxClosed = true;
		newSkillBoxClosed = true;
		refreshMenu();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		newSkillMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		leveler = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		trainingCost = 0;
		HPdisplay();
		autoSave();
		if (gotBlueOrb && gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BOBlW');
		}
		if (gotBlueOrb && gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BOBl');
		}
		if (gotBlueOrb && gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BOW');
		}
		if (!gotBlueOrb && gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('OBlW');
		}
		if (gotBlueOrb && !gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BBlW');
		}
		if (gotBlueOrb && gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BO');
		}
		if (gotBlueOrb && !gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BBl');
		}
		if (gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BW');
		}
		if (!gotBlueOrb && gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('OBl');
		}
		if (!gotBlueOrb && gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('OW');
		}
		if (!gotBlueOrb && !gotOrangeOrb && gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('BlW');
		}
		if (!gotBlueOrb && !gotOrangeOrb && gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('Bl');
		}
		if (!gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && gotWhiteOrb) {
			Background.orbTable.gotoAndStop('W');
		}
		if (!gotBlueOrb && gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('O');
		}
		if (gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('B');
		}
		if (!gotBlueOrb && !gotOrangeOrb && !gotBlackOrb && !gotWhiteOrb) {
			Background.orbTable.gotoAndStop('none');
		}
		if (gotGreenOrb && gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BOBlW');
		}
		if (gotGreenOrb && gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BOBl');
		}
		if (gotGreenOrb && gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BOW');
		}
		if (!gotGreenOrb && gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('OBlW');
		}
		if (gotGreenOrb && !gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BBlW');
		}
		if (gotGreenOrb && gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BO');
		}
		if (gotGreenOrb && !gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BBl');
		}
		if (gotGreenOrb && !gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BW');
		}
		if (!gotGreenOrb && gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('OBl');
		}
		if (!gotGreenOrb && gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('OW');
		}
		if (!gotGreenOrb && !gotRedOrb && gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('BlW');
		}
		if (!gotGreenOrb && !gotRedOrb && gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('Bl');
		}
		if (!gotGreenOrb && !gotRedOrb && !gotIndigoOrb && gotYellowOrb) {
			Background.orbTable2.gotoAndStop('W');
		}
		if (!gotGreenOrb && gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('O');
		}
		if (gotGreenOrb && !gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('B');
		}
		if (!gotGreenOrb && !gotRedOrb && !gotIndigoOrb && !gotYellowOrb) {
			Background.orbTable2.gotoAndStop('none');
		}
		Background.Bed01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				if (spokeToPiter == 1) {
					convBranch = 71;
				} else {
					convBranch = 17;
				}
				conversation();
			}
		};
		Background.Bed02.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 19;
				conversation();
			}
		};
		Background.Chest01.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				if (spokeToDavid == 1) {
					convBranch = 72;
				} else {
					convBranch = 20;
				}
				conversation();
			}
		};
		Background.orbTable.blue.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 51;
				conversation();
			}
		};
		Background.orbTable.orange.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 52;
				conversation();
			}
		};
		Background.orbTable.black.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 53;
				conversation();
			}
		};
		Background.orbTable.white.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 54;
				conversation();
			}
		};
		Background.orbTable2.green.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 55;
				conversation();
			}
		};
		Background.orbTable2.red.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 56;
				conversation();
			}
		};
		Background.orbTable2.yellow.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 57;
				conversation();
			}
		};
		Background.orbTable2.indigo.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 58;
				conversation();
			}
		};
		Background.DeanLukas.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.DeanLukas._x + Background._x - mainChar._x;
				delta_y = Background.DeanLukas._y + Background._y - mainChar._y;
				Background.DeanLukas._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'dean1';
				convBranch = 1;
				conversation();
			}
		};
		Background.David.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.David._x + Background._x - mainChar._x;
				delta_y = Background.David._y + Background._y - mainChar._y;
				Background.David._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'david1';
				convBranch = 1;
				if (spokeToPiter > 0) {
					convBranch = 4;
				}
				if (spokeToDavid == 1) {
					convBranch = 10;
				}
				if (spokeToDavid == 2) {
					convBranch = 11;
				}
				conversation();
			}
		};
		Background.Aram.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Aram._x + Background._x - mainChar._x;
				delta_y = Background.Aram._y + Background._y - mainChar._y;
				Background.Aram._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'trainer1';
				convBranch = 9;
				conversation();
			}
		};
		Background.Guy.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Guy._x + Background._x - mainChar._x;
				delta_y = Background.Guy._y + Background._y - mainChar._y;
				Background.Guy._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guy2';
				convBranch = 1;
				conversation();
			}
		};
		Background.Anya.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Anya._x + Background._x - mainChar._x;
				delta_y = Background.Anya._y + Background._y - mainChar._y;
				Background.Anya._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'anya2';
				convBranch = 1;
				conversation();
			}
		};
		Background.Bookseller.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Bookseller._x + Background._x - mainChar._x;
				delta_y = Background.Bookseller._y + Background._y - mainChar._y;
				Background.Bookseller._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'bookseller1';
				convBranch = 1;
				conversation();
			}
		};
		Background.Druggist.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Druggist._x + Background._x - mainChar._x;
				delta_y = Background.Druggist._y + Background._y - mainChar._y;
				Background.Druggist._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'druggist1';
				convBranch = 1;
				conversation();
			}
		};
		Background.BookstoreGuard.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.BookstoreGuard._x + Background._x - mainChar._x;
				delta_y = Background.BookstoreGuard._y + Background._y - mainChar._y;
				Background.BookstoreGuard._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard2';
				convBranch = 11;
				conversation();
			}
		};
		Background.DrugstoreGuard.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.DrugstoreGuard._x + Background._x - mainChar._x;
				delta_y = Background.DrugstoreGuard._y + Background._y - mainChar._y;
				Background.DrugstoreGuard._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'guard2';
				convBranch = 11;
				conversation();
			}
		};
		Background.BarGuard1.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'guard2';
				convBranch = 1;
				conversation();
			}
		};
		Background.BarGuard2.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'guard2';
				convBranch = 3;
				conversation();
			}
		};
		Background.BarGuard3.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'guard2';
				convBranch = 5;
				conversation();
			}
		};
		Background.BarGuard4.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'guard2';
				convBranch = 6;
				conversation();
			}
		};
		Background.BarGuard5.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				talking = 1;
				convID = 'guard2';
				convBranch = 7;
				conversation();
			}
		};
		Background.Jack.onPress = function () {
			if (talking == 0 && _ymouse > 100 && _ymouse < 300 && _xmouse > 135 && _xmouse < 415) {
				delta_x = Background.Jack._x + Background._x - mainChar._x;
				delta_y = Background.Jack._y + Background._y - mainChar._y;
				Background.Jack._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433;
				talking = 1;
				convID = 'jack1';
				if (spokeToJack == 0) {
					convBranch = 1;
				}
				if (spokeToJack > 0 && spokeToJack < 3) {
					convBranch = 10;
				}
				if (spokeToJack == 3) {
					convBranch = 11;
				}
				if (spokeToJack == 4) {
					convBranch = 14;
				}
				conversation();
			}
		};
	}
	movieClip 5693	{
	}
	movieClip 5695	{
	}
	movieClip 5698	{
	}
	movieClip 5699	{
	}
	movieClip 5702	{
	}
	movieClip 5704	{
	}
	movieClip 5707	{
	}
	movieClip 5708	{
	}
	movieClip 5709	{
	}
	movieClip 5712	{
	}
	movieClip 5713	{
	}
	movieClip 5714	{
	}
	movieClip 5722	{
	}
	movieClip 5729	{
	}
	movieClip 5735	{
	}
	movieClip 5737	{
	}
	movieClip 5739	{
	}
	movieClip 5742	{
	}
	movieClip 5747	{
	}
	movieClip 5748	{
	}
	movieClip 5750	{
	}
	movieClip 5751	{
	}
	movieClip 5752	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5754	{
	}
	movieClip 5756	{
	}
	movieClip 5759	{
	}
	movieClip 5762	{
	}
	movieClip 5764	{
	}
	movieClip 5766	{
	}
	movieClip 5780	{
	}
	movieClip 5781	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5783	{
	}
	movieClip 5789	{
	}
	movieClip 5790	{
	}
	movieClip 5793	{
	}
	movieClip 5796	{
	}
	movieClip 5797	{
		frame 1 {
			stop();
		}
		instance of movieClip 302	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 5798	{
	}
	movieClip 5799	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	movieClip 5802	{
	}
	movieClip 5804	{
	}
	movieClip 5807	{
	}
	movieClip 5808	{
	}
	movieClip 5809	{
		frame 1 {
			stop();
		}
	}
	movieClip 5810	{
		frame 1 {
			_root.lastscene = 'acad02NW_W';
		}
		frame 9 {
			_root.lastscene = 'acad02NW_E';
		}
		instance of movieClip 5707	{
			onClipEvent (release) {
			}
		}
		instance of movieClip 3726	{
			onClipEvent (release) {
			}
		}
		instance of movieClip 3726	{
			onClipEvent (release) {
			}
		}
		frame 18 {
			_root.lastscene = 'acad02NE_W';
		}
		frame 27 {
			_root.lastscene = 'acad02NE_E';
		}
		frame 36 {
			_root.lastscene = 'acad02NE_SE';
		}
		frame 45 {
			_root.lastscene = 'acad02SW_W';
		}
		frame 54 {
			_root.lastscene = 'acad02SW_E';
		}
		frame 63 {
			_root.lastscene = 'acad02SE_W';
		}
		frame 72 {
			_root.lastscene = 'acad02SE_E';
		}
		frame 81 {
			_root.lastscene = 'acad02NE_E2';
		}
	}
	instance mainChar of movieClip 4222	{
		onClipEvent (load) {
			movespeed = 0;
			this.gotoAndStop(1);
		}
		onClipEvent (enterFrame) {
			if (!_root.talking == 1 && _root.Background.leaveRoomNW_W.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01NW_W';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomNW_E.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01NW_E';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomNE_W.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01NE_W';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomNE_E.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01NE_E';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomNE_SE.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01NE_SE';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomSW_W.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01SW_W';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomSW_E.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01SW_E';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomSE_W.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01SE_W';
				_root.gotoAndStop('switchAcad02');
			}
			if (!_root.talking == 1 && _root.Background.leaveRoomSE_E.hitTest(this._x, this._y, true)) {
				_root.goingtoScene = 'acad01SE_E';
				_root.gotoAndStop('switchAcad02');
			}
		}
		onClipEvent (enterFrame) {
			if (_root.talking == 0) {
				if (!Key.isDown(68) && !Key.isDown(65) && !Key.isDown(87) && !Key.isDown(83) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
					this.gotoAndStop(1);
				}
				if (Key.isDown(68)) {
					_rotation = 270;
				}
				if (Key.isDown(39)) {
					_rotation = 270;
				}
				if (Key.isDown(65)) {
					_rotation = 90;
				}
				if (Key.isDown(37)) {
					_rotation = 90;
				}
				if (Key.isDown(87)) {
					_rotation = 180;
				}
				if (Key.isDown(38)) {
					_rotation = 180;
				}
				if (Key.isDown(83)) {
					_rotation = 0;
				}
				if (Key.isDown(40)) {
					_rotation = 0;
				}
				if (Key.isDown(68) && Key.isDown(87)) {
					_rotation = 225;
				}
				if (Key.isDown(39) && Key.isDown(38)) {
					_rotation = 225;
				}
				if (Key.isDown(65) && Key.isDown(87)) {
					_rotation = 135;
				}
				if (Key.isDown(37) && Key.isDown(38)) {
					_rotation = 135;
				}
				if (Key.isDown(68) && Key.isDown(83)) {
					_rotation = 315;
				}
				if (Key.isDown(39) && Key.isDown(40)) {
					_rotation = 315;
				}
				if (Key.isDown(65) && Key.isDown(83)) {
					_rotation = 45;
				}
				if (Key.isDown(37) && Key.isDown(40)) {
					_rotation = 45;
				}
				if ((Key.isDown(68) || Key.isDown(39)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x -= movespeed;
					_root.Background._x -= movespeed;
				}
				if ((Key.isDown(65) || Key.isDown(37)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._x += movespeed;
					_root.Background._x += movespeed;
				}
				if ((Key.isDown(87) || Key.isDown(38)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y += movespeed;
					_root.Background._y += movespeed;
				}
				if ((Key.isDown(83) || Key.isDown(40)) && !Key.isDown(16) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
					this.gotoAndStop(2);
					movespeed = _root.mcWalkSpeed;
					_root.Overhead._y -= movespeed;
					_root.Background._y -= movespeed;
				}
				if (Key.isDown(16)) {
					if ((Key.isDown(68) || Key.isDown(39)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
					if ((Key.isDown(65) || Key.isDown(37)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
					if ((Key.isDown(87) || Key.isDown(38)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
					if ((Key.isDown(83) || Key.isDown(40)) && !_root.Background.Collision.hitTest(this._x, this._y, true)) {
						this.gotoAndStop(3);
						movespeed = 2 * _root.mcWalkSpeed;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				collideWallLeft = false;
				collideWallRight = false;
				collideWallUp = false;
				collideWallDown = false;
				if (_root.Background.Collision.hitTest(this._x - 30, this._y, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y + 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 30, this._y - 7, true)) {
					collideWallLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y + 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 30, this._y - 7, true)) {
					collideWallRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y - 30, true)) {
					collideWallUp = true;
				}
				if (_root.Background.Collision.hitTest(this._x, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 7, this._y + 30, true)) {
					collideWallDown = true;
				}
				collideWallUpLeft = false;
				collideWallUpRight = false;
				collideWallDownLeft = false;
				collideWallDownRight = false;
				if (_root.Background.Collision.hitTest(this._x - 20, this._y - 20, true)) {
					collideWallUpLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y - 20, true)) {
					collideWallUpRight = true;
				}
				if (_root.Background.Collision.hitTest(this._x - 20, this._y + 20, true)) {
					collideWallDownLeft = true;
				}
				if (_root.Background.Collision.hitTest(this._x + 20, this._y + 20, true)) {
					collideWallDownRight = true;
				}
				colliding = false;
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallUpRight == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(65) || Key.isDown(38) && Key.isDown(37)) {
					if (collideWallUpLeft == true) {
						colliding = true;
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) && Key.isDown(68) || Key.isDown(38) && Key.isDown(39)) {
					if (collideWallDownRight == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(83) && Key.isDown(65) || Key.isDown(40) && Key.isDown(37)) {
					if (collideWallDownLeft == true) {
						colliding = true;
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (collideWallRight == true && colliding == false) {
						_root.Overhead._x += movespeed;
						_root.Background._x += movespeed;
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (collideWallLeft == true && colliding == false) {
						_root.Overhead._x -= movespeed;
						_root.Background._x -= movespeed;
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (collideWallUp == true && colliding == false) {
						_root.Overhead._y -= movespeed;
						_root.Background._y -= movespeed;
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (collideWallDown == true && colliding == false) {
						_root.Overhead._y += movespeed;
						_root.Background._y += movespeed;
					}
				}
			}
		}
	}
	movieClip 5815	{
	}
	movieClip 5816	{
		frame 1 {
			stop();
		}
	}
	instance menuButton of movieClip 5024	{
		onClipEvent (press) {
			_root.playMenuClick();
			_root.saveDisplay = '';
			if (_root.menuclosed == true && _root.talking == 0) {
				_root.talking = 1;
				_root.mainChar.gotoAndStop(1);
				_root.menuclosed = false;
				this.gotoAndStop(4);
				_root.refreshMenu();
			} else {
				if (_root.menuclosed == false) {
					_root.talking = 0;
					_root.menuclosed = true;
					this.gotoAndStop(2);
					_root.refreshMenu();
				}
			}
		}
		onClipEvent (rollOver) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(2);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(4);
			}
		}
		onClipEvent (rollOut, dragOut) {
			if (_root.menuclosed == true) {
				this.gotoAndStop(1);
			}
			if (_root.menuclosed == false) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 460 {
		stop();
	}
	frame 461 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 462 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		fadeOut.play();
	}
	frame 463 {
		ConvBox.Clarifier._visible = false;
		floorType = 'tile';
		menuclosed = true;
		convBoxClosed = true;
		levelBoxClosed = true;
		newSkillBoxClosed = true;
		refreshMenu();
		cueScene = 'Forest01';
		cutScene();
		goingtoScene = '';
		saveDisplay = '';
		levelUpMsg = '';
		newSkillMsg = '';
		trainingText1 = '';
		trainingText2 = '';
		trainingText3 = '';
		pressed = '';
		leveling = false;
		leveler = '';
		talking = 0;
		speaker1 = '';
		speaker2 = '';
		convtext1 = '';
		convtext2 = '';
		replied = 0;
		reply1 = '';
		reply2 = '';
		reply3 = '';
		reply4 = '';
		charHP = 0;
		charPsP = 0;
		HPdisplay();
		convID = 'cutScene1';
		convBranch = 1;
		convBoxClosed = false;
		refreshMenu();
		thing1.onEnterFrame = function () {
			speaker1 = 'Tastidian';
			speaker2 = mainCharName;
			ConvBox.portraitFinder.gotoAndStop(16);
			if (convBranch == 1) {
				ConvBox.gotoAndStop(1);
				speaker2 = '';
				convtext1 = 'I won\'t lie, ' + mainCharName + '. I\'m very disappointed that it has come to this. You were...a great servant. [To your surprise, he seems to be emanating genuine feelings of sadness.]';
				convtext2 = '';
				reply1 = 'Tastidian, what did you expect?';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 2) {
				ConvBox.gotoAndStop(2);
				convtext1 = '[He shakes his head.] I suspected this day might come. But you also? Shadowboxer, Darkling... [He pauses, lending the greatest weight to the last name.] ...Festus?';
				convtext2 = 'Tastidian, what did you expect?';
				reply1 = '[Continue.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 3) {
				ConvBox.gotoAndStop(1);
				speaker1 = 'Festus';
				speaker2 = '';
				ConvBox.portraitFinder.gotoAndStop(4);
				convtext1 = '[You notice his eyes are averted.] I\'m...sorry. [He looks up.] But the killing, it has to end. Don\'t you think this constant warfare has gone on long enough? Tastidian? Why don\'t you join us?';
				convtext2 = '';
				reply1 = '[Continue.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 4) {
				ConvBox.gotoAndStop(1);
				speaker1 = 'Tastidian';
				speaker2 = '';
				ConvBox.portraitFinder.gotoAndStop(16);
				convtext1 = '[He shakes his head.] I cannot. All of us are slaves to something. You, to your conscience. Me, to duty. I hope the afterlife is kind to you.';
				convtext2 = '';
				reply1 = '[Done.]';
				reply2 = '';
				reply3 = '';
				reply4 = '';
			}
			if (convBranch == 1) {
				if (replied == 1) {
					convBranch = 2;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 2) {
				if (replied == 1) {
					convBranch = 3;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 3) {
				if (replied == 1) {
					convBranch = 4;
					replied = 0;
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
			if (convBranch == 4) {
				if (replied == 1) {
					convBoxClosed = true;
					refreshMenu();
					replied = 0;
					goingtoScene = 'battle08A';
					gotoAndStop('switchTown01B');
				}
				if (replied == 2) {
				}
				if (replied == 3) {
				}
				if (replied == 4) {
				}
			}
		};
	}
	movieClip 5821	{
	}
	frame 472 {
		stop();
	}
	frame 473 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		pinholeClose.play();
	}
	frame 474 {
		talking = 1;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		fadeOut.play();
	}
	frame 475 {
		function HPdisplay2() {
			charHP = boatHP - boatDamage;
			if (charHP <= 0) {
				boatDead = true;
				mainChar.gotoAndStop(4);
			}
		}
		ConvBox.Clarifier._visible = false;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		Background._x = storedX - 266.2;
		Background._y = storedY - 774.6;
		lastscene = 'lakeOpen';
		goingtoScene = '';
		HPdisplay2();
		if (mission6Done == true) {
			Background.gotoAndStop(2);
		} else {
			Background.gotoAndStop(1);
		}
		if (gotYellowOrb) {
			Background.yellowOrb.swapDepths(9);
			Background.yellowOrb.removeMovieClip();
		}
		Background.yellowOrb.onPress = function () {
			if (talking == 0 && _ymouse > 50 && _ymouse < 350 && _xmouse > 115 && _xmouse < 435) {
				convID = 'foundYellow';
				convBranch = 1;
				talking = 1;
				mainChar.gotoAndStop(1);
				convBoxClosed = false;
				refreshMenu();
				ConvBox.gotoAndStop(6);
				playMysteryFlourish();
			}
		};
		randomBattle = 0;
		battleTippingPoint = 1999;
		talking = 0;
		moveSpeed = 0;
		speedX = 0;
		speedY = 0;
		damaged = false;
		boatDead = false;
		maxmoveSpeed = 8;
		speedStepUp = 0.25;
		speedStepDown = 0.2;
		rotateStep = 2;
		speedDecay = 0.96;
		mainChar.gotoAndStop(1);
		mainChar.onEnterFrame = function () {
			storedX = Background._x + 266.2;
			storedY = Background._y + 774.6;
			storedXdisp = Math.round(storedX);
			storedYdisp = Math.round(storedY);
			if (moveSpeed < 0.25) {
				moveSpeed = 0;
				rotateStep = 2;
			}
			if (moveSpeed > maxmoveSpeed) {
				moveSpeed = maxmoveSpeed;
			}
			if (moveSpeed == 0 && !boatDead) {
				mainChar.gotoAndStop(1);
				damaged = false;
			}
			if ((Key.isDown(68) || Key.isDown(39)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					mainChar._rotation += rotateStep;
				}
			}
			if ((Key.isDown(65) || Key.isDown(37)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					mainChar._rotation -= rotateStep;
				}
			}
			if ((Key.isDown(87) || Key.isDown(38)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					moveSpeed += speedStepUp;
				}
			}
			if ((Key.isDown(83) || Key.isDown(40)) && !damaged) {
				moveSpeed -= speedStepDown;
			}
			if (!Key.isDown(87) && !Key.isDown(38) || damaged == true) {
				moveSpeed *= speedDecay;
			}
			if (moveSpeed > 0 && talking == 0) {
				if (!damaged) {
					mainChar.gotoAndStop(2);
					mainChar.boat.trail._yscale = moveSpeed * 12;
					mainChar.boat.wake._alpha = moveSpeed * 12;
					speedDecay = 0.96;
					rotateStep = 4;
				}
				speedX = Math.sin(mainChar._rotation * 0.0174532925199433) * moveSpeed;
				speedY = Math.cos(mainChar._rotation * 0.0174532925199433) * moveSpeed * -1;
				if (Background.Collision.hitTest(mainChar._x + 20, mainChar._y, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x - 20, mainChar._y, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x, mainChar._y + 20, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x, mainChar._y - 20, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (!damaged) {
					Background._x -= speedX;
					Background._y -= speedY;
				}
				if (damaged == true) {
					Background._x += speedX;
					Background._y += speedY;
				}
			}
			if (moveSpeed <= 0.25 && talking == 0 && Background.disembark01.hitTest(mainChar._x, mainChar._y, true)) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 67;
				conversation();
			}
			if (moveSpeed <= 0.25 && talking == 0 && Background.disembark02.hitTest(mainChar._x, mainChar._y, true)) {
				talking = 1;
				convID = 'narrative1';
				convBranch = 69;
				conversation();
			}
			randomBattle = random(2000);
			if (moveSpeed >= 0.25) {
				if (randomBattle >= battleTippingPoint) {
					goingtoScene = 'battle06B';
					gotoAndStop('closeBoating01');
				}
			}
			if (convID == 'foundYellow') {
				if (convBranch == 1) {
					convtext1 = 'You notice something peculiar lying on the shore. It looks like a smooth glass grapefruit, but it pulses with a dim light. You can feel some sort of power emanating from it.';
					reply1 = '[Stop and pick it up.]';
					reply2 = 'Maybe I\'d better leave it...';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						gotYellowOrb = true;
						checkOrbTotal();
						hyperFocus = true;
						mainCharSpeed = 5;
						mainCharAttackType2 = 'mindshield';
						mainCharAttackType3 = 'pyroblast';
						Background.yellowOrb.swapDepths(9);
						Background.yellowOrb.removeMovieClip();
						convBranch = 2;
						replied = 0;
					}
					if (replied == 2) {
						talking = 0;
						convBoxClosed = true;
						playMystereMusic();
						playBeachWaves();
						refreshMenu();
						replied = 0;
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
				if (convBranch == 2) {
					convtext1 = 'As you pick up the orb, you feel a surge of clarity wash over you. Everything around you seems to be in much sharper detail now--nothing escapes your notice. You find that you can concentrate effortlessly on individual grains of sand on the beach.';
					reply1 = 'Odd. Maybe I\'ll bring this back to HQ...';
					reply2 = '';
					reply3 = '';
					reply4 = '';
					if (replied == 1) {
						talking = 0;
						convBoxClosed = true;
						refreshMenu();
						playMirrorMusic();
						playBeachWaves();
						replied = 0;
					}
					if (replied == 2) {
					}
					if (replied == 3) {
					}
					if (replied == 4) {
					}
				}
			}
		};
	}
	movieClip 5823	{
	}
	movieClip 5824	{
	}
	movieClip 5827	{
	}
	movieClip 5835	{
	}
	movieClip 5840	{
	}
	movieClip 5842	{
	}
	movieClip 5844	{
	}
	movieClip 5846	{
	}
	movieClip 5847	{
		frame 1 {
			stop();
		}
	}
	movieClip 5850	{
	}
	movieClip 5860	{
	}
	movieClip 5864	{
	}
	movieClip 5865	{
	}
	movieClip 5872	{
		frame 30 {
			stop();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 5882	{
	}
	movieClip 5888	{
		frame 60 {
			stop();
			_root.goingtoScene = 'deathScreen';
			_root.gotoAndStop('switchBoating01');
		}
	}
	movieClip 5889	{
	}
	instance fadeIn of movieClip 5028	{
		onClipEvent (load) {
			this.swapDepths(800);
		}
	}
	frame 485 {
		stop();
		fadeIn.removeMovieClip();
	}
	frame 486 {
		moveSpeed = 0;
		damaged = true;
		talking = 1;
		mainChar.gotoAndStop(1);
		pinholeClose.swapDepths(89000);
		ConvBox.swapDepths(1);
		pinholeClose.play();
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
	}
	instance pinholeClose of movieClip 3284 pinholeClose {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 487 {
		moveSpeed = 0;
		damaged = true;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	instance fadeOut of movieClip 3285 fadeOut {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 488 {
		function HPdisplay2() {
			charHP = boatHP - boatDamage;
			if (charHP <= 0) {
				boatDead = true;
				mainChar.gotoAndStop(4);
			}
		}
		function chooseSpots() {
			layout = random(10);
			Background.gotoAndStop(layout);
		}
		ConvBox.Clarifier._visible = false;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		Background._x = storedX - 266.2;
		Background._y = storedY - 774.6;
		lastscene = 'lakeOpen02';
		goingtoScene = '';
		HPdisplay2();
		chooseSpots();
		chestsFound = 0;
		timeLeft = 60;
		timeDown = timeLeft;
		bottomDisp = '';
		Background.chest01._tabEnabled = false;
		Background.chest02._tabEnabled = false;
		Background.chest03._tabEnabled = false;
		Background.chest04._tabEnabled = false;
		Background.chest05._tabEnabled = false;
		Background.chest06._tabEnabled = false;
		Background.chest07._tabEnabled = false;
		Background.chest08._tabEnabled = false;
		Background.chest09._tabEnabled = false;
		Background.chest10._tabEnabled = false;
		Background.chest11._tabEnabled = false;
		Background.chest12._tabEnabled = false;
		talking = 0;
		moveSpeed = 0;
		speedX = 0;
		speedY = 0;
		damaged = false;
		boatDead = false;
		maxmoveSpeed = 8;
		speedStepUp = 0.25;
		speedStepDown = 0.2;
		rotateStep = 2;
		speedDecay = 0.96;
		mainChar.gotoAndStop(1);
		mainChar.onEnterFrame = function () {
			timeLeft -= 0.0222;
			timeDown = Math.round(timeLeft);
			storedX = Background._x + 266.2;
			storedY = Background._y + 774.6;
			storedXdisp = Math.round(storedX);
			storedYdisp = Math.round(storedY);
			if (moveSpeed < 0.25) {
				moveSpeed = 0;
				rotateStep = 2;
			}
			if (moveSpeed > maxmoveSpeed) {
				moveSpeed = maxmoveSpeed;
			}
			if (moveSpeed == 0 && !boatDead) {
				mainChar.gotoAndStop(1);
				damaged = false;
			}
			if ((Key.isDown(68) || Key.isDown(39)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					mainChar._rotation += rotateStep;
				}
			}
			if ((Key.isDown(65) || Key.isDown(37)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					mainChar._rotation -= rotateStep;
				}
			}
			if ((Key.isDown(87) || Key.isDown(38)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					moveSpeed += speedStepUp;
				}
			}
			if ((Key.isDown(83) || Key.isDown(40)) && !damaged) {
				moveSpeed -= speedStepDown;
			}
			if (!Key.isDown(87) && !Key.isDown(38) || damaged == true) {
				moveSpeed *= speedDecay;
			}
			if (moveSpeed > 0 && talking == 0) {
				if (!damaged) {
					mainChar.gotoAndStop(2);
					mainChar.boat.trail._yscale = moveSpeed * 12;
					mainChar.boat.wake._alpha = moveSpeed * 12;
					speedDecay = 0.96;
					rotateStep = 4;
				}
				speedX = Math.sin(mainChar._rotation * 0.0174532925199433) * moveSpeed;
				speedY = Math.cos(mainChar._rotation * 0.0174532925199433) * moveSpeed * -1;
				if (Background.Collision.hitTest(mainChar._x + 20, mainChar._y, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x - 20, mainChar._y, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x, mainChar._y + 20, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x, mainChar._y - 20, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (!damaged) {
					Background._x -= speedX;
					Background._y -= speedY;
				}
				if (damaged == true) {
					Background._x += speedX;
					Background._y += speedY;
				}
			}
			if (moveSpeed <= 0.25 && talking == 0 && Background.disembark01.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'lake01';
				gotoAndStop('closeBoating02');
			}
			if (timeLeft <= 0) {
				chestsFound = 0;
				goingtoScene = 'battle06B';
				gotoAndStop('closeBoating02');
			}
			if (chestsFound == 4) {
				bottomDisp = 'Get back to dock!';
			}
		};
		Background.chest01.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest01.swapDepths(10);
				Background.chest01.removeMovieClip();
			}
		};
		Background.chest02.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest02.swapDepths(10);
				Background.chest02.removeMovieClip();
			}
		};
		Background.chest03.onPress = function () {
			++chestsFound;
			Background.chest03.swapDepths(10);
			Background.chest03.removeMovieClip();
		};
		Background.chest04.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest04.swapDepths(10);
				Background.chest04.removeMovieClip();
			}
		};
		Background.chest05.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest05.swapDepths(10);
				Background.chest05.removeMovieClip();
			}
		};
		Background.chest06.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest06.swapDepths(10);
				Background.chest06.removeMovieClip();
			}
		};
		Background.chest07.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest07.swapDepths(10);
				Background.chest07.removeMovieClip();
			}
		};
		Background.chest08.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest08.swapDepths(10);
				Background.chest08.removeMovieClip();
			}
		};
		Background.chest09.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest09.swapDepths(10);
				Background.chest09.removeMovieClip();
			}
		};
		Background.chest10.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest10.swapDepths(10);
				Background.chest10.removeMovieClip();
			}
		};
		Background.chest11.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest11.swapDepths(10);
				Background.chest11.removeMovieClip();
			}
		};
		Background.chest12.onPress = function () {
			if (_ymouse > 50 && _ymouse < 350 && _xmouse > 100 && _xmouse < 450) {
				++chestsFound;
				Background.chest12.swapDepths(10);
				Background.chest12.removeMovieClip();
			}
		};
	}
	movieClip 5896	{
		frame 1 {
			stop();
		}
	}
	instance fadeIn of movieClip 5028	{
		onClipEvent (load) {
			this.swapDepths(800);
		}
	}
	frame 498 {
		stop();
		fadeIn.removeMovieClip();
	}
	frame 499 {
		moveSpeed = 0;
		damaged = true;
		talking = 1;
		mainChar.gotoAndStop(1);
		pinholeClose.swapDepths(89000);
		ConvBox.swapDepths(1);
		pinholeClose.play();
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
	}
	instance pinholeClose of movieClip 3284 pinholeClose {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 500 {
		moveSpeed = 0;
		damaged = true;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	instance fadeOut of movieClip 3285 fadeOut {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 501 {
		stop();
	}
	movieClip 5918	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 5918	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 502 {
		function HPdisplay2() {
			charHP = boatHP - boatDamage;
			if (charHP <= 0) {
				boatDead = true;
				mainChar.gotoAndStop(4);
			}
		}
		ConvBox.Clarifier._visible = false;
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
		Background._x = storedX - 266.2;
		Background._y = storedY - 774.6;
		lastscene = 'lakeOpen03';
		goingtoScene = '';
		autoSave();
		HPdisplay2();
		timeLeft = 180;
		timeDown = timeLeft;
		talking = 0;
		moveSpeed = 0;
		speedX = 0;
		speedY = 0;
		damaged = false;
		boatDead = false;
		maxmoveSpeed = 8;
		speedStepUp = 0.25;
		speedStepDown = 0.2;
		rotateStep = 2;
		speedDecay = 0.96;
		mainChar.gotoAndStop(1);
		mainChar.onEnterFrame = function () {
			timeLeft -= 0.0222;
			timeDown = Math.round(timeLeft);
			storedX = Background._x + 266.2;
			storedY = Background._y + 774.6;
			storedXdisp = Math.round(storedX);
			storedYdisp = Math.round(storedY);
			if (moveSpeed < 0.25) {
				moveSpeed = 0;
				rotateStep = 2;
			}
			if (moveSpeed > maxmoveSpeed) {
				moveSpeed = maxmoveSpeed;
			}
			if (moveSpeed == 0 && !boatDead) {
				mainChar.gotoAndStop(1);
				damaged = false;
			}
			if ((Key.isDown(68) || Key.isDown(39)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					mainChar._rotation += rotateStep;
				}
			}
			if ((Key.isDown(65) || Key.isDown(37)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					mainChar._rotation -= rotateStep;
				}
			}
			if ((Key.isDown(87) || Key.isDown(38)) && !damaged) {
				if (randomBattle < battleTippingPoint) {
					moveSpeed += speedStepUp;
				}
			}
			if ((Key.isDown(83) || Key.isDown(40)) && !damaged) {
				moveSpeed -= speedStepDown;
			}
			if (!Key.isDown(87) && !Key.isDown(38) || damaged == true) {
				moveSpeed *= speedDecay;
			}
			if (moveSpeed > 0 && talking == 0) {
				if (!damaged) {
					mainChar.gotoAndStop(2);
					mainChar.boat.trail._yscale = moveSpeed * 12;
					mainChar.boat.wake._alpha = moveSpeed * 12;
					speedDecay = 0.96;
					rotateStep = 4;
				}
				speedX = Math.sin(mainChar._rotation * 0.0174532925199433) * moveSpeed;
				speedY = Math.cos(mainChar._rotation * 0.0174532925199433) * moveSpeed * -1;
				if (Background.Collision.hitTest(mainChar._x + 20, mainChar._y, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x - 20, mainChar._y, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x, mainChar._y + 20, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (Background.Collision.hitTest(mainChar._x, mainChar._y - 20, true)) {
					damaged = true;
					boatDamage += 1;
					speedDecay = 0.9;
					mainChar.gotoAndStop(3);
					HPdisplay2();
				}
				if (!damaged) {
					Background._x -= speedX;
					Background._y -= speedY;
				}
				if (damaged == true) {
					Background._x += speedX;
					Background._y += speedY;
				}
			}
			if (moveSpeed <= 0.25 && talking == 0 && Background.disembark01.hitTest(mainChar._x, mainChar._y, true)) {
				goingtoScene = 'lake01';
				gotoAndStop('closeBoating03');
			}
			if (timeLeft <= 0) {
				goingtoScene = 'deathScreen';
				gotoAndStop('switchBoating03');
			}
		};
	}
	movieClip 5920	{
	}
	instance fadeIn of movieClip 5028	{
		onClipEvent (load) {
			this.swapDepths(800);
		}
	}
	frame 512 {
		stop();
		fadeIn.removeMovieClip();
	}
	frame 513 {
		moveSpeed = 0;
		damaged = true;
		talking = 1;
		mainChar.gotoAndStop(1);
		pinholeClose.swapDepths(89000);
		ConvBox.swapDepths(1);
		pinholeClose.play();
		menuclosed = true;
		convBoxClosed = true;
		refreshMenu();
	}
	instance pinholeClose of movieClip 3284 pinholeClose {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 514 {
		moveSpeed = 0;
		damaged = true;
		mainChar.gotoAndStop(1);
		fadeOut.play();
	}
	instance fadeOut of movieClip 3285 fadeOut {
		onClipEvent (load) {
			this.swapDepths(500);
		}
	}
	frame 515 {
		stop();
		whichBattle = 'tutbattle';
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
		char1Dead = false;
		char2Dead = false;
		char3Dead = true;
		char4Dead = false;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		name4 = 'Bob the Grand';
		char4Movement = 'land';
		char4AttackType1 = 'mindblast';
		char4AttackType2 = 'mindshield';
		char4AttackType3 = 'pyroblast';
		char4AttackType4 = 'feedback';
		char4MBLevel = 1;
		char4MSLevel = 1;
		char4PBLevel = 1;
		char4FBLevel = 1;
		char4PsyPower = 8;
		char4PsyDefense = 8;
		MaxSteps4 = 5;
		MaxHP4 = 20;
		MaxPsP4 = 20;
		name1 = 'Shadowboxer';
		char1Movement = 'flying';
		MaxHP1 = 25;
		MaxPsP1 = 20;
		MaxSteps1 = 8;
		char1MBLevel = 1;
		char1MSLevel = 0;
		char1PBLevel = 0;
		char1FBLevel = 0;
		char1PsyPower = 5;
		char1PsyDefense = 4;
		char1AttackType1 = 'mindblast';
		char1AttackType2 = 'none';
		char1AttackType3 = 'none';
		char1AttackType4 = 'none';
		name2 = 'Anya';
		char2Movement = 'land';
		MaxHP2 = 18;
		MaxPsP2 = 20;
		MaxSteps2 = 5;
		char2MBLevel = 1;
		char2MSLevel = 3;
		char2PBLevel = 0;
		char2FBLevel = 0;
		char2PsyPower = 3;
		char2PsyDefense = 9;
		char2AttackType1 = 'mindblast';
		char2AttackType2 = 'mindshield';
		char2AttackType3 = 'none';
		char2AttackType4 = 'none';
	}
	movieClip 5929	{
	}
	movieClip 5930	{
	}
	movieClip 5933	{
	}
	movieClip 5936	{
	}
	movieClip 5939	{
	}
	movieClip 5940	{
	}
	movieClip 5946	{
	}
	movieClip 5947	{
	}
	instance char16 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				_root.changeturns();
			}
		}
	}
	instance char17 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				_root.changeturns();
			}
		}
	}
	instance char18 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				_root.changeturns();
			}
		}
	}
	movieClip 5949	{
		frame 110 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 5950	{
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			_root.enemyGo = 1;
			stop();
		}
	}
	instance char19 of movieClip 5950	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19 && _root.attacked == 3) {
				_root.changeturns();
			}
		}
	}
	movieClip 5951	{
		frame 1 {
			_root.killShadowMaps();
		}
		frame 90 {
			stop();
			_root.play();
		}
	}
	frame 524 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = 120;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Dummy 1';
		name17 = 'Dummy 2';
		name18 = 'Dummy 3';
		name19 = 'Dummy 4';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 12;
		MaxHP17 = 12;
		MaxHP18 = 12;
		MaxHP19 = 12;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 0;
		MaxSteps17 = 0;
		MaxSteps18 = 0;
		MaxSteps19 = 0;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'none';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'none';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'none';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'none';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 0;
		char17Strength = 0;
		char18Strength = 0;
		char19Strength = 0;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	button 5958 {
		on (press) {
			if (_root.moveTurn == 1 && _root.attacked == 0) {
				_root.rotateCW1();
			}
			if (_root.moveTurn == 2 && _root.attacked == 0) {
				_root.rotateCW2();
			}
			if (_root.moveTurn == 3 && _root.attacked == 0) {
				_root.rotateCW3();
			}
			if (_root.moveTurn == 4 && _root.attacked == 0) {
				_root.rotateCW4();
			}
			if (_root.moveTurn == 5 && _root.attacked == 0) {
				_root.rotateCW5();
			}
			if (_root.moveTurn == 6 && _root.attacked == 0) {
				_root.rotateCW6();
			}
			if (_root.moveTurn == 7 && _root.attacked == 0) {
				_root.rotateCW7();
			}
			if (_root.moveTurn == 8 && _root.attacked == 0) {
				_root.rotateCW8();
			}
			if (_root.moveTurn == 9 && _root.attacked == 0) {
				_root.rotateCW9();
			}
			if (_root.attacked == 1) {
			}
		}
	}
	button 5959 {
		on (press) {
			if (_root.attacked == 0 && !_root.moving) {
				_root.undoMove();
				_root.displaySteps();
			}
			if (_root.attacked == 1) {
				_root.display = 'Cannot undo after attack.';
			}
		}
	}
	button 5960 {
		on (press) {
			if (_root.moving == false && _root.attacked == 0 && _root.moveTurn < 16) {
				_root.char1.gotoAndStop(1);
				_root.char2.gotoAndStop(1);
				_root.char3.gotoAndStop(1);
				_root.char4.gotoAndStop(1);
				_root.char5.gotoAndStop(1);
				_root.char6.gotoAndStop(1);
				_root.char7.gotoAndStop(1);
				_root.char8.gotoAndStop(1);
				_root.char9.gotoAndStop(1);
				_root.changeturns();
			}
		}
	}
	movieClip 5966	{
		frame 1 {
			stop();
		}
		instance attackButton1 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType1 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: ' + _root.mindBlastDrain + '';
				}
				if (_root.currAttackType1 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: ' + _root.pyroBlastDrain + '';
				}
				if (_root.currAttackType1 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: ' + _root.mindShieldDrain + '';
				}
				if (_root.currAttackType1 == 'farshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 2 Cost: ' + _root.farShieldDrain + '';
				}
				if (_root.currAttackType1 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: ' + _root.feedbackDrain + '';
				}
				if (_root.currAttackType1 == 'frostblast') {
					this.gotoAndStop(17);
					_root.display = 'Frost Blast - Range: 1-2 Cost: ' + _root.frostBlastDrain + '';
				}
				if (_root.currAttackType1 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType1 == 'crossbow') {
					this.gotoAndStop(15);
					_root.display = 'Crossbow - Range: 2 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType1 == 'knife') {
					this.gotoAndStop(19);
					_root.display = 'Knife Throw - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType1 == 'fling') {
					this.gotoAndStop(21);
					_root.display = 'Knife Fling - Range: 2 Cost: ' + _root.flingDrain + '';
				}
				if (_root.currAttackType1 == 'megashield') {
					this.gotoAndStop(23);
					_root.display = 'Mega Shield - Range: 1 Cost: ' + _root.megaShieldDrain + '';
				}
				if (_root.currAttackType1 == 'pyrohail') {
					this.gotoAndStop(25);
					_root.display = 'Pyro Hail - Range: 1-3, t-spread Cost: ' + _root.pyroHailDrain + '';
				}
				if (_root.currAttackType1 == 'shadowblast') {
					this.gotoAndStop(27);
					_root.display = 'Shadow Blast - Range: 2 Cost: ' + _root.shadowBlastDrain + '';
				}
				if (_root.currAttackType1 == 'shadowport1') {
					this.gotoAndStop(29);
					_root.display = 'Shadowport - Range: 2 Cost: ' + _root.shadowPort1Drain + '';
				}
				if (_root.currAttackType1 == 'shadowport2') {
					this.gotoAndStop(31);
					_root.display = 'Shadowport 2 - Range: 3 Cost: ' + _root.shadowPort2Drain + '';
				}
				if (_root.currAttackType1 == 'laserblast') {
					this.gotoAndStop(33);
					_root.display = 'Laser Blast - Range: ?? Cost: ' + _root.laserBlastDrain + '';
				}
				if (_root.currAttackType1 == 'firebreath') {
					this.gotoAndStop(35);
					_root.display = 'Fire Breath - Range: 1-2 Cost: ' + _root.fireBreathDrain + '';
				}
				if (_root.currAttackType1 == 'whirlwind') {
					this.gotoAndStop(37);
					_root.display = 'Whirlwind - Range: 1, Omnidirectional Cost: ' + _root.whirlwindDrain + '';
				}
				if (_root.currAttackType1 == 'snakeeyes') {
					this.gotoAndStop(39);
					_root.display = 'Snake Eyes - Range: 1 Cost: ' + _root.snakeeyesDrain + '';
				}
				if (_root.currAttackType1 == 'darkvortex') {
					this.gotoAndStop(41);
					_root.display = 'Dark Vortex - Range: 3 X 3 Cost: ' + _root.darkVortexDrain + '';
				}
				if (_root.currAttackType1 == 'trickshot') {
					this.gotoAndStop(43);
					_root.display = 'Trick Shot - Range: 3, backwards L Cost: ' + _root.trickShotDrain + '';
				}
				if (_root.currAttackType1 == 'bigshield') {
					this.gotoAndStop(45);
					_root.display = 'Big Shield - Range: 1, Omnidirectional Cost: ' + _root.bigShieldDrain + '';
				}
				if (_root.currAttackType1 == 'steamengine') {
					this.gotoAndStop(47);
					_root.display = 'Steam Engine - Range: 0 Cost: ' + _root.steamEngineDrain + '';
				}
				if (_root.currAttackType1 == 'spinsaw') {
					this.gotoAndStop(49);
					_root.display = 'Spin Saw - Range: 1, Arc Cost: ' + _root.spinSawDrain + '';
				}
				if (_root.currAttackType1 == 'frostblast2') {
					this.gotoAndStop(51);
					_root.display = 'Frost Blast 2 - Range: 1-3 Cost: ' + _root.frostBlast2Drain + '';
				}
				if (_root.currAttackType1 == 'vengeance') {
					this.gotoAndStop(53);
					_root.display = 'Vengeance - Range: 1-3 Cost: ' + _root.vengeanceDrain + '';
				}
				if (_root.currAttackType1 == 'frostshield') {
					this.gotoAndStop(55);
					_root.display = 'Frost Shield - Range: 1 Cost: ' + _root.frostShieldDrain + '';
				}
				if (_root.currAttackType1 == 'darkbreath') {
					this.gotoAndStop(57);
					_root.display = 'Dark Breath - Range: 1-3 Cost: ' + _root.darkBreathDrain + '';
				}
				if (_root.currAttackType1 == 'lightblast') {
					this.gotoAndStop(59);
					_root.display = 'Light Blast - Range: 4, 3 X 3 Cost: ' + _root.lightBlastDrain + '';
				}
				if (_root.currAttackType1 == 'shockwave') {
					this.gotoAndStop(61);
					_root.display = 'Unknown - Range: ? Cost: ?';
				}
				if (_root.currAttackType1 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtons();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 16) {
					if (_root.currAttackType1 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType1;
							_root.attack();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance moveGUIbutton of movieClip 4492	{
			onClipEvent (load) {
				menuMoved = 0;
			}
			onClipEvent (enterFrame) {
				if (menuMoved == 0) {
					this.gotoAndStop(1);
				}
				if (menuMoved == 1) {
					this.gotoAndStop(2);
				}
				if (menuMoved == 2) {
					this.gotoAndStop(3);
				}
				if (menuMoved == 3) {
					this.gotoAndStop(4);
				}
				if (menuMoved == 4) {
					this.gotoAndStop(5);
				}
				if (menuMoved == 5) {
					this.gotoAndStop(6);
				}
				if (menuMoved == 6) {
					this.gotoAndStop(7);
				}
				if (menuMoved == 7) {
					this.gotoAndStop(8);
				}
			}
			onClipEvent (rollOver) {
				if (menuMoved == 0) {
					menuMoved = 1;
				}
				if (menuMoved == 2) {
					menuMoved = 3;
				}
				if (menuMoved == 4) {
					menuMoved = 5;
				}
				if (menuMoved == 6) {
					menuMoved = 7;
				}
			}
			onClipEvent (rollOut) {
				if (menuMoved == 1) {
					menuMoved = 0;
				}
				if (menuMoved == 3) {
					menuMoved = 2;
				}
				if (menuMoved == 5) {
					menuMoved = 4;
				}
				if (menuMoved == 7) {
					menuMoved = 6;
				}
			}
			onClipEvent (press) {
				if (menuMoved == 0 || menuMoved == 1) {
					menuMoved = 2;
					_root.battleDisplay._y = 305.7;
					_root.battleDisplay.gotoAndStop(2);
				} else {
					if (menuMoved == 2 || menuMoved == 3) {
						menuMoved = 6;
						_root.battleDisplay._x = 0;
						_root.battleDisplay.gotoAndStop(3);
					} else {
						if (menuMoved == 6 || menuMoved == 7) {
							menuMoved = 4;
							_root.battleDisplay._y = -4.3;
							_root.battleDisplay.gotoAndStop(4);
						} else {
							if (menuMoved == 4 || menuMoved == 5) {
								menuMoved = 0;
								_root.battleDisplay._x = 286.6;
								_root.battleDisplay.gotoAndStop(1);
							}
						}
					}
				}
			}
		}
		instance attackButton2 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType2 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: ' + _root.mindBlastDrain + '';
				}
				if (_root.currAttackType2 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: ' + _root.pyroBlastDrain + '';
				}
				if (_root.currAttackType2 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: ' + _root.mindShieldDrain + '';
				}
				if (_root.currAttackType2 == 'farshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 2 Cost: ' + _root.farShieldDrain + '';
				}
				if (_root.currAttackType2 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: ' + _root.feedbackDrain + '';
				}
				if (_root.currAttackType2 == 'frostblast') {
					this.gotoAndStop(17);
					_root.display = 'Frost Blast - Range: 1-2 Cost: ' + _root.frostBlastDrain + '';
				}
				if (_root.currAttackType2 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType2 == 'crossbow') {
					this.gotoAndStop(15);
					_root.display = 'Crossbow - Range: 2 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType2 == 'knife') {
					this.gotoAndStop(19);
					_root.display = 'Knife Throw - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType2 == 'fling') {
					this.gotoAndStop(21);
					_root.display = 'Knife Fling - Range: 2 Cost: ' + _root.flingDrain + '';
				}
				if (_root.currAttackType2 == 'megashield') {
					this.gotoAndStop(23);
					_root.display = 'Mega Shield - Range: 1 Cost: ' + _root.megaShieldDrain + '';
				}
				if (_root.currAttackType2 == 'pyrohail') {
					this.gotoAndStop(25);
					_root.display = 'Pyro Hail - Range: 1-3, t-spread Cost: ' + _root.pyroHailDrain + '';
				}
				if (_root.currAttackType2 == 'shadowblast') {
					this.gotoAndStop(27);
					_root.display = 'Shadow Blast - Range: 2 Cost: ' + _root.shadowBlastDrain + '';
				}
				if (_root.currAttackType2 == 'shadowport1') {
					this.gotoAndStop(29);
					_root.display = 'Shadowport - Range: 2 Cost: ' + _root.shadowPort1Drain + '';
				}
				if (_root.currAttackType2 == 'shadowport2') {
					this.gotoAndStop(31);
					_root.display = 'Shadowport 2 - Range: 3 Cost: ' + _root.shadowPort2Drain + '';
				}
				if (_root.currAttackType2 == 'laserblast') {
					this.gotoAndStop(33);
					_root.display = 'Laser Blast - Range: ?? Cost: ' + _root.laserBlastDrain + '';
				}
				if (_root.currAttackType2 == 'firebreath') {
					this.gotoAndStop(35);
					_root.display = 'Fire Breath - Range: 1-2 Cost: ' + _root.fireBreathDrain + '';
				}
				if (_root.currAttackType2 == 'whirlwind') {
					this.gotoAndStop(37);
					_root.display = 'Whirlwind - Range: 1, Omnidirectional Cost: ' + _root.whirlwindDrain + '';
				}
				if (_root.currAttackType2 == 'snakeeyes') {
					this.gotoAndStop(39);
					_root.display = 'Snake Eyes - Range: 1 Cost: ' + _root.snakeeyesDrain + '';
				}
				if (_root.currAttackType2 == 'darkvortex') {
					this.gotoAndStop(41);
					_root.display = 'Dark Vortex - Range: 3 X 3 Cost: ' + _root.darkVortexDrain + '';
				}
				if (_root.currAttackType2 == 'trickshot') {
					this.gotoAndStop(43);
					_root.display = 'Trick Shot - Range: 3, backwards L Cost: ' + _root.trickShotDrain + '';
				}
				if (_root.currAttackType2 == 'bigshield') {
					this.gotoAndStop(45);
					_root.display = 'Big Shield - Range: 1, Omnidirectional Cost: ' + _root.bigShieldDrain + '';
				}
				if (_root.currAttackType2 == 'steamengine') {
					this.gotoAndStop(47);
					_root.display = 'Steam Engine - Range: 0 Cost: ' + _root.steamEngineDrain + '';
				}
				if (_root.currAttackType2 == 'spinsaw') {
					this.gotoAndStop(49);
					_root.display = 'Spin Saw - Range: 1, Arc Cost: ' + _root.spinSawDrain + '';
				}
				if (_root.currAttackType2 == 'frostblast2') {
					this.gotoAndStop(51);
					_root.display = 'Frost Blast 2 - Range: 1-3 Cost: ' + _root.frostBlast2Drain + '';
				}
				if (_root.currAttackType2 == 'vengeance') {
					this.gotoAndStop(53);
					_root.display = 'Vengeance - Range: 1-3 Cost: ' + _root.vengeanceDrain + '';
				}
				if (_root.currAttackType2 == 'frostshield') {
					this.gotoAndStop(55);
					_root.display = 'Frost Shield - Range: 1 Cost: ' + _root.frostShieldDrain + '';
				}
				if (_root.currAttackType2 == 'darkbreath') {
					this.gotoAndStop(57);
					_root.display = 'Dark Breath - Range: 1-3 Cost: ' + _root.darkBreathDrain + '';
				}
				if (_root.currAttackType2 == 'lightblast') {
					this.gotoAndStop(59);
					_root.display = 'Light Blast - Range: 4, 3 X 3 Cost: ' + _root.lightBlastDrain + '';
				}
				if (_root.currAttackType2 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtons();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 16) {
					if (_root.currAttackType2 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType2;
							_root.attack();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance attackButton3 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType3 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: ' + _root.mindBlastDrain + '';
				}
				if (_root.currAttackType3 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: ' + _root.pyroBlastDrain + '';
				}
				if (_root.currAttackType3 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: ' + _root.mindShieldDrain + '';
				}
				if (_root.currAttackType3 == 'farshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 2 Cost: ' + _root.farShieldDrain + '';
				}
				if (_root.currAttackType3 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: ' + _root.feedbackDrain + '';
				}
				if (_root.currAttackType3 == 'frostblast') {
					this.gotoAndStop(17);
					_root.display = 'Frost Blast - Range: 1-2 Cost: ' + _root.frostBlastDrain + '';
				}
				if (_root.currAttackType3 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType3 == 'crossbow') {
					this.gotoAndStop(15);
					_root.display = 'Crossbow - Range: 2 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType3 == 'knife') {
					this.gotoAndStop(19);
					_root.display = 'Knife Throw - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType3 == 'fling') {
					this.gotoAndStop(21);
					_root.display = 'Knife Fling - Range: 2 Cost: ' + _root.flingDrain + '';
				}
				if (_root.currAttackType3 == 'megashield') {
					this.gotoAndStop(23);
					_root.display = 'Mega Shield - Range: 1 Cost: ' + _root.megaShieldDrain + '';
				}
				if (_root.currAttackType3 == 'pyrohail') {
					this.gotoAndStop(25);
					_root.display = 'Pyro Hail - Range: 1-3, t-spread Cost: ' + _root.pyroHailDrain + '';
				}
				if (_root.currAttackType3 == 'shadowblast') {
					this.gotoAndStop(27);
					_root.display = 'Shadow Blast - Range: 2 Cost: ' + _root.shadowBlastDrain + '';
				}
				if (_root.currAttackType3 == 'shadowport1') {
					this.gotoAndStop(29);
					_root.display = 'Shadowport - Range: 2 Cost: ' + _root.shadowPort1Drain + '';
				}
				if (_root.currAttackType3 == 'shadowport2') {
					this.gotoAndStop(31);
					_root.display = 'Shadowport 2 - Range: 3 Cost: ' + _root.shadowPort2Drain + '';
				}
				if (_root.currAttackType3 == 'laserblast') {
					this.gotoAndStop(33);
					_root.display = 'Laser Blast - Range: ?? Cost: ' + _root.laserBlastDrain + '';
				}
				if (_root.currAttackType3 == 'firebreath') {
					this.gotoAndStop(35);
					_root.display = 'Fire Breath - Range: 1-2 Cost: ' + _root.fireBreathDrain + '';
				}
				if (_root.currAttackType3 == 'whirlwind') {
					this.gotoAndStop(37);
					_root.display = 'Whirlwind - Range: 1, Omnidirectional Cost: ' + _root.whirlwindDrain + '';
				}
				if (_root.currAttackType3 == 'snakeeyes') {
					this.gotoAndStop(39);
					_root.display = 'Snake Eyes - Range: 1 Cost: ' + _root.snakeeyesDrain + '';
				}
				if (_root.currAttackType3 == 'darkvortex') {
					this.gotoAndStop(41);
					_root.display = 'Dark Vortex - Range: 3 X 3 Cost: ' + _root.darkVortexDrain + '';
				}
				if (_root.currAttackType3 == 'trickshot') {
					this.gotoAndStop(43);
					_root.display = 'Trick Shot - Range: 3, backwards L Cost: ' + _root.trickShotDrain + '';
				}
				if (_root.currAttackType3 == 'bigshield') {
					this.gotoAndStop(45);
					_root.display = 'Big Shield - Range: 1, Omnidirectional Cost: ' + _root.bigShieldDrain + '';
				}
				if (_root.currAttackType3 == 'steamengine') {
					this.gotoAndStop(47);
					_root.display = 'Steam Engine - Range: 0 Cost: ' + _root.steamEngineDrain + '';
				}
				if (_root.currAttackType3 == 'spinsaw') {
					this.gotoAndStop(49);
					_root.display = 'Spin Saw - Range: 1, Arc Cost: ' + _root.spinSawDrain + '';
				}
				if (_root.currAttackType3 == 'frostblast2') {
					this.gotoAndStop(51);
					_root.display = 'Frost Blast 2 - Range: 1-3 Cost: ' + _root.frostBlast2Drain + '';
				}
				if (_root.currAttackType3 == 'vengeance') {
					this.gotoAndStop(53);
					_root.display = 'Vengeance - Range: 1-3 Cost: ' + _root.vengeanceDrain + '';
				}
				if (_root.currAttackType3 == 'frostshield') {
					this.gotoAndStop(55);
					_root.display = 'Frost Shield - Range: 1 Cost: ' + _root.frostShieldDrain + '';
				}
				if (_root.currAttackType3 == 'darkbreath') {
					this.gotoAndStop(57);
					_root.display = 'Dark Breath - Range: 1-3 Cost: ' + _root.darkBreathDrain + '';
				}
				if (_root.currAttackType3 == 'lightblast') {
					this.gotoAndStop(59);
					_root.display = 'Light Blast - Range: 4, 3 X 3 Cost: ' + _root.lightBlastDrain + '';
				}
				if (_root.currAttackType3 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtons();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 16) {
					if (_root.currAttackType3 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType3;
							_root.attack();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance attackButton4 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType4 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: ' + _root.mindBlastDrain + '';
				}
				if (_root.currAttackType4 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: ' + _root.pyroBlastDrain + '';
				}
				if (_root.currAttackType4 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: ' + _root.mindShieldDrain + '';
				}
				if (_root.currAttackType4 == 'farshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 2 Cost: ' + _root.farShieldDrain + '';
				}
				if (_root.currAttackType4 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: ' + _root.feedbackDrain + '';
				}
				if (_root.currAttackType4 == 'frostblast') {
					this.gotoAndStop(17);
					_root.display = 'Frost Blast - Range: 1-2 Cost: ' + _root.frostBlastDrain + '';
				}
				if (_root.currAttackType4 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType4 == 'crossbow') {
					this.gotoAndStop(15);
					_root.display = 'Crossbow - Range: 2 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType4 == 'knife') {
					this.gotoAndStop(19);
					_root.display = 'Knife Throw - Range: 1 Cost: ' + _root.meleeDrain + '';
				}
				if (_root.currAttackType4 == 'fling') {
					this.gotoAndStop(21);
					_root.display = 'Knife Fling - Range: 2 Cost: ' + _root.flingDrain + '';
				}
				if (_root.currAttackType4 == 'megashield') {
					this.gotoAndStop(23);
					_root.display = 'Mega Shield - Range: 1 Cost: ' + _root.megaShieldDrain + '';
				}
				if (_root.currAttackType4 == 'pyrohail') {
					this.gotoAndStop(25);
					_root.display = 'Pyro Hail - Range: 1-3, t-spread Cost: ' + _root.pyroHailDrain + '';
				}
				if (_root.currAttackType4 == 'shadowblast') {
					this.gotoAndStop(27);
					_root.display = 'Shadow Blast - Range: 2 Cost: ' + _root.shadowBlastDrain + '';
				}
				if (_root.currAttackType4 == 'shadowport1') {
					this.gotoAndStop(29);
					_root.display = 'Shadowport - Range: 2 Cost: ' + _root.shadowPort1Drain + '';
				}
				if (_root.currAttackType4 == 'shadowport2') {
					this.gotoAndStop(31);
					_root.display = 'Shadowport 2 - Range: 3 Cost: ' + _root.shadowPort2Drain + '';
				}
				if (_root.currAttackType4 == 'laserblast') {
					this.gotoAndStop(33);
					_root.display = 'Laser Blast - Range: ?? Cost: ' + _root.laserBlastDrain + '';
				}
				if (_root.currAttackType4 == 'firebreath') {
					this.gotoAndStop(35);
					_root.display = 'Fire Breath - Range: 1-2 Cost: ' + _root.fireBreathDrain + '';
				}
				if (_root.currAttackType4 == 'whirlwind') {
					this.gotoAndStop(37);
					_root.display = 'Whirlwind - Range: 1, Omnidirectional Cost: ' + _root.whirlwindDrain + '';
				}
				if (_root.currAttackType4 == 'snakeeyes') {
					this.gotoAndStop(39);
					_root.display = 'Snake Eyes - Range: 1 Cost: ' + _root.snakeeyesDrain + '';
				}
				if (_root.currAttackType4 == 'darkvortex') {
					this.gotoAndStop(41);
					_root.display = 'Dark Vortex - Range: 3 X 3 Cost: ' + _root.darkVortexDrain + '';
				}
				if (_root.currAttackType4 == 'trickshot') {
					this.gotoAndStop(43);
					_root.display = 'Trick Shot - Range: 3, backwards L Cost: ' + _root.trickShotDrain + '';
				}
				if (_root.currAttackType4 == 'bigshield') {
					this.gotoAndStop(45);
					_root.display = 'Big Shield - Range: 1, Omnidirectional Cost: ' + _root.bigShieldDrain + '';
				}
				if (_root.currAttackType4 == 'steamengine') {
					this.gotoAndStop(47);
					_root.display = 'Steam Engine - Range: 0 Cost: ' + _root.steamEngineDrain + '';
				}
				if (_root.currAttackType4 == 'spinsaw') {
					this.gotoAndStop(49);
					_root.display = 'Spin Saw - Range: 1, Arc Cost: ' + _root.spinSawDrain + '';
				}
				if (_root.currAttackType4 == 'frostblast2') {
					this.gotoAndStop(51);
					_root.display = 'Frost Blast 2 - Range: 1-3 Cost: ' + _root.frostBlast2Drain + '';
				}
				if (_root.currAttackType4 == 'vengeance') {
					this.gotoAndStop(53);
					_root.display = 'Vengeance - Range: 1-3 Cost: ' + _root.vengeanceDrain + '';
				}
				if (_root.currAttackType4 == 'frostshield') {
					this.gotoAndStop(55);
					_root.display = 'Frost Shield - Range: 1 Cost: ' + _root.frostShieldDrain + '';
				}
				if (_root.currAttackType4 == 'darkbreath') {
					this.gotoAndStop(57);
					_root.display = 'Dark Breath - Range: 1-3 Cost: ' + _root.darkBreathDrain + '';
				}
				if (_root.currAttackType4 == 'lightblast') {
					this.gotoAndStop(59);
					_root.display = 'Light Blast - Range: 4, 3 X 3 Cost: ' + _root.lightBlastDrain + '';
				}
				if (_root.currAttackType4 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtons();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 16) {
					if (_root.currAttackType4 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType4;
							_root.attack();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance minimizeGUIbutton of movieClip 4497	{
			onClipEvent (load) {
				menuClosed = 0;
			}
			onClipEvent (enterFrame) {
				if (menuClosed == 0) {
					this.gotoAndStop(1);
				}
				if (menuClosed == 1) {
					this.gotoAndStop(3);
				}
				if (menuClosed == 2) {
					this.gotoAndStop(2);
				}
				if (menuClosed == 3) {
					this.gotoAndStop(4);
				}
			}
			onClipEvent (rollOver) {
				if (menuClosed == 0) {
					menuClosed = 2;
				}
				if (menuClosed == 1) {
					menuClosed = 3;
				}
			}
			onClipEvent (rollOut) {
				if (menuClosed == 2) {
					menuClosed = 0;
				}
				if (menuClosed == 3) {
					menuClosed = 1;
				}
			}
			onClipEvent (press) {
				if (menuClosed == 0 || menuClosed == 2) {
					menuClosed = 1;
					if (_root.battleDisplay.moveGUIbutton.menuMoved == 0 || _root.battleDisplay.moveGUIbutton.menuMoved == 1) {
						_root.battleDisplay.minimizeGUIbutton._x += 17.7;
					} else {
						if (_root.battleDisplay.moveGUIbutton.menuMoved == 2 || _root.battleDisplay.moveGUIbutton.menuMoved == 3) {
							_root.battleDisplay.minimizeGUIbutton._x += 17.7;
							_root.battleDisplay.minimizeGUIbutton._y += 74.3;
						} else {
							if (_root.battleDisplay.moveGUIbutton.menuMoved == 4 || _root.battleDisplay.moveGUIbutton.menuMoved == 5) {
								_root.battleDisplay.minimizeGUIbutton._x -= 228.4;
							} else {
								if (_root.battleDisplay.moveGUIbutton.menuMoved == 6 || _root.battleDisplay.moveGUIbutton.menuMoved == 7) {
									_root.battleDisplay.minimizeGUIbutton._x -= 228.4;
									_root.battleDisplay.minimizeGUIbutton._y += 74.3;
								}
							}
						}
					}
					_root.battleDisplay.guiBox._y += 1000;
					_root.battleDisplay.displayField._y += 1000;
					_root.battleDisplay.moveGUIbutton._y += 1000;
					_root.battleDisplay.qGUIbutton._y += 1000;
					_root.battleDisplay.attackButton1._y += 1000;
					_root.battleDisplay.attackButton2._y += 1000;
					_root.battleDisplay.attackButton3._y += 1000;
					_root.battleDisplay.attackButton4._y += 1000;
					_root.battleDisplay.doneButton._y += 1000;
					_root.battleDisplay.undoButton._y += 1000;
					_root.battleDisplay.rotateCW._y += 1000;
					_root.battleDisplay.rotateCCW._y += 1000;
					_root.battleDisplay.MoveIcon._y += 1000;
					_root.battleDisplay.HealthIcon._y += 1000;
					_root.battleDisplay.PsPIcon._y += 1000;
					_root.battleDisplay.CharNameField._y += 1000;
					_root.battleDisplay.StepsField._y += 1000;
					_root.battleDisplay.MaxStepsField._y += 1000;
					_root.battleDisplay.CurrHealthField._y += 1000;
					_root.battleDisplay.MaxHealthField._y += 1000;
					_root.battleDisplay.CurrPsPField._y += 1000;
					_root.battleDisplay.MaxPsPField._y += 1000;
				} else {
					if (menuClosed == 1 || menuClosed == 3) {
						menuClosed = 0;
						if (_root.battleDisplay.moveGUIbutton.menuMoved == 0 || _root.battleDisplay.moveGUIbutton.menuMoved == 1) {
							_root.battleDisplay.minimizeGUIbutton._x -= 17.7;
						} else {
							if (_root.battleDisplay.moveGUIbutton.menuMoved == 2 || _root.battleDisplay.moveGUIbutton.menuMoved == 3) {
								_root.battleDisplay.minimizeGUIbutton._x -= 17.7;
								_root.battleDisplay.minimizeGUIbutton._y -= 74.3;
							} else {
								if (_root.battleDisplay.moveGUIbutton.menuMoved == 4 || _root.battleDisplay.moveGUIbutton.menuMoved == 5) {
									_root.battleDisplay.minimizeGUIbutton._x += 228.4;
								} else {
									if (_root.battleDisplay.moveGUIbutton.menuMoved == 6 || _root.battleDisplay.moveGUIbutton.menuMoved == 7) {
										_root.battleDisplay.minimizeGUIbutton._x += 228.4;
										_root.battleDisplay.minimizeGUIbutton._y -= 74.3;
									}
								}
							}
						}
						_root.battleDisplay.guiBox._y -= 1000;
						_root.battleDisplay.displayField._y -= 1000;
						_root.battleDisplay.moveGUIbutton._y -= 1000;
						_root.battleDisplay.qGUIbutton._y -= 1000;
						_root.battleDisplay.attackButton1._y -= 1000;
						_root.battleDisplay.attackButton2._y -= 1000;
						_root.battleDisplay.attackButton3._y -= 1000;
						_root.battleDisplay.attackButton4._y -= 1000;
						_root.battleDisplay.doneButton._y -= 1000;
						_root.battleDisplay.undoButton._y -= 1000;
						_root.battleDisplay.rotateCW._y -= 1000;
						_root.battleDisplay.rotateCCW._y -= 1000;
						_root.battleDisplay.MoveIcon._y -= 1000;
						_root.battleDisplay.HealthIcon._y -= 1000;
						_root.battleDisplay.PsPIcon._y -= 1000;
						_root.battleDisplay.CharNameField._y -= 1000;
						_root.battleDisplay.StepsField._y -= 1000;
						_root.battleDisplay.MaxStepsField._y -= 1000;
						_root.battleDisplay.CurrHealthField._y -= 1000;
						_root.battleDisplay.MaxHealthField._y -= 1000;
						_root.battleDisplay.CurrPsPField._y -= 1000;
						_root.battleDisplay.MaxPsPField._y -= 1000;
					}
				}
			}
		}
		instance qGUIbutton of movieClip 4519	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.moveTurn < 16 && _root.attacked == 0) {
					_root.reDisplaySelection();
					_root.showHearts();
				}
			}
		}
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 525 {
		adjustDifficulty();
		setDefaults();
	}
	frame 526 {
		displaySelection();
		displayName();
		displayAttackButtons();
		displayHP();
		displayPsP();
		displaySteps();
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 535 {
		stop();
		playFanfareMusic();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	movieClip 5967	{
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	movieClip 5973	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 536 {
		stop();
		clearBattlefield();
		goingtoScene = 'tutorials';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 544 {
		stop();
		whichBattle = 'townfight01';
	}
	movieClip 5976	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance startRandomButton of movieClip 5976	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 545 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 325;
		char4._y = 225;
		char4._rotation += 180;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 5977	{
	}
	movieClip 5978	{
	}
	movieClip 5980	{
	}
	movieClip 5983	{
	}
	movieClip 6027	{
		frame 144 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6073	{
		frame 144 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6074	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char16 of movieClip 6074	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 553 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 25;
		name16 = 'Shadowling';
		name17 = '';
		name18 = '';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = true;
		char18Dead = true;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 28;
		MaxHP17 = 1;
		MaxHP18 = 1;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'mindblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'none';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 8;
		char17Strength = 1;
		char18Strength = 1;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 554 {
		adjustDifficulty();
		setDefaults();
	}
	frame 555 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
	}
	frame 563 {
		stop();
		gotoAndStop('battleProperTF1');
	}
	frame 564 {
		stop();
		playFanfareMusic();
		attacked = 1;
		wongold = 'Stole ' + wingold + ' gold coins!';
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 565 {
		stop();
		clearBattlefield();
		lastscene = 'townfight01';
		goingtoScene = 'town01';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 573 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	movieClip 6076	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 574 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 581 {
		stop();
		whichBattle = 'townfight02';
	}
	instance startRandomButton of movieClip 5976	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 582 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 175;
		char4._y = 175;
		char4._rotation += 180;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6077	{
	}
	movieClip 6078	{
	}
	movieClip 6080	{
	}
	movieClip 6083	{
	}
	instance char16 of movieClip 6074	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6074	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6074	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 590 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(41) + takenMoney;
		name16 = 'Vagrant';
		name17 = 'Thug 1';
		name18 = 'Thug 2';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 18;
		MaxHP17 = 14;
		MaxHP18 = 14;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'mindblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'mindblast';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'mindblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'none';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 4;
		char17Strength = 4;
		char18Strength = 4;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 591 {
		adjustDifficulty();
		setDefaults();
	}
	frame 592 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
	}
	frame 600 {
		stop();
		gotoAndStop('battleProperTF2');
	}
	frame 601 {
		stop();
		playFanfareMusic();
		attacked = 1;
		wongold = 'Stole ' + wingold + ' gold coins!';
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 602 {
		stop();
		clearBattlefield();
		lastscene = 'townfight02';
		goingtoScene = 'town01';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 610 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 611 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 618 {
		stop();
		whichBattle = 'townfight03';
	}
	instance startRandomButton of movieClip 5976	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 619 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 25;
		char4._y = 125;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6084	{
	}
	movieClip 6085	{
	}
	movieClip 6088	{
	}
	movieClip 6091	{
	}
	movieClip 6094	{
	}
	movieClip 6095	{
	}
	movieClip 6096	{
	}
	movieClip 6097	{
	}
	movieClip 6098	{
	}
	movieClip 6100	{
	}
	movieClip 6101	{
	}
	movieClip 6103	{
	}
	movieClip 6105	{
	}
	movieClip 6107	{
	}
	movieClip 6109	{
	}
	movieClip 6111	{
	}
	movieClip 6113	{
	}
	movieClip 6114	{
	}
	movieClip 6115	{
		frame 90 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6116	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6117	{
	}
	movieClip 6118	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6119	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6120	{
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			_root.enemyGo = 1;
			stop();
		}
	}
	instance char16 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 627 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(15) + 35;
		name16 = 'Huge Bug 1';
		name17 = 'Huge Bug 2';
		name18 = 'Huge Bug 3';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 18;
		MaxHP17 = 18;
		MaxHP18 = 18;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'none';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 5;
		char17Strength = 5;
		char18Strength = 5;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 628 {
		adjustDifficulty();
		setDefaults();
	}
	frame 629 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
	}
	frame 637 {
		stop();
		gotoAndStop('battleProperTF3');
	}
	frame 638 {
		stop();
		playFanfareMusic();
		attacked = 1;
		wongold = 'Found ' + _root.wingold + ' gold coins!';
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 639 {
		stop();
		clearBattlefield();
		spokeToLala = 2;
		lastscene = 'townfight03';
		goingtoScene = 'town01';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 647 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 648 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 655 {
		function pickRandomBattle() {
			encounterNum = random(6);
			if (encounterNum <= 1) {
				whichBattle = 'random01A';
			}
			if (encounterNum > 1 && encounterNum < 4) {
				whichBattle = 'random01B';
			}
			if (encounterNum >= 4) {
				whichBattle = 'random01C';
			}
		}
		stop();
		startRandom._visible = true;
		pickRandomBattle();
		startRandomButton.onPress = function () {
			startRandomButton._visible = false;
			if (whichBattle == 'random01A') {
				gotoAndPlay('startBattle01A');
			}
			if (whichBattle == 'random01B') {
				gotoAndPlay('startBattle01B');
			}
			if (whichBattle == 'random01C') {
				gotoAndPlay('startBattle01C');
			}
		};
	}
	movieClip 6123	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance startRandomButton of movieClip 6123	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
	}
	frame 656 {
		function pickRandomBattle() {
			encounterNum = random(6);
			if (!mission4Done) {
				if (encounterNum <= 1) {
					whichBattle = 'random01A';
				}
				if (encounterNum > 1 && encounterNum < 4) {
					whichBattle = 'random01B';
				}
				if (encounterNum >= 4) {
					whichBattle = 'random01C';
				}
			} else {
				if (encounterNum <= 1) {
					whichBattle = 'random01D';
				}
				if (encounterNum > 1 && encounterNum < 4) {
					whichBattle = 'random01E';
				}
				if (encounterNum >= 4) {
					whichBattle = 'random01F';
				}
			}
		}
		stop();
		startRandom._visible = true;
		pickRandomBattle();
		startRandomButton.onPress = function () {
			startRandomButton._visible = false;
			if (whichBattle == 'random01A') {
				gotoAndPlay('startBattle01A');
			}
			if (whichBattle == 'random01B') {
				gotoAndPlay('startBattle01B');
			}
			if (whichBattle == 'random01C') {
				gotoAndPlay('startBattle01C');
			}
			if (whichBattle == 'random01D') {
				gotoAndPlay('startBattle01D');
			}
			if (whichBattle == 'random01E') {
				gotoAndPlay('startBattle01E');
			}
			if (whichBattle == 'random01F') {
				gotoAndPlay('startBattle01F');
			}
		};
	}
	movieClip 6125	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance startRandomButton of movieClip 6125	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
	}
	frame 657 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6126	{
	}
	movieClip 6127	{
	}
	movieClip 6128	{
	}
	movieClip 6130	{
	}
	movieClip 6133	{
	}
	movieClip 6139	{
	}
	movieClip 6142	{
	}
	movieClip 6143	{
	}
	instance char16 of movieClip 5950	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 17;
				while (i < 26) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitBadLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitBadRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitBadUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitBadDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitBadLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitBadRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitBadUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitBadDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBadUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBadDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBadUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBadDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBadUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBadDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBadUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBadDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBadUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBadDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBadUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBadDownLeft2 = true;
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char18 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 665 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 55;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Stone Golem';
		name17 = 'Swordsman 1';
		name18 = 'Swordsman 2';
		name19 = 'Crossbowman 1';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 34;
		MaxHP17 = 20;
		MaxHP18 = 20;
		MaxHP19 = 17;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 2;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'crossbow';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'none';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 9;
		char17Strength = 6;
		char18Strength = 6;
		char19Strength = 7;
		char20Strength = 10;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 666 {
		adjustDifficulty();
		setDefaults();
	}
	frame 667 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 675 {
		stop();
		gotoAndStop('battleProper01A');
	}
	frame 676 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 677 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 685 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 686 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 693 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6144	{
	}
	movieClip 6145	{
	}
	movieClip 6148	{
	}
	movieClip 6151	{
	}
	movieClip 6152	{
	}
	instance char16 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 702 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 55;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Swordsman 1';
		name17 = 'Crossbowman 1';
		name18 = 'Crossbowman 2';
		name19 = 'Crossbowman 3';
		name20 = 'Swordsman 2';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 20;
		MaxHP17 = 17;
		MaxHP18 = 17;
		MaxHP19 = 17;
		MaxHP20 = 20;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 2;
		MaxSteps18 = 2;
		MaxSteps19 = 2;
		MaxSteps20 = 3;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'crossbow';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'crossbow';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'crossbow';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 6;
		char17Strength = 7;
		char18Strength = 7;
		char19Strength = 7;
		char20Strength = 6;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 703 {
		adjustDifficulty();
		setDefaults();
	}
	frame 704 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 712 {
		stop();
		gotoAndStop('battleProper01B');
	}
	frame 713 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 714 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 722 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 723 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 730 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6153	{
	}
	movieClip 6154	{
	}
	movieClip 6157	{
	}
	movieClip 6163	{
	}
	movieClip 6169	{
	}
	movieClip 6172	{
	}
	movieClip 6175	{
	}
	movieClip 6181	{
	}
	movieClip 6187	{
	}
	movieClip 6188	{
	}
	movieClip 6191	{
	}
	movieClip 6194	{
	}
	movieClip 6197	{
	}
	movieClip 6200	{
	}
	movieClip 6203	{
	}
	movieClip 6204	{
	}
	movieClip 6210	{
	}
	movieClip 6216	{
	}
	movieClip 6219	{
	}
	movieClip 6222	{
	}
	movieClip 6223	{
	}
	movieClip 6226	{
	}
	movieClip 6229	{
	}
	movieClip 6230	{
	}
	instance char19 of movieClip 5950	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 19) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 739 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 65;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Swordsman 1';
		name17 = 'Crossbowman 1';
		name18 = 'Crossbowman 2';
		name19 = 'Stone Golem 1';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 20;
		MaxHP17 = 17;
		MaxHP18 = 17;
		MaxHP19 = 34;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 2;
		MaxSteps18 = 2;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'crossbow';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'crossbow';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 6;
		char17Strength = 7;
		char18Strength = 7;
		char19Strength = 9;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 740 {
		adjustDifficulty();
		setDefaults();
	}
	frame 741 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 749 {
		stop();
		gotoAndStop('battleProper01C');
	}
	frame 750 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 751 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 759 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 760 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 769 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6233	{
	}
	movieClip 6234	{
	}
	movieClip 6235	{
	}
	movieClip 6255	{
		frame 79 {
			stop();
		}
		frame 79 {
			stop();
		}
	}
	movieClip 6256	{
		frame 145 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6257	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6258	{
	}
	movieClip 6270	{
		frame 115 {
			stop();
			_root.attacked = 1;
			_root.changeturns();
		}
	}
	movieClip 6271	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6272	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6273	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char18 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (rollOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6274	{
	}
	movieClip 6275	{
	}
	movieClip 6277	{
	}
	movieClip 6278	{
	}
	movieClip 6279	{
	}
	movieClip 6281	{
	}
	movieClip 6283	{
	}
	movieClip 6286	{
	}
	movieClip 6287	{
		frame 1 {
			stop();
		}
		instance of movieClip 6286	{
			onClipEvent (enterFrame) {
				if (Key.isDown(32)) {
					_parent.play();
				}
			}
		}
	}
	movieClip 6289	{
	}
	movieClip 6291	{
	}
	movieClip 6292	{
	}
	movieClip 6293	{
		frame 110 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6294	{
		frame 40 {
			_root.display = '';
			_root.attacked = 3;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6295	{
		frame 114 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6296	{
	}
	movieClip 6297	{
	}
	movieClip 6298	{
		frame 110 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6299	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6300	{
	}
	movieClip 6301	{
	}
	movieClip 6302	{
		frame 150 {
			stop();
			_root.shownHearts = false;
			_parent._parent.gotoAndStop(1);
		}
	}
	movieClip 6303	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 6304	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char21 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6305	{
	}
	movieClip 6308	{
		frame 70 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6309	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6310	{
		frame 40 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6311	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6312	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6313	{
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			_root.enemyGo = 1;
			stop();
		}
	}
	instance char19 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 19) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char23 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 777 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 200;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Mech. Captain 1';
		name17 = 'Mech. Captain 2';
		name18 = 'Red Spriggat';
		name19 = 'Bronze Golem';
		name20 = 'Marksman 1';
		name21 = 'Marksman 2';
		name22 = 'Marksman 3';
		name23 = 'Mech. Captain 3';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 36;
		MaxHP17 = 36;
		MaxHP18 = 36;
		MaxHP19 = 45;
		MaxHP20 = 28;
		MaxHP21 = 28;
		MaxHP22 = 28;
		MaxHP23 = 36;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 1;
		MaxSteps20 = 2;
		MaxSteps21 = 2;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'spinsaw';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'Light';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 11;
		char17Strength = 11;
		char18Strength = 10;
		char19Strength = 12;
		char20Strength = 14;
		char21Strength = 14;
		char22Strength = 14;
		char23Strength = 11;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 778 {
		adjustDifficulty();
		setDefaults();
	}
	frame 779 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 787 {
		stop();
		gotoAndStop('battleProper01D');
	}
	frame 788 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 789 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 797 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 798 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 805 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	frame 814 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 200;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Mech. Captain 1';
		name17 = 'Mech. Captain 2';
		name18 = 'Red Spriggat';
		name19 = 'Bronze Golem';
		name20 = 'Marksman 1';
		name21 = 'Marksman 2';
		name22 = 'Marksman 3';
		name23 = 'Mech. Captain 3';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 36;
		MaxHP17 = 36;
		MaxHP18 = 36;
		MaxHP19 = 45;
		MaxHP20 = 28;
		MaxHP21 = 28;
		MaxHP22 = 28;
		MaxHP23 = 36;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 1;
		MaxSteps20 = 2;
		MaxSteps21 = 2;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'spinsaw';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'Light';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 11;
		char17Strength = 11;
		char18Strength = 10;
		char19Strength = 12;
		char20Strength = 14;
		char21Strength = 14;
		char22Strength = 14;
		char23Strength = 11;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 815 {
		adjustDifficulty();
		setDefaults();
	}
	frame 816 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 824 {
		stop();
		gotoAndStop('battleProper01E');
	}
	frame 825 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 826 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 834 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 835 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 842 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	instance char18 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 851 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 200;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Mech. Captain 1';
		name17 = 'Mech. Captain 2';
		name18 = 'Red Spriggat 1';
		name19 = 'Bronze Golem';
		name20 = 'Marksman 1';
		name21 = 'Marksman 2';
		name22 = 'Marksman 3';
		name23 = 'Red Spriggat 2';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 36;
		MaxHP17 = 36;
		MaxHP18 = 36;
		MaxHP19 = 45;
		MaxHP20 = 28;
		MaxHP21 = 28;
		MaxHP22 = 28;
		MaxHP23 = 36;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 1;
		MaxSteps20 = 2;
		MaxSteps21 = 2;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'spinsaw';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'firebreath';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'Light';
		char23Resists = 'Heat';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 11;
		char17Strength = 11;
		char18Strength = 10;
		char19Strength = 12;
		char20Strength = 14;
		char21Strength = 14;
		char22Strength = 14;
		char23Strength = 10;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 852 {
		adjustDifficulty();
		setDefaults();
	}
	frame 853 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 861 {
		stop();
		gotoAndStop('battleProper01F');
	}
	frame 862 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 863 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 871 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 872 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 879 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6314	{
	}
	frame 888 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 65;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Swordsman 1';
		name17 = 'Crossbowman 1';
		name18 = 'Crossbowman 2';
		name19 = 'Stone Golem 1';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 20;
		MaxHP17 = 17;
		MaxHP18 = 17;
		MaxHP19 = 34;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 2;
		MaxSteps18 = 2;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'crossbow';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'crossbow';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 6;
		char17Strength = 7;
		char18Strength = 7;
		char19Strength = 9;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	frame 889 {
		adjustDifficulty();
		setDefaults();
	}
	frame 890 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 898 {
		stop();
		gotoAndStop('battleProper01G');
	}
	frame 899 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	frame 900 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 908 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	frame 909 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 918 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	frame 927 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 200;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Mech. Captain 1';
		name17 = 'Mech. Captain 2';
		name18 = 'Red Spriggat 1';
		name19 = 'Bronze Golem';
		name20 = 'Marksman 1';
		name21 = 'Marksman 2';
		name22 = 'Marksman 3';
		name23 = 'Red Spriggat 2';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 36;
		MaxHP17 = 36;
		MaxHP18 = 36;
		MaxHP19 = 45;
		MaxHP20 = 28;
		MaxHP21 = 28;
		MaxHP22 = 28;
		MaxHP23 = 36;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 1;
		MaxSteps20 = 2;
		MaxSteps21 = 2;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'spinsaw';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'firebreath';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'Light';
		char23Resists = 'Heat';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 11;
		char17Strength = 11;
		char18Strength = 10;
		char19Strength = 12;
		char20Strength = 14;
		char21Strength = 14;
		char22Strength = 14;
		char23Strength = 10;
		char24Strength = 1;
		char25Strength = 1;
	}
	frame 928 {
		adjustDifficulty();
		setDefaults();
	}
	frame 929 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 937 {
		stop();
		gotoAndStop('battleProper01H');
	}
	frame 938 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	frame 939 {
		stop();
		clearBattlefield();
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 947 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	frame 948 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 957 {
		stop();
		whichBattle = 'mission02A';
	}
	movieClip 6317	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6317	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 958 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6318	{
	}
	movieClip 6319	{
	}
	movieClip 6322	{
	}
	movieClip 6325	{
	}
	movieClip 6328	{
	}
	movieClip 6329	{
	}
	instance char17 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 5950	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char20 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 966 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 95;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Swordsman 1';
		name17 = 'Swordsman 2';
		name18 = 'Stone Golem';
		name19 = 'Crossbowman 1';
		name20 = 'Swordsman 3';
		name21 = 'Swordsman 4';
		name22 = 'Crossbowman 2';
		name23 = 'Swordsman 5';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 20;
		MaxHP17 = 20;
		MaxHP18 = 34;
		MaxHP19 = 17;
		MaxHP20 = 20;
		MaxHP21 = 20;
		MaxHP22 = 17;
		MaxHP23 = 20;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 1;
		MaxSteps19 = 2;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'crossbow';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 6;
		char17Strength = 6;
		char18Strength = 9;
		char19Strength = 7;
		char20Strength = 6;
		char21Strength = 6;
		char22Strength = 7;
		char23Strength = 6;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 967 {
		adjustDifficulty();
		setDefaults();
	}
	frame 968 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 976 {
		stop();
		gotoAndStop('battleProper02A');
	}
	frame 977 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 978 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle02B';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 986 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 987 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 995 {
		stop();
		whichBattle = 'mission02B';
	}
	movieClip 6332	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6332	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 996 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6333	{
	}
	movieClip 6334	{
	}
	movieClip 6337	{
	}
	movieClip 6340	{
	}
	movieClip 6343	{
	}
	movieClip 6346	{
	}
	movieClip 6349	{
	}
	movieClip 6352	{
	}
	movieClip 6354	{
	}
	movieClip 6355	{
	}
	movieClip 6357	{
	}
	instance char19 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 20) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 100;
					this._y -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 100;
					this._y += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 100;
					this._y -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 100;
					this._y += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 100;
					this._x -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 100;
					this._x += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 100;
					this._x -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 100;
					this._x += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._x < this._x && _root.char4._y < this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitWallUpLeft == false) {
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.char4._y < this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitWallUpLeft == false) {
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.char4._y > this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitWallDownLeft == false) {
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.char4._y > this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitWallDownLeft == false) {
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.char4._y < this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitWallUpRight == false) {
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.char4._y < this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitWallUpRight == false) {
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.char4._y > this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitWallDownRight == false) {
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.char4._y > this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitWallDownRight == false) {
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && char18Damage > 0 && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char17 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 5950	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 22) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char24._y < 350 || _root.char24Dead == true) {
					if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._y -= 50;
						this._rotation = 180;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._y += 50;
						this._rotation = 0;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._x -= 50;
						this._rotation = 90;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._x += 50;
						this._rotation = 270;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._y -= 50;
						this._rotation = 180;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._y += 50;
						this._rotation = 0;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._y -= 50;
						this._rotation = 180;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._y += 50;
						this._rotation = 0;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._x -= 50;
						this._rotation = 90;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._x += 50;
						this._rotation = 270;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._x -= 50;
						this._rotation = 90;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._x += 50;
						this._rotation = 270;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 17;
				while (i < 26) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitBadLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitBadRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitBadUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitBadDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitBadLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitBadRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitBadUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitBadDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBadUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBadDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBadUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBadDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBadUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBadDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBadUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBadDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBadUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBadDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBadUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBadDownLeft2 = true;
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 100;
					this._y -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 100;
					this._y += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 100;
					this._y -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 100;
					this._y += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 100;
					this._x -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 100;
					this._x += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 100;
					this._x -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 100;
					this._x += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._x < this._x && _root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitWallDownLeft == false) {
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitWallDownLeft == false) {
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitWallDownRight == false) {
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitWallDownRight == false) {
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	movieClip 6361	{
	}
	movieClip 6364	{
	}
	movieClip 6365	{
	}
	movieClip 6366	{
	}
	movieClip 6379	{
		frame 105 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6380	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6381	{
	}
	movieClip 6382	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6383	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6384	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char25 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo25();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 25 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 25 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char24 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo24();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 24 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 24) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 100;
					this._y -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 100;
					this._y += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 100;
					this._y -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 100;
					this._y += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 100;
					this._x -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 100;
					this._x += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 100;
					this._x -= 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 100;
					this._x += 50;
					_root.steps += 3;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && this._y !== 350 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					this._y -= 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 100;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					this._y += 50;
					_root.steps += 2;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 24 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char23 of movieClip 5950	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 23) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char24._y < 350 || _root.char24Dead == true) {
					if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._y -= 50;
						this._rotation = 180;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._y += 50;
						this._rotation = 0;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._x -= 50;
						this._rotation = 90;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._x += 50;
						this._rotation = 270;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._y -= 50;
						this._rotation = 180;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._y += 50;
						this._rotation = 0;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._y -= 50;
						this._rotation = 180;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._y += 50;
						this._rotation = 0;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._x -= 50;
						this._rotation = 90;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._x += 50;
						this._rotation = 270;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._x -= 50;
						this._rotation = 90;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
					if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._x += 50;
						this._rotation = 270;
						_root.steps += 1;
						_root.displaySteps();
						_root.moved = 1;
					}
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1004 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(35) + 145;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Swordsman 1';
		name17 = 'Crossbowman 1';
		name18 = 'Swordsman 2';
		name19 = 'Swordsman 3';
		name20 = 'Swordsman 4';
		name21 = 'Crossbowman 2';
		name22 = 'Stone Golem 1';
		name23 = 'Stone Golem 2';
		name24 = 'Mech. Captain';
		name25 = '???';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = false;
		char25Dead = false;
		MaxHP16 = 20;
		MaxHP17 = 17;
		MaxHP18 = 20;
		MaxHP19 = 20;
		MaxHP20 = 20;
		MaxHP21 = 17;
		MaxHP22 = 34;
		MaxHP23 = 34;
		MaxHP24 = 36;
		MaxHP25 = 32;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 2;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 2;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 3;
		MaxSteps25 = 0;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'crossbow';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 6;
		char17Strength = 7;
		char18Strength = 6;
		char19Strength = 6;
		char20Strength = 6;
		char21Strength = 7;
		char22Strength = 9;
		char23Strength = 9;
		char24Strength = 11;
		char25Strength = 10;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1005 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1006 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1014 {
		stop();
		gotoAndStop('battleProper02B');
	}
	frame 1015 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.mission2Done = true;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1016 {
		stop();
		clearBattlefield();
		mission2Done = true;
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1024 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1025 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1033 {
		stop();
		whichBattle = 'mission03A';
	}
	instance of movieClip 6125	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1034 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6385	{
	}
	movieClip 6386	{
	}
	movieClip 6387	{
	}
	movieClip 6388	{
	}
	instance char17 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	movieClip 6390	{
	}
	instance Overhead of movieClip 6390	{
		onClipEvent (load) {
			this.swapDepths(88000);
		}
	}
	frame 1042 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(35) + 95;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Swordsman 1';
		name17 = 'Swordsman 2';
		name18 = 'Energy Golem';
		name19 = 'Crossbowman 1';
		name20 = 'Swordsman 3';
		name21 = 'Swordsman 4';
		name22 = 'Crossbowman 2';
		name23 = 'Mech. Captain';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 20;
		MaxHP17 = 20;
		MaxHP18 = 32;
		MaxHP19 = 17;
		MaxHP20 = 20;
		MaxHP21 = 20;
		MaxHP22 = 17;
		MaxHP23 = 36;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 0;
		MaxSteps19 = 2;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'laserblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'crossbow';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 6;
		char17Strength = 6;
		char18Strength = 10;
		char19Strength = 7;
		char20Strength = 6;
		char21Strength = 6;
		char22Strength = 7;
		char23Strength = 11;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1043 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1044 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1052 {
		stop();
		gotoAndStop('battleProper03A');
	}
	frame 1053 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1054 {
		stop();
		clearBattlefield();
		spokeToTastidian = 6;
		goingtoScene = 'cave02';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1062 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1063 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1071 {
		stop();
		whichBattle = 'mission03B';
	}
	instance of movieClip 6125	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1072 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6391	{
	}
	movieClip 6392	{
	}
	movieClip 6393	{
	}
	movieClip 6394	{
	}
	instance char17 of movieClip 5950	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 4585	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 4577	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char25 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo25();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 25 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 25 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	movieClip 6396	{
	}
	instance Overhead of movieClip 6396	{
		onClipEvent (load) {
			this.swapDepths(88000);
		}
	}
	frame 1080 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 150;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Swordsman 1';
		name17 = 'Stone Golem';
		name18 = 'Energy Golem 1';
		name19 = 'Crossbowman 1';
		name20 = 'Swordsman 2';
		name21 = 'Swordsman 3';
		name22 = 'Crossbowman 2';
		name23 = 'Mech. Captain';
		name24 = '';
		name25 = 'Energy Golem 2';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = false;
		MaxHP16 = 20;
		MaxHP17 = 34;
		MaxHP18 = 32;
		MaxHP19 = 17;
		MaxHP20 = 20;
		MaxHP21 = 20;
		MaxHP22 = 17;
		MaxHP23 = 36;
		MaxHP24 = 1;
		MaxHP25 = 32;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 1;
		MaxSteps18 = 0;
		MaxSteps19 = 2;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 0;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'laserblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'crossbow';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 6;
		char17Strength = 9;
		char18Strength = 10;
		char19Strength = 7;
		char20Strength = 6;
		char21Strength = 6;
		char22Strength = 7;
		char23Strength = 11;
		char24Strength = 1;
		char25Strength = 10;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1081 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1082 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1090 {
		stop();
		gotoAndStop('battleProper03B');
	}
	frame 1091 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1092 {
		stop();
		clearBattlefield();
		goingtoScene = 'cave02B';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1100 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1101 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1109 {
		stop();
		whichBattle = 'mission03C';
	}
	movieClip 6399	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6399	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1110 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6400	{
	}
	movieClip 6401	{
	}
	movieClip 6404	{
	}
	movieClip 6407	{
	}
	movieClip 6409	{
	}
	instance char19 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharLeft3 == true && _root.hitCharLeft2 == true) {
						if (!_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft) {
							this._rotation = 90;
							this._x -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharRight3 == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight) {
							this._rotation = 270;
							this._x += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharUp3 == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp) {
							this._rotation = 180;
							this._y -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharDown3 == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown) {
							this._rotation = 0;
							this._y += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.selfDamaged == true) {
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	instance char18 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharLeft3 == true && _root.hitCharLeft2 == true) {
						if (!_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft) {
							this._rotation = 90;
							this._x -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharRight3 == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight) {
							this._rotation = 270;
							this._x += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharUp3 == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp) {
							this._rotation = 180;
							this._y -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharDown3 == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown) {
							this._rotation = 0;
							this._y += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char17 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	movieClip 6411	{
	}
	instance Overhead of movieClip 6411	{
		onClipEvent (load) {
			this.swapDepths(88000);
		}
	}
	frame 1118 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 500;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Energy Golem 1';
		name17 = 'Energy Golem 2';
		name18 = 'Locke';
		name19 = 'Hobbes';
		name20 = 'Rousseau';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 32;
		MaxHP17 = 32;
		MaxHP18 = 50;
		MaxHP19 = 50;
		MaxHP20 = 50;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 0;
		MaxSteps17 = 0;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'laserblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'laserblast';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'frostblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'frostblast';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'bigshield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Cold';
		char19Resists = 'Cold';
		char20Resists = 'Cold';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 10;
		char17Strength = 10;
		char18Strength = 13;
		char19Strength = 13;
		char20Strength = 20;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1119 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1120 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1128 {
		stop();
		gotoAndStop('battleProper03C');
	}
	frame 1129 {
		stop();
		playFanfareMusic();
		attacked = 1;
		formation = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1130 {
		stop();
		clearBattlefield();
		mission3Done = true;
		goingtoScene = 'mapScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1138 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1139 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1147 {
		stop();
		whichBattle = 'mission04A';
	}
	movieClip 6414	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6414	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1148 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6415	{
	}
	movieClip 6416	{
	}
	movieClip 6419	{
	}
	movieClip 6422	{
	}
	movieClip 6425	{
	}
	movieClip 6428	{
	}
	movieClip 6430	{
	}
	movieClip 6431	{
	}
	instance char19 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharLeft3 == true && _root.hitCharLeft2 == true) {
						if (!_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft) {
							this._rotation = 90;
							this._x -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharRight3 == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight) {
							this._rotation = 270;
							this._x += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharUp3 == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp) {
							this._rotation = 180;
							this._y -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharDown3 == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown) {
							this._rotation = 0;
							this._y += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharLeft3 == true && _root.hitCharLeft2 == true) {
						if (!_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft) {
							this._rotation = 90;
							this._x -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharRight3 == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight) {
							this._rotation = 270;
							this._x += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharUp3 == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp) {
							this._rotation = 180;
							this._y -= 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.hitCharDown3 == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						if (!_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown) {
							this._rotation = 0;
							this._y += 50;
							_root.steps += 1;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1156 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 250;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Giant Bug 1';
		name17 = 'Giant Bug 2';
		name18 = 'Red Spriggat 1';
		name19 = 'Red Spriggat 2';
		name20 = 'Giant Bug 3';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 30;
		MaxHP17 = 30;
		MaxHP18 = 36;
		MaxHP19 = 36;
		MaxHP20 = 30;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'firebreath';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Shadow';
		char17Resists = 'Shadow';
		char18Resists = 'Heat';
		char19Resists = 'Heat';
		char20Resists = 'Shadow';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 9;
		char17Strength = 9;
		char18Strength = 10;
		char19Strength = 10;
		char20Strength = 9;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1157 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1158 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1166 {
		stop();
		gotoAndStop('battleProper04A');
	}
	frame 1167 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1168 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle04B';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1176 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1177 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1185 {
		stop();
		whichBattle = 'mission04B';
	}
	movieClip 6434	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6434	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1186 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6435	{
	}
	movieClip 6436	{
	}
	movieClip 6438	{
	}
	movieClip 6439	{
	}
	instance char16 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6441	{
	}
	movieClip 6443	{
	}
	movieClip 6445	{
	}
	movieClip 6447	{
	}
	movieClip 6448	{
	}
	movieClip 6449	{
		frame 90 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6450	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6451	{
	}
	movieClip 6452	{
		frame 90 {
			stop();
			_root.attacked = 1;
			_root.changeturns();
		}
	}
	movieClip 6453	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6454	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6455	{
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 3 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			_root.enemyGo = 1;
			stop();
		}
	}
	instance char20 of movieClip 6455	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	frame 1194 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 250;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Giant Bug 1';
		name17 = 'Giant Bug 2';
		name18 = 'Giant Bug 3';
		name19 = 'Giant Bug 4';
		name20 = 'Nymph';
		name21 = 'Giant Bug 5';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 30;
		MaxHP17 = 30;
		MaxHP18 = 30;
		MaxHP19 = 30;
		MaxHP20 = 38;
		MaxHP21 = 30;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'megashield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Shadow';
		char17Resists = 'Shadow';
		char18Resists = 'Shadow';
		char19Resists = 'Shadow';
		char20Resists = 'Cold';
		char21Resists = 'Shadow';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 9;
		char17Strength = 9;
		char18Strength = 9;
		char19Strength = 9;
		char20Strength = 16;
		char21Strength = 9;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1195 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1196 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1204 {
		stop();
		gotoAndStop('battleProper04B');
	}
	frame 1205 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1206 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle04C';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1214 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1215 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1223 {
		stop();
		whichBattle = 'mission04C';
	}
	movieClip 6457	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6457	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1224 {
		stop();
		populateBattlefield();
		setDefaults();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6458	{
	}
	movieClip 6459	{
	}
	movieClip 6462	{
	}
	movieClip 6465	{
	}
	movieClip 6468	{
	}
	movieClip 6469	{
	}
	movieClip 6470	{
	}
	instance char19 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6472	{
	}
	movieClip 6474	{
	}
	movieClip 6476	{
	}
	movieClip 6477	{
	}
	movieClip 6478	{
		frame 90 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6479	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6480	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6481	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6482	{
		frame 1 {
			_root.enemyGo = 1;
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			_root.enemyGo = 1;
			stop();
		}
	}
	instance char25 of movieClip 6482	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo25();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 25 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharDown = false;
				_root.hitCharDown2 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					++i;
				}
				if (_root.hitCharDown == true) {
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true) {
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 25 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char18 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 6455	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.senseDamage();
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				if (_root.char25Damaged == false) {
				}
				if (_root.char25Damaged == true) {
					if (_root.char25.hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
		}
	}
	instance char23 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6120	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1232 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 950;
		if (gotHelena) {
			oldgold = wingold;
			wingold -= 500;
		}
		name16 = 'Giant Bug 1';
		name17 = 'Giant Bug 2';
		name18 = 'Giant Bug 3';
		name19 = 'Red Spriggat 1';
		name20 = 'Red Spriggat 2';
		name21 = 'Nymph';
		name22 = 'Giant Bug 4';
		name23 = 'Giant Bug 5';
		name24 = '';
		name25 = 'Bug Queen';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = false;
		MaxHP16 = 30;
		MaxHP17 = 30;
		MaxHP18 = 30;
		MaxHP19 = 36;
		MaxHP20 = 36;
		MaxHP21 = 38;
		MaxHP22 = 30;
		MaxHP23 = 30;
		MaxHP24 = 1;
		MaxHP25 = 90;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 2;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'firebreath';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'firebreath';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'megashield';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Shadow';
		char17Resists = 'Shadow';
		char18Resists = 'Shadow';
		char19Resists = 'Heat';
		char20Resists = 'Heat';
		char21Resists = 'Cold';
		char22Resists = 'Shadow';
		char23Resists = 'Shadow';
		char24Resists = 'none';
		char25Resists = 'Shadow';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 9;
		char17Strength = 9;
		char18Strength = 9;
		char19Strength = 10;
		char20Strength = 10;
		char21Strength = 16;
		char22Strength = 9;
		char23Strength = 9;
		char24Strength = 1;
		char25Strength = 17;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1233 {
		adjustDifficulty();
	}
	frame 1234 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1242 {
		stop();
		gotoAndStop('battleProper04C');
	}
	frame 1243 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		if (gotHelena) {
			wongold = 'Won ' + _root.oldgold + ' gold coins! Helena takes 500.';
		}
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1244 {
		stop();
		clearBattlefield();
		mission4Done = true;
		goingtoScene = 'deeper04';
		hitSwitch = 0;
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1252 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1253 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1261 {
		stop();
		whichBattle = 'mission05A';
	}
	movieClip 6485	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6485	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1262 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6486	{
	}
	movieClip 6487	{
	}
	movieClip 6489	{
	}
	movieClip 6504	{
	}
	movieClip 6507	{
	}
	movieClip 6510	{
	}
	movieClip 6513	{
	}
	movieClip 6514	{
	}
	instance char18 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char17 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char21 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 19) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char23 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char24 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo24();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 24 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 24 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char25 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo25();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 25 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 25 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1270 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 230;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Energy Golem 1';
		name17 = 'Energy Golem 2';
		name18 = 'Red Spriggat';
		name19 = 'Bronze Golem';
		name20 = 'Marksman 1';
		name21 = 'Marksman 2';
		name22 = 'Marksman 3';
		name23 = 'Mech. Captain';
		name24 = 'Energy Golem 3';
		name25 = 'Energy Golem 4';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = false;
		char25Dead = false;
		MaxHP16 = 32;
		MaxHP17 = 32;
		MaxHP18 = 36;
		MaxHP19 = 45;
		MaxHP20 = 28;
		MaxHP21 = 28;
		MaxHP22 = 28;
		MaxHP23 = 36;
		MaxHP24 = 32;
		MaxHP25 = 32;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 0;
		MaxSteps17 = 0;
		MaxSteps18 = 3;
		MaxSteps19 = 1;
		MaxSteps20 = 2;
		MaxSteps21 = 2;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 0;
		MaxSteps25 = 0;
		char16AttackType1 = 'laserblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'laserblast';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'spinsaw';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'laserblast';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'Light';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 10;
		char17Strength = 10;
		char18Strength = 10;
		char19Strength = 12;
		char20Strength = 14;
		char21Strength = 14;
		char22Strength = 14;
		char23Strength = 11;
		char24Strength = 10;
		char25Strength = 10;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1271 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1272 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1280 {
		stop();
		gotoAndStop('battleProper05A');
	}
	frame 1281 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1282 {
		stop();
		clearBattlefield();
		beat05A = true;
		goingtoScene = 'workshop01';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1290 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1291 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1299 {
		stop();
		whichBattle = 'mission05B';
	}
	movieClip 6517	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6517	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1300 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 375;
		char4._y = 275;
		char4._rotation += 180;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6520	{
	}
	movieClip 6521	{
	}
	movieClip 6523	{
	}
	movieClip 6524	{
	}
	instance char17 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 16) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1308 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 25;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Bronze Golem 1';
		name17 = 'Bronze Golem 2';
		name18 = '';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = true;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 45;
		MaxHP17 = 45;
		MaxHP18 = 1;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'spinsaw';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'spinsaw';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 12;
		char17Strength = 12;
		char18Strength = 1;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1309 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1310 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1318 {
		stop();
		gotoAndStop('battleProper05B');
	}
	frame 1319 {
		stop();
		playFanfareMusic();
		attacked = 1;
		if (gotSaw == false) {
			gotSawNum = random(8);
			if (gotSawNum == 1) {
				wongold = 'Won ' + _root.wingold + ' gold coins and a Spin Saw!';
				gotSaw = true;
			}
		}
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1320 {
		stop();
		clearBattlefield();
		goingtoScene = lastscene;
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1328 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1329 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1337 {
		stop();
		whichBattle = 'mission05C';
	}
	instance of movieClip 6517	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1338 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 375;
		char4._y = 275;
		char4._rotation += 180;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6525	{
	}
	movieClip 6526	{
	}
	movieClip 6527	{
	}
	movieClip 6528	{
	}
	instance char17 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 16) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1346 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 25;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Bronze Golem 1';
		name17 = 'Bronze Golem 2';
		name18 = '';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = true;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 45;
		MaxHP17 = 45;
		MaxHP18 = 1;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'spinsaw';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'spinsaw';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 12;
		char17Strength = 12;
		char18Strength = 1;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1347 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1348 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1356 {
		stop();
		gotoAndStop('battleProper05C');
	}
	frame 1357 {
		stop();
		playFanfareMusic();
		attacked = 1;
		if (gotSaw == false) {
			gotSawNum = random(8);
			if (gotSawNum == 1) {
				wongold = 'Won ' + _root.wingold + ' gold coins and a Spin Saw!';
				gotSaw = true;
			}
		}
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1358 {
		stop();
		clearBattlefield();
		goingtoScene = lastscene;
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1366 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1367 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1375 {
		stop();
		whichBattle = 'mission05D';
	}
	instance of movieClip 6517	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1376 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 375;
		char4._y = 275;
		char4._rotation += 180;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6530	{
	}
	movieClip 6531	{
	}
	movieClip 6533	{
	}
	movieClip 6534	{
	}
	instance char17 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 16) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1384 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 25;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Bronze Golem 1';
		name17 = 'Bronze Golem 2';
		name18 = '';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = true;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 45;
		MaxHP17 = 45;
		MaxHP18 = 1;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'spinsaw';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'spinsaw';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'Heat';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 12;
		char17Strength = 12;
		char18Strength = 1;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1385 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1386 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1394 {
		stop();
		gotoAndStop('battleProper05D');
	}
	frame 1395 {
		stop();
		playFanfareMusic();
		attacked = 1;
		if (gotSaw == false) {
			gotSawNum = random(8);
			if (gotSawNum == 1) {
				wongold = 'Won ' + _root.wingold + ' gold coins and a Spin Saw!';
				gotSaw = true;
			}
		}
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1396 {
		stop();
		clearBattlefield();
		goingtoScene = lastscene;
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1404 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1405 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1413 {
		stop();
		whichBattle = 'mission05E';
	}
	instance of movieClip 6517	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1414 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 275;
		char4._y = 375;
		char4._rotation += 180;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6536	{
	}
	movieClip 6537	{
	}
	movieClip 6538	{
	}
	movieClip 6539	{
	}
	instance char17 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 16) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char18 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 18) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1422 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 40;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Bronze Golem 1';
		name17 = 'Bronze Golem 2';
		name18 = 'Bronze Golem 3';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 45;
		MaxHP17 = 45;
		MaxHP18 = 45;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'spinsaw';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'spinsaw';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'spinsaw';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 12;
		char17Strength = 12;
		char18Strength = 12;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1423 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1424 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1432 {
		stop();
		gotoAndStop('battleProper05E');
	}
	frame 1433 {
		stop();
		playFanfareMusic();
		attacked = 1;
		if (gotSaw == false) {
			gotSawNum = random(6);
			if (gotSawNum == 1) {
				wongold = 'Won ' + _root.wingold + ' gold coins and a Spin Saw!';
				gotSaw = true;
			}
		}
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1434 {
		stop();
		clearBattlefield();
		goingtoScene = lastscene;
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1442 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1443 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1451 {
		stop();
		whichBattle = 'mission05F';
	}
	instance of movieClip 6517	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1452 {
		stop();
		char1Dead = true;
		char2Dead = true;
		char3Dead = true;
		char5Dead = true;
		char6Dead = true;
		char7Dead = true;
		char8Dead = true;
		char9Dead = true;
		char10Dead = true;
		char11Dead = true;
		char12Dead = true;
		char13Dead = true;
		char14Dead = true;
		char15Dead = true;
		_root.attachMovie('mainChar', 'char4', 5);
		name4 = mainCharName;
		char4Dead = false;
		char4Movement = mainCharMovement;
		MaxHP4 = mainCharHP;
		MaxPsP4 = mainCharPsP;
		MaxSteps4 = mainCharSpeed;
		char4AttackType1 = mainCharAttackType1;
		char4AttackType2 = mainCharAttackType2;
		char4AttackType3 = mainCharAttackType3;
		char4AttackType4 = mainCharAttackType4;
		char4Strength = 1;
		char4PsyPower = mainCharPsyPower;
		char4PsyDefense = mainCharPsyDefense;
		char4MBlevel = mainCharMBLevel;
		char4MSlevel = mainCharMSLevel;
		char4PBlevel = mainCharPBLevel;
		char4FBmax = mainCharFBLevel + mainCharPsyDefense;
		char4._x = 275;
		char4._y = 225;
		char4._rotation += 180;
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6542	{
	}
	movieClip 6543	{
	}
	movieClip 6545	{
	}
	movieClip 6546	{
	}
	instance char17 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 16) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char18 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 18) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1460 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 40;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Bronze Golem 1';
		name17 = 'Bronze Golem 2';
		name18 = 'Bronze Golem 3';
		name19 = '';
		name20 = '';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = true;
		char20Dead = true;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 45;
		MaxHP17 = 45;
		MaxHP18 = 45;
		MaxHP19 = 1;
		MaxHP20 = 1;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'spinsaw';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'spinsaw';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'spinsaw';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 12;
		char17Strength = 12;
		char18Strength = 12;
		char19Strength = 1;
		char20Strength = 1;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1461 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1462 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1470 {
		stop();
		gotoAndStop('battleProper05F');
	}
	frame 1471 {
		stop();
		playFanfareMusic();
		attacked = 1;
		if (gotSaw == false) {
			gotSawNum = random(6);
			if (gotSawNum == 1) {
				wongold = 'Won ' + _root.wingold + ' gold coins and a Spin Saw!';
				gotSaw = true;
			}
		}
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1472 {
		stop();
		clearBattlefield();
		goingtoScene = lastscene;
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1480 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1481 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1489 {
		stop();
		whichBattle = 'mission05G';
	}
	movieClip 6549	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6549	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1490 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6551	{
	}
	movieClip 6552	{
	}
	movieClip 6554	{
	}
	movieClip 6558	{
	}
	movieClip 6559	{
	}
	instance char21 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char24 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo24();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 24) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 24 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6304	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6313	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitBadLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitBadRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitBadUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitBadDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitBadLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitBadRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitBadUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitBadDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBadUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBadDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBadUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBadDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBadUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBadDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBadUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBadDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBadUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBadDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBadUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBadDownLeft2 = true;
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char23 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 4594	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char25 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo25();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 25 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 25 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1498 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 300;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Bronze Golem 1';
		name17 = 'Bronze Golem 2';
		name18 = 'Mech. Captain 1';
		name19 = 'Mech. Captain 2';
		name20 = 'Marksman 1';
		name21 = 'Marksman 2';
		name22 = 'Marksman 3';
		name23 = 'Mech. Captain 3';
		name24 = 'Mech. Captain 4';
		name25 = 'Energy Golem';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = false;
		char25Dead = false;
		MaxHP16 = 45;
		MaxHP17 = 45;
		MaxHP18 = 36;
		MaxHP19 = 36;
		MaxHP20 = 28;
		MaxHP21 = 28;
		MaxHP22 = 28;
		MaxHP23 = 36;
		MaxHP24 = 36;
		MaxHP25 = 32;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 2;
		MaxSteps21 = 2;
		MaxSteps22 = 2;
		MaxSteps23 = 3;
		MaxSteps24 = 3;
		MaxSteps25 = 0;
		char16AttackType1 = 'spinsaw';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'spinsaw';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'crossbow';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'crossbow';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'crossbow';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'none';
		char17Resists = 'none';
		char18Resists = 'none';
		char19Resists = 'none';
		char20Resists = 'Light';
		char21Resists = 'Light';
		char22Resists = 'Light';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 12;
		char17Strength = 12;
		char18Strength = 11;
		char19Strength = 11;
		char20Strength = 14;
		char21Strength = 14;
		char22Strength = 14;
		char23Strength = 11;
		char24Strength = 11;
		char25Strength = 10;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1499 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1500 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1508 {
		stop();
		gotoAndStop('battleProper05G');
	}
	frame 1509 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1510 {
		stop();
		clearBattlefield();
		mission5Done = true;
		lastscene = '';
		goingtoScene = 'workshop07';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1518 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1519 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1527 {
		stop();
		whichBattle = 'mission06A';
	}
	movieClip 6562	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6562	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1528 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 6563	{
	}
	movieClip 6564	{
	}
	movieClip 6565	{
	}
	movieClip 6568	{
	}
	movieClip 6569	{
	}
	instance char19 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (rollOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.selfDamaged == true) {
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	frame 1537 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 135;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Frost Spriggat 1';
		name17 = 'Frost Spriggat 2';
		name18 = 'Frost Spriggat 3';
		name19 = 'Frost Spriggat 4';
		name20 = 'Frost Spriggat 5';
		name21 = '';
		name22 = '';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = true;
		char22Dead = true;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 45;
		MaxHP17 = 45;
		MaxHP18 = 45;
		MaxHP19 = 45;
		MaxHP20 = 50;
		MaxHP21 = 1;
		MaxHP22 = 1;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 1;
		MaxSteps22 = 1;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'frostblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'frostblast';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'frostblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'frostblast';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'bigshield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'melee';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Cold';
		char17Resists = 'Cold';
		char18Resists = 'Cold';
		char19Resists = 'Cold';
		char20Resists = 'Cold';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 13;
		char17Strength = 13;
		char18Strength = 13;
		char19Strength = 13;
		char20Strength = 20;
		char21Strength = 1;
		char22Strength = 1;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1538 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1539 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1547 {
		stop();
		gotoAndStop('battleProper06A');
	}
	frame 1548 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1549 {
		stop();
		clearBattlefield();
		beat06A = true;
		lastscene = 'battle06A';
		goingtoScene = 'lakeOpen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1557 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1558 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1569 {
		stop();
		whichBattle = 'mission06B';
	}
	instance of movieClip 6125	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1570 {
		function placeEnemies() {
			choosePlacement = random(4);
			if (choosePlacement == 0) {
			}
			if (choosePlacement == 1) {
				char16._x = 125;
				char16._y = 25;
				char16._rotation = 0;
				char17._x = 225;
				char17._y = 25;
				char17._rotation = 0;
				char18._x = 375;
				char18._y = 125;
				char17._rotation = 0;
				char19._x = 425;
				char19._y = 125;
				char19._rotation = 0;
				char20._x = 425;
				char20._y = 75;
				char20._rotation = 0;
				char21._x = 225;
				char21._y = 375;
				char21._rotation = 180;
				char22._x = 125;
				char22._y = 375;
				char22._rotation = 180;
			}
			if (choosePlacement == 2) {
				char16._x = 75;
				char16._y = 225;
				char16._rotation = 270;
				char17._x = 25;
				char17._y = 175;
				char17._rotation = 270;
				char18._x = 25;
				char18._y = 275;
				char18._rotation = 270;
				char19._x = 175;
				char19._y = 75;
				char19._rotation = 0;
				char20._x = 25;
				char20._y = 225;
				char20._rotation = 270;
				char21._x = 125;
				char21._y = 375;
				char21._rotation = 180;
				char22._x = 375;
				char22._y = 375;
				char22._rotation = 180;
			}
			if (choosePlacement == 3) {
				char16._x = 475;
				char16._y = 25;
				char16._rotation = 0;
				char17._x = 525;
				char17._y = 75;
				char17._rotation = 90;
				char18._x = 525;
				char18._y = 125;
				char18._rotation = 90;
				char19._x = 475;
				char19._y = 375;
				char19._rotation = 0;
				char20._x = 525;
				char20._y = 275;
				char20._rotation = 90;
				char21._x = 475;
				char21._y = 325;
				char21._rotation = 180;
				char22._x = 75;
				char22._y = 375;
				char22._rotation = 180;
			}
		}
		stop();
		populateBattlefield();
		placeEnemies();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6570	{
	}
	movieClip 6571	{
	}
	movieClip 6572	{
	}
	instance char19 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.selfDamaged == true) {
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	instance char22 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6573	{
	}
	instance Overhead of movieClip 6573	{
		onClipEvent (load) {
			this.swapDepths(88000);
		}
	}
	frame 1579 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(95) + 305;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Red Spriggat 1';
		name17 = 'Red Spriggat 2';
		name18 = 'Frost Spriggat 1';
		name19 = 'Frost Spriggat 2';
		name20 = 'Frost Spriggat 3';
		name21 = 'Frost Spriggat 4';
		name22 = 'Frost Spriggat 5';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 36;
		MaxHP17 = 36;
		MaxHP18 = 45;
		MaxHP19 = 45;
		MaxHP20 = 50;
		MaxHP21 = 45;
		MaxHP22 = 45;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'firebreath';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'firebreath';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'frostblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'frostblast';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'bigshield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'frostblast';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'frostblast';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Heat';
		char17Resists = 'Heat';
		char18Resists = 'Cold';
		char19Resists = 'Cold';
		char20Resists = 'Cold';
		char21Resists = 'Cold';
		char22Resists = 'Cold';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 10;
		char17Strength = 10;
		char18Strength = 13;
		char19Strength = 13;
		char20Strength = 20;
		char21Strength = 13;
		char22Strength = 13;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1580 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1581 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1589 {
		stop();
		gotoAndStop('battleProper06B');
	}
	frame 1590 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1591 {
		stop();
		clearBattlefield();
		lastscene = 'battle06B';
		goingtoScene = 'lakeOpen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1599 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1600 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1610 {
		stop();
		whichBattle = 'mission06C';
	}
	movieClip 6576	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6576	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1611 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6577	{
	}
	movieClip 6578	{
	}
	movieClip 6580	{
	}
	movieClip 6582	{
	}
	instance char18 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.selfDamaged == true) {
						_root.shouldAttack = 1;
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	instance char22 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6586	{
	}
	movieClip 6601	{
	}
	movieClip 6607	{
		frame 90 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6613	{
		frame 15 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6657	{
		frame 144 {
			stop();
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6674	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6691	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6692	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	instance char19 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1620 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(65) + 125;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name9 = 'Gen. Darkeye';
		MaxHP9 = 20;
		MaxPsP9 = 20;
		MaxSteps9 = 4;
		char9Movement = 'flying';
		char9AttackType1 = 'mindblast';
		char9AttackType2 = 'none';
		char9AttackType3 = 'none';
		char9AttackType4 = 'none';
		char9PsyPower = 8;
		char9MBlevel = 4;
		char9Resists = 'Shadow';
		char9Damage = 0;
		char9Drain = 0;
		char9Damage = 0;
		char9Drain = 0;
		name16 = 'Red Spriggat 1';
		name17 = 'Red Spriggat 2';
		name18 = 'Red Spriggat 3';
		name19 = 'Frost Spriggat 1';
		name20 = 'Frost Spriggat 2';
		name21 = 'Frost Spriggat 3';
		name22 = 'Frost Spriggat 4';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 36;
		MaxHP17 = 36;
		MaxHP18 = 36;
		MaxHP19 = 45;
		MaxHP20 = 50;
		MaxHP21 = 45;
		MaxHP22 = 45;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'firebreath';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'firebreath';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'firebreath';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'frostblast';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'bigshield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'frostblast';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'frostblast';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Heat';
		char17Resists = 'Heat';
		char18Resists = 'Heat';
		char19Resists = 'Cold';
		char20Resists = 'Cold';
		char21Resists = 'Cold';
		char22Resists = 'Cold';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 10;
		char17Strength = 10;
		char18Strength = 10;
		char19Strength = 13;
		char20Strength = 20;
		char21Strength = 13;
		char22Strength = 13;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1621 {
		adjustDifficulty();
		setDefaults();
		char9Dead = false;
	}
	frame 1622 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1630 {
		stop();
		gotoAndStop('battleProper06C');
	}
	frame 1631 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1632 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle06D';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1640 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1641 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1650 {
		stop();
		whichBattle = 'mission06D';
	}
	movieClip 6694	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6694	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1651 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	instance char19 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.selfDamaged == true) {
						_root.shouldAttack = 1;
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	instance char22 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (rollOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1660 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(65) + 205;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name9 = 'Gen. Darkeye';
		MaxHP9 = 20;
		MaxPsP9 = 20;
		MaxSteps9 = 4;
		char9Movement = 'flying';
		char9AttackType1 = 'mindblast';
		char9AttackType2 = 'none';
		char9AttackType3 = 'none';
		char9AttackType4 = 'none';
		char9PsyPower = 8;
		char9MBlevel = 4;
		char9Resists = 'Shadow';
		char9Damage = 0;
		char9Drain = 0;
		char9Damage = 0;
		char9Drain = 0;
		name16 = 'Red Spriggat 1';
		name17 = 'Red Spriggat 2';
		name18 = 'Frost Spriggat 1';
		name19 = 'Red Spriggat 3';
		name20 = 'Frost Spriggat 2';
		name21 = 'Frost Spriggat 3';
		name22 = 'Frost Spriggat 4';
		name23 = '';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = true;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 36;
		MaxHP17 = 36;
		MaxHP18 = 45;
		MaxHP19 = 36;
		MaxHP20 = 50;
		MaxHP21 = 45;
		MaxHP22 = 45;
		MaxHP23 = 1;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 1;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'firebreath';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'firebreath';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'frostblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'firebreath';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'bigshield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'frostblast';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'frostblast';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Heat';
		char17Resists = 'Heat';
		char18Resists = 'Cold';
		char19Resists = 'Heat';
		char20Resists = 'Cold';
		char21Resists = 'Cold';
		char22Resists = 'Cold';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 10;
		char17Strength = 10;
		char18Strength = 13;
		char19Strength = 10;
		char20Strength = 20;
		char21Strength = 13;
		char22Strength = 13;
		char23Strength = 1;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1661 {
		adjustDifficulty();
		setDefaults();
		char9Dead = false;
	}
	frame 1662 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1670 {
		stop();
		gotoAndStop('battleProper06D');
	}
	frame 1671 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1672 {
		stop();
		clearBattlefield();
		goingtoScene = 'lake03A';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1680 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1681 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1690 {
		stop();
		whichBattle = 'mission06E';
	}
	movieClip 6696	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6696	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1691 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	instance char19 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 1450	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6698	{
	}
	movieClip 6699	{
	}
	movieClip 6706	{
	}
	movieClip 6714	{
		frame 18 {
			stop();
		}
	}
	movieClip 6721	{
		frame 79 {
			stop();
		}
	}
	movieClip 6727	{
		frame 145 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6728	{
		frame 90 {
			stop();
		}
	}
	movieClip 6729	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6730	{
		frame 70 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6731	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char16 of movieClip 6731	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && !_root.char16Dead && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.char16Damage -= 10;
					if (_root.char16Damage < 0) {
						_root.char16Damage = 0;
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.selfDamaged == true) {
						_root.shouldAttack = 1;
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	instance char21 of movieClip 6273	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.selfDamaged == true) {
						_root.shouldAttack = 1;
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	movieClip 6732	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6733	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char22 of movieClip 6733	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 6733	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMoveB();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1700 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 505;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name9 = 'Gen. Darkeye';
		MaxHP9 = 20;
		MaxPsP9 = 20;
		MaxSteps9 = 4;
		char9Movement = 'flying';
		char9AttackType1 = 'mindblast';
		char9AttackType2 = 'none';
		char9AttackType3 = 'none';
		char9AttackType4 = 'none';
		char9PsyPower = 8;
		char9MBlevel = 4;
		char9Resists = 'Shadow';
		char9Damage = 0;
		char9Drain = 0;
		char9Damage = 0;
		char9Drain = 0;
		name16 = 'Cerzak';
		name17 = 'Frost Spriggat 1';
		name18 = 'Frost Spriggat 2';
		name19 = 'Frost Spriggat 3';
		name20 = 'Red Spriggat 1';
		name21 = 'Red Spriggat 2';
		name22 = 'Dark Spriggat 1';
		name23 = 'Dark Spriggat 2';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 120;
		MaxHP17 = 45;
		MaxHP18 = 45;
		MaxHP19 = 45;
		MaxHP20 = 50;
		MaxHP21 = 50;
		MaxHP22 = 75;
		MaxHP23 = 75;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'darkbreath';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'frostblast';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'frostblast';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'frostblast';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'bigshield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'bigshield';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'darkbreath';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'darkbreath';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Shadow';
		char17Resists = 'Cold';
		char18Resists = 'Cold';
		char19Resists = 'Cold';
		char20Resists = 'Heat';
		char21Resists = 'Heat';
		char22Resists = 'Shadow';
		char23Resists = 'Shadow';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 20;
		char17Strength = 13;
		char18Strength = 13;
		char19Strength = 13;
		char20Strength = 30;
		char21Strength = 30;
		char22Strength = 15;
		char23Strength = 15;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1701 {
		adjustDifficulty();
		setDefaults();
		char9Dead = false;
	}
	frame 1702 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1710 {
		stop();
		gotoAndStop('battleProper06E');
	}
	frame 1711 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1712 {
		stop();
		clearBattlefield();
		mission6Done = true;
		lastscene = 'battle06E';
		goingtoScene = 'lake03';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1720 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1721 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1730 {
		stop();
		whichBattle = 'mission07A';
	}
	instance of movieClip 6125	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1731 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6734	{
	}
	movieClip 6735	{
	}
	movieClip 6737	{
	}
	movieClip 6739	{
	}
	movieClip 6740	{
	}
	movieClip 6741	{
	}
	movieClip 6751	{
	}
	movieClip 6763	{
		frame 60 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 61 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 62 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 63 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 64 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 65 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 66 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 67 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 68 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 69 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 70 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 71 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 72 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 73 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 74 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 75 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 76 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 77 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 78 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 79 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 80 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 81 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 82 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 83 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 84 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 85 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 86 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 87 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 88 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 89 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 90 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 91 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 93 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 100 {
			stop();
		}
	}
	movieClip 6773	{
		frame 145 {
			_root.attacked = 1;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6774	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6775	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6776	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6777	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char16 of movieClip 6777	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true || _root.hitCharUpLeft == true || _root.hitCharDownLeft == true) {
							if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharRight2 == false && _root.hitBadRight2 == false && _root.hitWallRight2 == false && _root.hitCharRight3 == false && _root.hitBadRight3 == false && _root.hitWallRight3 == false) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x += 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharRight2 == false && _root.hitBadRight2 == false && _root.hitWallRight2 == false) {
									this._rotation = 90;
									this.gotoAndStop(1);
									this._x += 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharLeft2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
										this._rotation = 90;
										this.gotoAndStop(1);
										this._x += 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true || _root.hitCharUpRight == true || _root.hitCharDownRight == true) {
							if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft2 == false && _root.hitWallLeft2 == false && _root.hitCharLeft3 == false && _root.hitBadLeft3 == false && _root.hitWallLeft3 == false) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x -= 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft2 == false && _root.hitWallLeft2 == false) {
									this._rotation = 270;
									this.gotoAndStop(1);
									this._x -= 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharRight2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
										this._rotation = 270;
										this.gotoAndStop(1);
										this._x -= 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true || _root.hitCharUpLeft == true || _root.hitCharUpRight == true) {
							if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDown2 == false && _root.hitBadDown2 == false && _root.hitWallDown2 == false && _root.hitCharDown3 == false && _root.hitBadDown3 == false && _root.hitWallDown3 == false) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y += 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDown2 == false && _root.hitBadDown2 == false && _root.hitWallDown2 == false) {
									this._rotation = 180;
									this.gotoAndStop(1);
									this._y += 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharUp2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
										this._rotation = 180;
										this.gotoAndStop(1);
										this._y += 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true || _root.hitCharDownLeft == true || _root.hitCharDownRight == true) {
							if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUp2 == false && _root.hitBadUp2 == false && _root.hitWallUp2 == false && _root.hitCharUp3 == false && _root.hitBadUp3 == false && _root.hitWallUp3 == false) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y -= 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUp2 == false && _root.hitBadUp2 == false && _root.hitWallUp2 == false) {
									this._rotation = 0;
									this.gotoAndStop(1);
									this._y -= 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharDown2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
										this._rotation = 0;
										this.gotoAndStop(1);
										this._y -= 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
							if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharRight2 == false && _root.hitBadRight2 == false && _root.hitWallRight2 == false) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x += 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
									this._rotation = 90;
									this.gotoAndStop(1);
									this._x += 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
							if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft2 == false && _root.hitWallLeft2 == false) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x -= 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
									this._rotation = 270;
									this.gotoAndStop(1);
									this._x -= 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
							if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDown2 == false && _root.hitBadDown2 == false && _root.hitWallDown2 == false) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y += 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
									this._rotation = 180;
									this.gotoAndStop(1);
									this._y += 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
							if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUp2 == false && _root.hitBadUp2 == false && _root.hitWallUp2 == false) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y -= 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
									this._rotation = 0;
									this.gotoAndStop(1);
									this._y -= 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
							this._rotation = 90;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
							this._rotation = 270;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
							this._rotation = 180;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
							this._rotation = 0;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft4 == true || _root.hitCharUpLeft4 == true || _root.hitCharDownLeft4 == true) {
							if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight4 == true || _root.hitCharUpRight4 == true || _root.hitCharDownRight4 == true) {
							if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp4 == true || _root.hitCharUp4Left == true || _root.hitCharUp4Right == true) {
							if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown4 == true || _root.hitCharDown4Left == true || _root.hitCharDown4Right == true) {
							if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6780	{
		frame 120 {
			_root.changeturns();
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6781	{
		frame 105 {
			stop();
		}
	}
	movieClip 6782	{
		frame 110 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6783	{
		frame 90 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6784	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char19 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6785	{
	}
	movieClip 6786	{
		frame 145 {
			_root.attacked = 1;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6787	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6788	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6789	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6790	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char20 of movieClip 6790	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6791	{
	}
	movieClip 6792	{
		frame 145 {
			_root.attacked = 1;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6793	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6794	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6795	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6796	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char21 of movieClip 6796	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char24 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo24();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 24) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 24 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1740 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 265;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Psy Fighter 1';
		name17 = 'Acad. Guard 1';
		name18 = 'Acad. Guard 2';
		name19 = 'Acad. Guard 3';
		name20 = 'Psy Fighter 2';
		name21 = 'Psy Fighter 3';
		name22 = 'Acad. Guard 4';
		name23 = 'Acad. Guard 5';
		name24 = 'Acad. Guard 6';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = false;
		char25Dead = true;
		MaxHP16 = 95;
		MaxHP17 = 70;
		MaxHP18 = 70;
		MaxHP19 = 70;
		MaxHP20 = 95;
		MaxHP21 = 95;
		MaxHP22 = 70;
		MaxHP23 = 70;
		MaxHP24 = 70;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 3;
		MaxSteps24 = 3;
		MaxSteps25 = 1;
		char16AttackType1 = 'lightblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'pyrohail';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'pyrohail';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Shadow';
		char17Resists = 'Light';
		char18Resists = 'Light';
		char19Resists = 'Light';
		char20Resists = 'Heat';
		char21Resists = 'Heat';
		char22Resists = 'Light';
		char23Resists = 'Light';
		char24Resists = 'Light';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 20;
		char17Strength = 15;
		char18Strength = 15;
		char19Strength = 15;
		char20Strength = 25;
		char21Strength = 25;
		char22Strength = 15;
		char23Strength = 15;
		char24Strength = 15;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1741 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1742 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1750 {
		stop();
		gotoAndStop('battleProper07A');
	}
	frame 1751 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1752 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle07B';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1760 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1761 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1772 {
		stop();
		whichBattle = 'mission07B';
	}
	instance of movieClip 6125	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1773 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6797	{
	}
	movieClip 6798	{
	}
	movieClip 6799	{
	}
	movieClip 6800	{
	}
	movieClip 6812	{
		frame 145 {
			_root.attacked = 1;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6813	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6814	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6815	{
		frame 95 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6816	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char16 of movieClip 6816	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true || _root.hitCharUpLeft == true || _root.hitCharDownLeft == true) {
							if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharRight2 == false && _root.hitBadRight2 == false && _root.hitWallRight2 == false && _root.hitCharRight3 == false && _root.hitBadRight3 == false && _root.hitWallRight3 == false) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x += 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharRight2 == false && _root.hitBadRight2 == false && _root.hitWallRight2 == false) {
									this._rotation = 90;
									this.gotoAndStop(1);
									this._x += 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharLeft2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
										this._rotation = 90;
										this.gotoAndStop(1);
										this._x += 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true || _root.hitCharUpRight == true || _root.hitCharDownRight == true) {
							if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft2 == false && _root.hitWallLeft2 == false && _root.hitCharLeft3 == false && _root.hitBadLeft3 == false && _root.hitWallLeft3 == false) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x -= 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft2 == false && _root.hitWallLeft2 == false) {
									this._rotation = 270;
									this.gotoAndStop(1);
									this._x -= 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharRight2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
										this._rotation = 270;
										this.gotoAndStop(1);
										this._x -= 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true || _root.hitCharUpLeft == true || _root.hitCharUpRight == true) {
							if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDown2 == false && _root.hitBadDown2 == false && _root.hitWallDown2 == false && _root.hitCharDown3 == false && _root.hitBadDown3 == false && _root.hitWallDown3 == false) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y += 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDown2 == false && _root.hitBadDown2 == false && _root.hitWallDown2 == false) {
									this._rotation = 180;
									this.gotoAndStop(1);
									this._y += 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharUp2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
										this._rotation = 180;
										this.gotoAndStop(1);
										this._y += 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true || _root.hitCharDownLeft == true || _root.hitCharDownRight == true) {
							if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUp2 == false && _root.hitBadUp2 == false && _root.hitWallUp2 == false && _root.hitCharUp3 == false && _root.hitBadUp3 == false && _root.hitWallUp3 == false) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y -= 150;
								_root.steps += 3;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUp2 == false && _root.hitBadUp2 == false && _root.hitWallUp2 == false) {
									this._rotation = 0;
									this.gotoAndStop(1);
									this._y -= 100;
									_root.steps += 2;
									_root.displaySteps();
									_root.shouldAttack = 1;
								} else {
									if (_root.hitCharDown2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
										this._rotation = 0;
										this.gotoAndStop(1);
										this._y -= 50;
										_root.steps += 1;
										_root.displaySteps();
										_root.shouldAttack = 1;
									}
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
							if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false && _root.hitCharRight2 == false && _root.hitBadRight2 == false && _root.hitWallRight2 == false) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x += 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
									this._rotation = 90;
									this.gotoAndStop(1);
									this._x += 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
							if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft2 == false && _root.hitWallLeft2 == false) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x -= 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
									this._rotation = 270;
									this.gotoAndStop(1);
									this._x -= 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
							if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false && _root.hitCharDown2 == false && _root.hitBadDown2 == false && _root.hitWallDown2 == false) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y += 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
									this._rotation = 180;
									this.gotoAndStop(1);
									this._y += 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
							if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false && _root.hitCharUp2 == false && _root.hitBadUp2 == false && _root.hitWallUp2 == false) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y -= 100;
								_root.steps += 2;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
									this._rotation = 0;
									this.gotoAndStop(1);
									this._y -= 50;
									_root.steps += 1;
									_root.displaySteps();
									_root.shouldAttack = 1;
								}
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
							this._rotation = 90;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
							this._rotation = 270;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
							this._rotation = 180;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
							this._rotation = 0;
							this.gotoAndStop(1);
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft4 == true || _root.hitCharUpLeft4 == true || _root.hitCharDownLeft4 == true) {
							if (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight4 == true || _root.hitCharUpRight4 == true || _root.hitCharDownRight4 == true) {
							if (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp4 == true || _root.hitCharUp4Left == true || _root.hitCharUp4Right == true) {
							if (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown4 == true || _root.hitCharDown4Left == true || _root.hitCharDown4Right == true) {
							if (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char18 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6796	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 6790	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char24 of movieClip 6784	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo24();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 24) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 24 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6817	{
		frame 1 {
			stop();
		}
	}
	instance Overhead of movieClip 6817	{
		onClipEvent (load) {
			this.swapDepths(88000);
		}
	}
	frame 1782 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 265;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Dean Lukas';
		name17 = 'Acad. Guard 1';
		name18 = 'Acad. Guard 2';
		name19 = 'Acad. Guard 3';
		name20 = 'Psy Fighter 1';
		name21 = 'Psy Fighter 2';
		name22 = 'Acad. Guard 4';
		name23 = 'Acad. Guard 5';
		name24 = 'Acad. Guard 6';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = false;
		char25Dead = true;
		MaxHP16 = 320;
		MaxHP17 = 70;
		MaxHP18 = 70;
		MaxHP19 = 70;
		MaxHP20 = 95;
		MaxHP21 = 95;
		MaxHP22 = 70;
		MaxHP23 = 70;
		MaxHP24 = 70;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 3;
		MaxSteps24 = 3;
		MaxSteps25 = 1;
		char16AttackType1 = 'lightblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'pyrohail';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'pyrohail';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'melee';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'melee';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Shadow';
		char17Resists = 'Light';
		char18Resists = 'Light';
		char19Resists = 'Light';
		char20Resists = 'Heat';
		char21Resists = 'Heat';
		char22Resists = 'Light';
		char23Resists = 'Light';
		char24Resists = 'Light';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 20;
		char17Strength = 15;
		char18Strength = 15;
		char19Strength = 15;
		char20Strength = 25;
		char21Strength = 25;
		char22Strength = 15;
		char23Strength = 15;
		char24Strength = 15;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1783 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1784 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1792 {
		stop();
		gotoAndStop('battleProper07B');
	}
	frame 1793 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1794 {
		stop();
		clearBattlefield();
		goingtoScene = 'ending02';
		submitGameDone();
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1802 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1803 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1814 {
		stop();
		whichBattle = 'mission08A';
	}
	instance of movieClip 6125	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1815 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6818	{
	}
	movieClip 6819	{
	}
	movieClip 6820	{
	}
	movieClip 6824	{
	}
	movieClip 6825	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char16 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6842	{
	}
	movieClip 6889	{
		frame 160 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 6900	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 6919	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6938	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 6939	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char18 of movieClip 6939	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true || _root.hitCharUpLeft == true || _root.hitCharDownLeft == true) {
							if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true || _root.hitCharUpRight == true || _root.hitCharDownRight == true) {
							if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true || _root.hitCharUpLeft == true || _root.hitCharUpRight == true) {
							if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true || _root.hitCharDownLeft == true || _root.hitCharDownRight == true) {
							if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
							if ((_root.hitCharLeft4 == true || _root.hitCharUpLeft4 == true || _root.hitCharDownLeft4 == true) && (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false)) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
							if ((_root.hitCharRight4 == true || _root.hitCharUpRight4 == true || _root.hitCharDownRight4 == true) && (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false)) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
							if ((_root.hitCharUp4 == true || _root.hitCharUp4Left == true || _root.hitCharUp4Right == true) && (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false)) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
							if ((_root.hitCharDown4 == true || _root.hitCharDown4Left == true || _root.hitCharDown4Right == true) && (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false)) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 6939	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true || _root.hitCharUpLeft == true || _root.hitCharDownLeft == true) {
							if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true || _root.hitCharUpRight == true || _root.hitCharDownRight == true) {
							if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true || _root.hitCharUpLeft == true || _root.hitCharUpRight == true) {
							if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true || _root.hitCharDownLeft == true || _root.hitCharDownRight == true) {
							if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
							if ((_root.hitCharLeft4 == true || _root.hitCharUpLeft4 == true || _root.hitCharDownLeft4 == true) && (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false)) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
							if ((_root.hitCharRight4 == true || _root.hitCharUpRight4 == true || _root.hitCharDownRight4 == true) && (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false)) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
							if ((_root.hitCharUp4 == true || _root.hitCharUp4Left == true || _root.hitCharUp4Right == true) && (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false)) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
							if ((_root.hitCharDown4 == true || _root.hitCharDown4Left == true || _root.hitCharDown4Right == true) && (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false)) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char23 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char20 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1824 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(45) + 265;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Shad. Soldier 1';
		name17 = 'Shad. Soldier 2';
		name18 = 'Sh. Guardian 1';
		name19 = 'Sh. Guardian 2';
		name20 = 'Shad. Soldier 3';
		name21 = 'Shad. Soldier 4';
		name22 = 'Shad. Soldier 5';
		name23 = 'Shad. Soldier 6';
		name24 = '';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = true;
		MaxHP16 = 48;
		MaxHP17 = 48;
		MaxHP18 = 80;
		MaxHP19 = 80;
		MaxHP20 = 48;
		MaxHP21 = 48;
		MaxHP22 = 48;
		MaxHP23 = 48;
		MaxHP24 = 1;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 1;
		char16AttackType1 = 'shadowblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'shadowblast';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'darkvortex';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'darkvortex';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'shadowblast';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'shadowblast';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'shadowblast';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'shadowblast';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'melee';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Shadow';
		char17Resists = 'Shadow';
		char18Resists = 'Shadow';
		char19Resists = 'Shadow';
		char20Resists = 'Shadow';
		char21Resists = 'Shadow';
		char22Resists = 'Shadow';
		char23Resists = 'Shadow';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 17;
		char17Strength = 17;
		char18Strength = 12;
		char19Strength = 12;
		char20Strength = 17;
		char21Strength = 17;
		char22Strength = 17;
		char23Strength = 17;
		char24Strength = 1;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1825 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1826 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1834 {
		stop();
		gotoAndStop('battleProper08A');
	}
	frame 1835 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1836 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle08B';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1844 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1845 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1856 {
		stop();
		whichBattle = 'mission08B';
	}
	movieClip 6942	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 6942	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1857 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(89000);
		pinholeOpen.play();
	}
	movieClip 6943	{
	}
	movieClip 6944	{
	}
	movieClip 6947	{
	}
	movieClip 6949	{
	}
	instance char16 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char17 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 6993	{
		frame 144 {
			stop();
			_root.attacked = 1;
			_root.changeturns();
		}
	}
	movieClip 6994	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char20 of movieClip 6994	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.senseBadChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseHealTargets();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitHealLeft == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight == true) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp == true) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown == true) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						this._y -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						this._y += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						this._x -= 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						this._x += 50;
						_root.steps += 3;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 100;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitHealDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.selfDamaged == true) {
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						_root.enemyMove();
					}
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
			}
		}
	}
	instance char18 of movieClip 6939	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true || _root.hitCharUpLeft == true || _root.hitCharDownLeft == true) {
							if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true || _root.hitCharUpRight == true || _root.hitCharDownRight == true) {
							if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true || _root.hitCharUpLeft == true || _root.hitCharUpRight == true) {
							if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true || _root.hitCharDownLeft == true || _root.hitCharDownRight == true) {
							if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
							if ((_root.hitCharLeft4 == true || _root.hitCharUpLeft4 == true || _root.hitCharDownLeft4 == true) && (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false)) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
							if ((_root.hitCharRight4 == true || _root.hitCharUpRight4 == true || _root.hitCharDownRight4 == true) && (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false)) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
							if ((_root.hitCharUp4 == true || _root.hitCharUp4Left == true || _root.hitCharUp4Right == true) && (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false)) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
							if ((_root.hitCharDown4 == true || _root.hitCharDown4Left == true || _root.hitCharDown4Right == true) && (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false)) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char19 of movieClip 6939	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true || _root.hitCharUpLeft == true || _root.hitCharDownLeft == true) {
							if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true || _root.hitCharUpRight == true || _root.hitCharDownRight == true) {
							if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true || _root.hitCharUpLeft == true || _root.hitCharUpRight == true) {
							if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true || _root.hitCharDownLeft == true || _root.hitCharDownRight == true) {
							if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true || _root.hitCharUpLeft2 == true || _root.hitCharDownLeft2 == true) {
							if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true || _root.hitCharUpRight2 == true || _root.hitCharDownRight2 == true) {
							if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true || _root.hitCharUp2Left == true || _root.hitCharUp2Right == true) {
							if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true || _root.hitCharDown2Left == true || _root.hitCharDown2Right == true) {
							if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true || _root.hitCharUpLeft3 == true || _root.hitCharDownLeft3 == true) {
							if ((_root.hitCharLeft4 == true || _root.hitCharUpLeft4 == true || _root.hitCharDownLeft4 == true) && (_root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false)) {
								this._rotation = 90;
								this.gotoAndStop(1);
								this._x -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 90;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true || _root.hitCharUpRight3 == true || _root.hitCharDownRight3 == true) {
							if ((_root.hitCharRight4 == true || _root.hitCharUpRight4 == true || _root.hitCharDownRight4 == true) && (_root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false)) {
								this._rotation = 270;
								this.gotoAndStop(1);
								this._x += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 270;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true || _root.hitCharUp3Left == true || _root.hitCharUp3Right == true) {
							if ((_root.hitCharUp4 == true || _root.hitCharUp4Left == true || _root.hitCharUp4Right == true) && (_root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false)) {
								this._rotation = 180;
								this.gotoAndStop(1);
								this._y -= 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 180;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true || _root.hitCharDown3Left == true || _root.hitCharDown3Right == true) {
							if ((_root.hitCharDown4 == true || _root.hitCharDown4Left == true || _root.hitCharDown4Right == true) && (_root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false)) {
								this._rotation = 0;
								this.gotoAndStop(1);
								this._y += 50;
								_root.steps += 1;
								_root.displaySteps();
								_root.shouldAttack = 1;
							} else {
								this._rotation = 0;
								this.gotoAndStop(1);
								_root.shouldAttack = 1;
							}
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char21 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char22 of movieClip 6825	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitBlockLeft = false;
					_root.hitBlockRight = false;
					_root.hitBlockUp = false;
					_root.hitBlockDown = false;
					_root.hitBlockLeft2 = false;
					_root.hitBlockRight2 = false;
					_root.hitBlockUp2 = false;
					_root.hitBlockDown2 = false;
					_root.hitBlockUpLeft = false;
					_root.hitBlockUpRight = false;
					_root.hitBlockDownLeft = false;
					_root.hitBlockDownRight = false;
					_root.hitBlockUp2Left = false;
					_root.hitBlockUp2Right = false;
					_root.hitBlockDown2Left = false;
					_root.hitBlockDown2Right = false;
					_root.hitBlockUpLeft2 = false;
					_root.hitBlockUpRight2 = false;
					_root.hitBlockDownLeft2 = false;
					_root.hitBlockDownRight2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitBlockLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitBlockRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitBlockUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitBlockDown = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitBlockLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitBlockRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitBlockUp2 = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitBlockDown2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitBlockUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitBlockUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitBlockDownLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitBlockDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitBlockUp2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitBlockUp2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitBlockDown2Left = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitBlockDown2Right = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitBlockUpLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitBlockUpRight2 = true;
					}
					if (_root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitBlockDownLeft2 = true;
					}
					if (_root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitBlockDownRight2 = true;
					}
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockUp == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBlockLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBlockDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUp2 == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDown2 == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockUpLeft == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockDownRight == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitBlockUpRight == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitBlockDownLeft == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitBlockUpRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitBlockDownLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUp2Left == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDown2Right == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x += 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp3Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUp2Right == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._x += 50;
						this._y -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown3Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDown2Left == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._x -= 50;
						this._y += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false && _root.hitCharUpLeft == false && _root.hitBadUpLeft == false && _root.hitBlockUpLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false && _root.hitCharDownRight == false && _root.hitBadDownRight == false && _root.hitBlockDownRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y += 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight3 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false && _root.hitCharUpRight == false && _root.hitBadUpRight == false && _root.hitBlockUpRight2 == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._y -= 50;
						this._x += 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft3 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false && _root.hitCharDownLeft == false && _root.hitBadDownLeft == false && _root.hitBlockDownLeft2 == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._y += 50;
						this._x -= 50;
						_root.steps += 2;
						_root.displaySteps();
						_root.shouldAttack = 1;
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	movieClip 7014	{
	}
	movieClip 7016	{
	}
	movieClip 7039	{
		frame 1 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 2 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 3 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 4 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 5 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 6 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 7 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 8 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 9 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 10 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 11 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 12 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 13 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 14 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 15 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 16 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 17 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 18 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 19 {
			_root._x += random(3);
			_root._y += random(3);
		}
		frame 20 {
			_root._x -= random(3);
			_root._y -= random(3);
		}
		frame 21 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 22 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 23 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 24 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 25 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 26 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 27 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 28 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 29 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 30 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 31 {
			_root._x += random(8);
			_root._y += random(8);
		}
		frame 32 {
			_root._x -= random(8);
			_root._y -= random(8);
		}
		frame 34 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 45 {
			stop();
		}
	}
	movieClip 7067	{
		frame 144 {
			stop();
			_root.attacked = 1;
		}
	}
	movieClip 7074	{
		frame 105 {
			stop();
			_root.removeDead();
		}
	}
	movieClip 7095	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7117	{
		frame 73 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7118	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 7119	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
		frame 30 {
			stop();
		}
	}
	instance char25 of movieClip 7119	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && !_root.char25Dead && _root.moveTurn < 16) {
				_root.displayInfoTastidian();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 25) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.char25Damage -= 20;
					if (_root.char25Damage < 0) {
						_root.char25Damage = 0;
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					_root.hitWallLeft3 = false;
					_root.hitWallRight3 = false;
					_root.hitWallUp3 = false;
					_root.hitWallDown3 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true && _root.hitCharLeft2 == true) {
						this._rotation = 90;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharRight == true && _root.hitCharRight2 == true && _root.shouldAttack == 0) {
						this._rotation = 270;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharUp == true && _root.hitCharUp2 == true && _root.shouldAttack == 0) {
						this._rotation = 180;
						_root.shouldAttack = 1;
					}
					if (_root.hitCharDown == true && _root.hitCharDown2 == true && _root.shouldAttack == 0) {
						this._rotation = 0;
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharUpLeft2 && !_root.hitBadUpLeft2 && !_root.hitWallUpLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true && _root.hitCharUpRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharUpRight2 && !_root.hitBadUpRight2 && !_root.hitWallUpRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownLeft == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharLeft2 && !_root.hitBadLeft2 && !_root.hitWallLeft2 && !_root.hitCharDownLeft2 && !_root.hitBadDownLeft2 && !_root.hitWallDownLeft2) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharLeft && !_root.hitBadLeft && !_root.hitWallLeft && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true && _root.hitCharDownRight == true && !_root.hitCharRight && !_root.hitBadRight && !_root.hitWallRight && !_root.hitCharRight2 && !_root.hitBadRight2 && !_root.hitWallRight2 && !_root.hitCharDownRight2 && !_root.hitBadDownRight2 && !_root.hitWallDownRight2) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharDownLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Left && !_root.hitBadDown2Left && !_root.hitWallDown2Left) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownLeft && !_root.hitBadDownLeft && !_root.hitWallDownLeft) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true && _root.hitCharUpLeft == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpLeft && !_root.hitBadUpLeft && !_root.hitWallUpLeft) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUpRight && !_root.hitBadUpRight && !_root.hitWallUpRight) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharDownRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDown2 && !_root.hitBadDown2 && !_root.hitWallDown2 && !_root.hitCharDown2Right && !_root.hitBadDown2Right && !_root.hitWallDown2Right) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharDown && !_root.hitBadDown && !_root.hitWallDown && !_root.hitCharDownRight && !_root.hitBadDownRight && !_root.hitWallDownRight) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true && _root.hitCharUpRight == true && !_root.hitCharUp && !_root.hitBadUp && !_root.hitWallUp && !_root.hitCharUp2 && !_root.hitBadUp2 && !_root.hitWallUp2 && !_root.hitCharUp2Right && !_root.hitBadUp2Right && !_root.hitWallUp2Right) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 100;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft == true) {
							this._rotation = 90;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitCharUpLeft2 == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitBadUpLeft2 == false && _root.hitWallUp == false && _root.hitWallUpLeft == false && _root.hitWallUpLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitCharDownLeft2 == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitBadDownLeft2 == false && _root.hitWallDown == false && _root.hitWallDownLeft == false && _root.hitWallDownLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitCharUpRight2 == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitBadUpRight2 == false && _root.hitWallUp == false && _root.hitWallUpRight == false && _root.hitWallUpRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							this._y -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitCharDownRight2 == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitBadDownRight2 == false && _root.hitWallDown == false && _root.hitWallDownRight == false && _root.hitWallDownRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							this._y += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitCharUp2Left == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitBadUp2Left == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false && _root.hitWallUp2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2 == true && _root.hitCharRight == false && _root.hitCharUpRight == false && _root.hitCharUp2Right == false && _root.hitBadRight == false && _root.hitBadUpRight == false && _root.hitBadUp2Right == false && _root.hitWallRight == false && _root.hitWallUpRight == false && _root.hitWallUp2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharLeft == false && _root.hitCharDownLeft == false && _root.hitCharDown2Left == false && _root.hitBadLeft == false && _root.hitBadDownLeft == false && _root.hitBadDown2Left == false && _root.hitWallLeft == false && _root.hitWallDownLeft == false && _root.hitWallDown2Left == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							this._x -= 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2 == true && _root.hitCharRight == false && _root.hitCharDownRight == false && _root.hitCharDown2Right == false && _root.hitBadRight == false && _root.hitBadDownRight == false && _root.hitBadDown2Right == false && _root.hitWallRight == false && _root.hitWallDownRight == false && _root.hitWallDown2Right == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							this._x += 50;
							_root.steps += 3;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight3 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp3 == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown3 == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitCharLeft == false && _root.hitCharUpLeft == false && _root.hitBadLeft == false && _root.hitBadUpLeft == false && _root.hitWallLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Right == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUp2 == false && _root.hitBadUp == false && _root.hitBadUp2 == false && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitCharDown2 == false && _root.hitBadDown == false && _root.hitBadDown2 == false && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpLeft2 == true && _root.hitCharUp == false && _root.hitCharUpLeft == false && _root.hitBadUp == false && _root.hitBadUpLeft == false && _root.hitWallUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownRight2 == true && _root.hitCharDown == false && _root.hitCharDownRight == false && _root.hitBadDown == false && _root.hitBadDownRight == false && _root.hitWallDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharRight == false && _root.hitCharRight2 == false && _root.hitBadRight == false && _root.hitBadRight2 == false && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUpRight2 == true && _root.hitCharUp == false && _root.hitCharUpRight == false && _root.hitBadUp == false && _root.hitBadUpRight == false && _root.hitWallUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._x += 50;
							this._y -= 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharLeft == false && _root.hitCharLeft2 == false && _root.hitBadLeft == false && _root.hitBadLeft2 == false && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 100;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDownLeft2 == true && _root.hitCharDown == false && _root.hitCharDownLeft == false && _root.hitBadDown == false && _root.hitBadDownLeft == false && _root.hitWallDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._x -= 50;
							this._y += 50;
							_root.steps += 2;
							_root.displaySteps();
							_root.shouldAttack = 1;
						}
					}
					if (char18Dead == true || char19Dead == true || char16Dead == true && char17Dead == true) {
						_root.enemyMove();
					}
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.attack();
					}
				}
				if (_root.moveTurn == 25 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	frame 1866 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(95) + 965;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Shad. Soldier 1';
		name17 = 'Shad. Soldier 2';
		name18 = 'Sh. Guardian 1';
		name19 = 'Sh. Guardian 2';
		name20 = 'Shad. Healer';
		name21 = 'Shad. Soldier 3';
		name22 = 'Shad. Soldier 4';
		name23 = 'Shad. Soldier 5';
		name24 = '';
		name25 = 'Tastidian';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = true;
		char24Dead = true;
		char25Dead = false;
		MaxHP16 = 48;
		MaxHP17 = 48;
		MaxHP18 = 80;
		MaxHP19 = 80;
		MaxHP20 = 60;
		MaxHP21 = 48;
		MaxHP22 = 48;
		MaxHP23 = 48;
		MaxHP24 = 1;
		MaxHP25 = 200;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 3;
		MaxSteps17 = 3;
		MaxSteps18 = 3;
		MaxSteps19 = 3;
		MaxSteps20 = 3;
		MaxSteps21 = 3;
		MaxSteps22 = 3;
		MaxSteps23 = 3;
		MaxSteps24 = 1;
		MaxSteps25 = 3;
		char16AttackType1 = 'shadowblast';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'shadowblast';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'darkvortex';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'darkvortex';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'bigshield';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'shadowblast';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'shadowblast';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'shadowblast';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'shockwave';
		char25AttackType2 = 'shockwave';
		char25AttackType3 = 'shockwave';
		char25AttackType4 = 'shockwave';
		char16Resists = 'Shadow';
		char17Resists = 'Shadow';
		char18Resists = 'Shadow';
		char19Resists = 'Shadow';
		char20Resists = 'Shadow';
		char21Resists = 'Shadow';
		char22Resists = 'Shadow';
		char23Resists = 'Shadow';
		char24Resists = 'none';
		char25Resists = 'Shadow';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 17;
		char17Strength = 17;
		char18Strength = 12;
		char19Strength = 12;
		char20Strength = 25;
		char21Strength = 17;
		char22Strength = 17;
		char23Strength = 17;
		char24Strength = 1;
		char25Strength = 25;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1867 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1868 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1876 {
		stop();
		gotoAndStop('battleProper08B');
	}
	frame 1877 {
		stop();
		playFanfareMusic();
		attacked = 1;
		safetyBonus();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1878 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle08C';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1886 {
		stop();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1887 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1898 {
		stop();
		whichBattle = 'mission08C';
	}
	instance of movieClip 6517	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1899 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 7122	{
	}
	movieClip 7123	{
	}
	movieClip 7125	{
	}
	movieClip 7127	{
	}
	movieClip 7128	{
	}
	instance char20 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 20) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char16 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 16) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char18 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 18) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char17 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char19 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 19) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char22 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char23 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char21 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char24 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo24();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 24 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 24 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1907 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(25) + 160;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Phantom Armr 1';
		name17 = 'Phantom Armr 2';
		name18 = 'Phantom Armr 3';
		name19 = 'Phantom Armr 4';
		name20 = 'Phantom Armr 5';
		name21 = 'Energy Golem 1';
		name22 = 'Energy Golem 2';
		name23 = 'Energy Golem 3';
		name24 = 'Energy Golem 4';
		name25 = '';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = false;
		char25Dead = true;
		MaxHP16 = 80;
		MaxHP17 = 80;
		MaxHP18 = 80;
		MaxHP19 = 80;
		MaxHP20 = 80;
		MaxHP21 = 32;
		MaxHP22 = 32;
		MaxHP23 = 32;
		MaxHP24 = 32;
		MaxHP25 = 1;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 1;
		MaxSteps21 = 0;
		MaxSteps22 = 0;
		MaxSteps23 = 0;
		MaxSteps24 = 0;
		MaxSteps25 = 1;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'melee';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'laserblast';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'laserblast';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'laserblast';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'laserblast';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'laserblast';
		char25AttackType2 = 'none';
		char25AttackType3 = 'none';
		char25AttackType4 = 'none';
		char16Resists = 'Light';
		char17Resists = 'Light';
		char18Resists = 'Light';
		char19Resists = 'Light';
		char20Resists = 'Light';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'none';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 20;
		char17Strength = 20;
		char18Strength = 20;
		char19Strength = 20;
		char20Strength = 20;
		char21Strength = 10;
		char22Strength = 10;
		char23Strength = 10;
		char24Strength = 10;
		char25Strength = 1;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1908 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1909 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1917 {
		stop();
		gotoAndStop('battleProper08C');
	}
	frame 1918 {
		stop();
		playFanfareMusic();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance victoryBox of movieClip 5973	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.money += _root.wingold;
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1919 {
		stop();
		clearBattlefield();
		goingtoScene = 'battle08D';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1927 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1928 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1936 {
		stop();
		whichBattle = 'mission08D';
	}
	movieClip 7131	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance of movieClip 7131	{
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			this._visible = false;
			_root.play();
		}
	}
	frame 1937 {
		stop();
		populateBattlefield();
		pinholeOpen.swapDepths(5000);
		pinholeOpen.play();
	}
	movieClip 7133	{
	}
	movieClip 7134	{
	}
	movieClip 7135	{
	}
	movieClip 7137	{
	}
	movieClip 7140	{
	}
	movieClip 7147	{
	}
	movieClip 7148	{
	}
	movieClip 7150	{
	}
	movieClip 7151	{
	}
	movieClip 7152	{
		frame 40 {
			_root.summonPhantoms();
		}
		frame 100 {
			_root.attacked = 1;
			_root.checkedForDead = true;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7161	{
	}
	movieClip 7181	{
		frame 1 {
			_root.nelisDead = true;
			_root.changeturns();
		}
		frame 60 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 61 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 62 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 63 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 64 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 65 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 66 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 67 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 68 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 69 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 70 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 71 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 72 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 73 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 74 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 75 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 76 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 77 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 78 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 79 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 81 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 99 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 100 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 101 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 102 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 103 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 104 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 105 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 106 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 107 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 108 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 109 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 110 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 111 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 112 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 113 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 114 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 115 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 116 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 117 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 118 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 119 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 120 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 121 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 122 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 123 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 124 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 125 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 126 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 127 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 128 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 129 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 130 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 131 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 132 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 133 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 134 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 135 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 136 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 137 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 144 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 154 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 155 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 156 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 157 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 158 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 159 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 160 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 161 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 162 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 163 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 164 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 165 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 166 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 167 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 168 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 169 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 170 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 171 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 172 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 173 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 174 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 175 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 176 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 177 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 178 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 179 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 180 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 181 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 182 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 183 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 184 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 185 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 186 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 187 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 188 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 189 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 190 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 191 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 192 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 193 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 194 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 195 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 196 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 197 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 198 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 199 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 200 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 201 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 202 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 203 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 204 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 205 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 206 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 207 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 208 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 209 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 210 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 211 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 212 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 213 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 214 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 215 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 216 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 217 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 218 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 219 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 220 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 221 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 222 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 223 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 224 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 225 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 226 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 227 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 228 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 229 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 230 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 231 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 232 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 233 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 234 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 235 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 236 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 237 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 238 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 239 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 240 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 241 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 242 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 243 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 244 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 245 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 246 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 247 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 248 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 249 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 250 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 251 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 252 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 253 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 254 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 255 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 256 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 257 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 258 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 259 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 260 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 261 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 262 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 263 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 264 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 265 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 266 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 267 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 268 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 269 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 270 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 271 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 272 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 273 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 274 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 275 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 276 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 277 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 278 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 279 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 280 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 281 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 282 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 284 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 289 {
			stop();
			_root.play();
			_root.removeDead();
		}
	}
	movieClip 7185	{
		frame 40 {
			stop();
		}
	}
	movieClip 7188	{
	}
	movieClip 7191	{
	}
	movieClip 7192	{
		frame 110 {
			gotoAndPlay(39);
		}
	}
	movieClip 7203	{
	}
	movieClip 7205	{
		frame 40 {
			stop();
			_parent.gotoAndStop(6);
		}
	}
	movieClip 7224	{
		frame 75 {
			_root.giveDamage25E();
		}
		frame 195 {
			stop();
			_parent.gotoAndStop(7);
		}
	}
	movieClip 7225	{
		frame 40 {
			stop();
			_root.attacked = 1;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7226	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7227	{
		frame 75 {
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7234	{
	}
	movieClip 7241	{
	}
	movieClip 7243	{
		frame 60 {
			stop();
			_parent.gotoAndStop(14);
		}
	}
	movieClip 7250	{
	}
	movieClip 7251	{
	}
	movieClip 7257	{
	}
	movieClip 7264	{
	}
	movieClip 7265	{
	}
	movieClip 7269	{
	}
	movieClip 7278	{
		frame 8 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 9 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 10 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 11 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 12 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 13 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 14 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 15 {
			_root._x += random(5);
			_root._y += random(5);
		}
		frame 16 {
			_root._x -= random(5);
			_root._y -= random(5);
		}
		frame 18 {
			_root._x = 0;
			_root._y = 0;
		}
		frame 60 {
			stop();
		}
	}
	movieClip 7279	{
		frame 132 {
			stop();
		}
	}
	movieClip 7284	{
		frame 91 {
			_root.giveDamage25F();
		}
		frame 224 {
			stop();
			_parent.gotoAndStop(15);
		}
	}
	movieClip 7285	{
		frame 60 {
			stop();
			_root.attacked = 1;
			_parent.gotoAndStop(1);
		}
	}
	movieClip 7286	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 10 {
			stop();
		}
		frame 11 {
			stop();
		}
	}
	instance char25 of movieClip 7286	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfoNelis();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 25) {
				if (_root.attacked == 3) {
					this.swapDepths(10 + _root.turnCounter);
					if (_root.wonBattle == true) {
						this.swapDepths(_root.turnCounter);
					}
					_root.attacked = 4;
				}
				if (_root.attacked == 4) {
					_root.hitWallLeft = false;
					_root.hitWallRight = false;
					_root.hitWallUp = false;
					_root.hitWallDown = false;
					_root.hitWallLeft2 = false;
					_root.hitWallRight2 = false;
					_root.hitWallUp2 = false;
					_root.hitWallDown2 = false;
					_root.hitWallUpLeft = false;
					_root.hitWallDownRight = false;
					_root.hitWallUpRight = false;
					_root.hitWallDownLeft = false;
					_root.hitWallUp2Left = false;
					_root.hitWallDown2Right = false;
					_root.hitWallUp2Right = false;
					_root.hitWallDown2Left = false;
					_root.hitWallUpLeft2 = false;
					_root.hitWallDownRight2 = false;
					_root.hitWallUpRight2 = false;
					_root.hitWallDownLeft2 = false;
					if (_root.subCollision.hitTest(this._x - 50, this._y, true)) {
						_root.hitWallLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y, true)) {
						_root.hitWallRight = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y - 50, true)) {
						_root.hitWallUp = true;
					}
					if (_root.subCollision.hitTest(this._x, this._y + 50, true)) {
						_root.hitWallDown = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y, true)) {
						_root.hitWallLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y, true)) {
						_root.hitWallRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x, this._y - 100, true)) {
						_root.hitWallUp2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x, this._y + 100, true)) {
						_root.hitWallDown2 = true;
					}
					if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.subCollision.hitTest(this._x - 150, this._y, true)) {
						_root.hitWallLeft3 = true;
					}
					if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.subCollision.hitTest(this._x + 150, this._y, true)) {
						_root.hitWallRight3 = true;
					}
					if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.subCollision.hitTest(this._x, this._y - 150, true)) {
						_root.hitWallUp3 = true;
					}
					if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.subCollision.hitTest(this._x, this._y + 150, true)) {
						_root.hitWallDown3 = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitWallUpLeft = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitWallDownRight = true;
					}
					if (_root.subCollision.hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitWallUpRight = true;
					}
					if (_root.subCollision.hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitWallDownLeft = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitWallUp2Left = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitWallDown2Right = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitWallUp2Right = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitWallDown2Left = true;
					}
					if (_root.hitWallLeft == false && _root.subCollision.hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitWallUpLeft2 = true;
					}
					if (_root.hitWallRight == false && _root.subCollision.hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitWallDownRight2 = true;
					}
					if (_root.hitWallUp == false && _root.subCollision.hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitWallUpRight2 = true;
					}
					if (_root.hitWallDown == false && _root.subCollision.hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitWallDownLeft2 = true;
					}
					_root.attacked = 5;
				}
				if (_root.attacked == 5) {
					_root.senseGoodChars();
					_root.attacked = 6;
				}
				if (_root.attacked == 6) {
					_root.senseBadChars();
					_root.attacked = 7;
				}
				if (_root.attacked == 7) {
					if (_root.hitCharLeft == true) {
						this._rotation = 90;
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharRight == true) {
							this._rotation = 270;
							_root.nelisAttackType = 'holy';
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp == true) {
							this._rotation = 180;
							_root.nelisAttackType = 'holy';
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharDown == true) {
							this._rotation = 0;
							_root.nelisAttackType = 'holy';
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
						this._rotation = 90;
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this.gotoAndStop(1);
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false) {
						this._rotation = 270;
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						this.gotoAndStop(1);
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false) {
						this._rotation = 180;
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						this.gotoAndStop(1);
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false) {
						this._rotation = 0;
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						this.gotoAndStop(1);
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
						this._rotation = 90;
						this.gotoAndStop(1);
						this._x -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
						this._rotation = 270;
						this.gotoAndStop(1);
						this._x += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
						this._rotation = 180;
						this.gotoAndStop(1);
						this._y -= 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
						this._rotation = 0;
						this.gotoAndStop(1);
						this._y += 50;
						_root.steps += 1;
						_root.displaySteps();
						_root.nelisAttackType = 'holy';
						_root.shouldAttack = 1;
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharLeft3 == true && _root.hitWallLeft == false && _root.hitWallLeft2 == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharRight3 == true && _root.hitWallRight == false && _root.hitWallRight2 == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharUp3 == true && _root.hitWallUp == false && _root.hitWallUp2 == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharDown3 == true && _root.hitWallDown == false && _root.hitWallDown2 == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharLeft4 == true && _root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.hitCharLeft == false && _root.hitBadLeft == false) {
							this._rotation = 90;
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharRight4 == true && _root.hitWallRight == false && _root.hitWallRight2 == false && _root.hitCharRight == false && _root.hitBadRight == false) {
							this._rotation = 270;
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharUp4 == true && _root.hitWallUp == false && _root.hitWallUp2 == false && _root.hitCharUp == false && _root.hitBadUp == false) {
							this._rotation = 180;
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharDown4 == true && _root.hitWallDown == false && _root.hitWallDown2 == false && _root.hitCharDown == false && _root.hitBadDown == false) {
							this._rotation = 0;
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							this.gotoAndStop(1);
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
					}
					if (_root.shouldAttack == 0) {
						if (_root.hitCharUp2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallUpLeft == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharDown2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallDownRight == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharUp2Right == true && _root.hitWallRight == false && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallUpRight == false) {
							this._rotation = 180;
							this.gotoAndStop(1);
							this._x += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharDown2Left == true && _root.hitWallLeft == false && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallDown == false) {
							this._rotation = 0;
							this.gotoAndStop(1);
							this._x -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharDownRight2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharUpRight2 == true && _root.hitWallUp == false && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUpRight == false) {
							this._rotation = 270;
							this.gotoAndStop(1);
							this._y -= 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
						if (_root.shouldAttack == 0 && _root.hitCharDownLeft2 == true && _root.hitWallDown == false && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDownLeft == false) {
							this._rotation = 90;
							this.gotoAndStop(1);
							this._y += 50;
							_root.steps += 1;
							_root.displaySteps();
							_root.nelisAttackType = 'fire';
							_root.shouldAttack = 1;
						}
					}
					_root.enemyMove();
					_root.attacked = 8;
				}
				if (_root.attacked == 8) {
					if (_root.shouldAttack == 0) {
						_root.changeturns();
					}
					if (_root.shouldAttack == 1) {
						_root.attacked = 2;
						_root.nelisAttack();
					}
				}
				if (_root.moveTurn == 25 && _root.attacked == 1 && _root.checkedForDead == true) {
					_root.changeturns();
				}
			}
		}
	}
	instance char16 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo16();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 16 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 16) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 16 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char17 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo17();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 17 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 17) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 17 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char18 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo18();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 18 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 18) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 18 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char19 of movieClip 3486 phantom {
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo19();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 19 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitWallLeft = false;
				_root.hitWallRight = false;
				_root.hitWallUp = false;
				_root.hitWallDown = false;
				_root.hitWallLeft2 = false;
				_root.hitWallRight2 = false;
				_root.hitWallUp2 = false;
				_root.hitWallDown2 = false;
				_root.hitWallUpLeft = false;
				_root.hitWallDownRight = false;
				_root.hitWallUpRight = false;
				_root.hitWallDownLeft = false;
				_root.hitWallUp2Left = false;
				_root.hitWallDown2Right = false;
				_root.hitWallUp2Right = false;
				_root.hitWallDown2Left = false;
				_root.hitWallUpLeft2 = false;
				_root.hitWallDownRight2 = false;
				_root.hitWallUpRight2 = false;
				_root.hitWallDownLeft2 = false;
				_root.hitWallLeft3 = false;
				_root.hitWallRight3 = false;
				_root.hitWallUp3 = false;
				_root.hitWallDown3 = false;
				if (_root.Collision.hitTest(this._x - 50, this._y, true)) {
					_root.hitWallLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y, true)) {
					_root.hitWallRight = true;
				}
				if (_root.Collision.hitTest(this._x, this._y - 50, true)) {
					_root.hitWallUp = true;
				}
				if (_root.Collision.hitTest(this._x, this._y + 50, true)) {
					_root.hitWallDown = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y, true)) {
					_root.hitWallLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y, true)) {
					_root.hitWallRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x, this._y - 100, true)) {
					_root.hitWallUp2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x, this._y + 100, true)) {
					_root.hitWallDown2 = true;
				}
				if (_root.hitWallLeft == false && _root.hitWallLeft2 == false && _root.Collision.hitTest(this._x - 150, this._y, true)) {
					_root.hitWallLeft3 = true;
				}
				if (_root.hitWallRight == false && _root.hitWallRight2 == false && _root.Collision.hitTest(this._x + 150, this._y, true)) {
					_root.hitWallRight3 = true;
				}
				if (_root.hitWallUp == false && _root.hitWallUp2 == false && _root.Collision.hitTest(this._x, this._y - 150, true)) {
					_root.hitWallUp3 = true;
				}
				if (_root.hitWallDown == false && _root.hitWallDown2 == false && _root.Collision.hitTest(this._x, this._y + 150, true)) {
					_root.hitWallDown3 = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y - 50, true)) {
					_root.hitWallUpLeft = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y + 50, true)) {
					_root.hitWallDownRight = true;
				}
				if (_root.Collision.hitTest(this._x + 50, this._y - 50, true)) {
					_root.hitWallUpRight = true;
				}
				if (_root.Collision.hitTest(this._x - 50, this._y + 50, true)) {
					_root.hitWallDownLeft = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 50, this._y - 100, true)) {
					_root.hitWallUp2Left = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 50, this._y + 100, true)) {
					_root.hitWallDown2Right = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 50, this._y - 100, true)) {
					_root.hitWallUp2Right = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 50, this._y + 100, true)) {
					_root.hitWallDown2Left = true;
				}
				if (_root.hitWallLeft == false && _root.Collision.hitTest(this._x - 100, this._y - 50, true)) {
					_root.hitWallUpLeft2 = true;
				}
				if (_root.hitWallRight == false && _root.Collision.hitTest(this._x + 100, this._y + 50, true)) {
					_root.hitWallDownRight2 = true;
				}
				if (_root.hitWallUp == false && _root.Collision.hitTest(this._x + 100, this._y - 50, true)) {
					_root.hitWallUpRight2 = true;
				}
				if (_root.hitWallDown == false && _root.Collision.hitTest(this._x - 100, this._y + 50, true)) {
					_root.hitWallDownLeft2 = true;
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				_root.hitCharLeft2 = false;
				_root.hitCharRight2 = false;
				_root.hitCharUp2 = false;
				_root.hitCharDown2 = false;
				_root.hitCharUpLeft = false;
				_root.hitCharDownRight = false;
				_root.hitCharUpRight = false;
				_root.hitCharDownLeft = false;
				_root.hitCharUp2Left = false;
				_root.hitCharDown2Right = false;
				_root.hitCharUp2Right = false;
				_root.hitCharDown2Left = false;
				_root.hitCharUpLeft2 = false;
				_root.hitCharDownRight2 = false;
				_root.hitCharUpRight2 = false;
				_root.hitCharDownLeft2 = false;
				_root.hitCharLeft3 = false;
				_root.hitCharRight3 = false;
				_root.hitCharUp3 = false;
				_root.hitCharDown3 = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft2 = true;
					}
					if (_root.hitCharRight == false && _root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp2 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft3 = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp3 = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown3 = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
						_root.hitCharUpLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
						_root.hitCharDownRight = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
						_root.hitCharUpRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
						_root.hitCharDownLeft = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
						_root.hitCharUp2Left = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
						_root.hitCharDown2Right = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
						_root.hitCharUp2Right = true;
					}
					if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
						_root.hitCharDown2Left = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
						_root.hitCharUpLeft2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
						_root.hitCharDownRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
						_root.hitCharUpRight2 = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
						_root.hitCharDownLeft2 = true;
					}
					++i;
				}
				_root.hitBadLeft = false;
				_root.hitBadRight = false;
				_root.hitBadUp = false;
				_root.hitBadDown = false;
				_root.hitBadLeft2 = false;
				_root.hitBadRight2 = false;
				_root.hitBadUp2 = false;
				_root.hitBadDown2 = false;
				_root.hitBadUpLeft = false;
				_root.hitBadDownRight = false;
				_root.hitBadUpRight = false;
				_root.hitBadDownLeft = false;
				_root.hitBadUp2Left = false;
				_root.hitBadDown2Right = false;
				_root.hitBadUp2Right = false;
				_root.hitBadDown2Left = false;
				_root.hitBadUpLeft2 = false;
				_root.hitBadDownRight2 = false;
				_root.hitBadUpRight2 = false;
				_root.hitBadDownLeft2 = false;
				var i = 16;
				while (i < 26) {
					if (i !== 19) {
						if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
							_root.hitBadLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
							_root.hitBadRight = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
							_root.hitBadUp = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
							_root.hitBadDown = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
							_root.hitBadLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
							_root.hitBadRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
							_root.hitBadUp2 = true;
						}
						if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
							_root.hitBadDown2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 50, true)) {
							_root.hitBadUpLeft = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 50, true)) {
							_root.hitBadDownRight = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 50, true)) {
							_root.hitBadUpRight = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 50, true)) {
							_root.hitBadDownLeft = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y - 100, true)) {
							_root.hitBadUp2Left = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y + 100, true)) {
							_root.hitBadDown2Right = true;
						}
						if (_root['char' + i].hitTest(this._x + 50, this._y - 100, true)) {
							_root.hitBadUp2Right = true;
						}
						if (_root['char' + i].hitTest(this._x - 50, this._y + 100, true)) {
							_root.hitBadDown2Left = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y - 50, true)) {
							_root.hitBadUpLeft2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y + 50, true)) {
							_root.hitBadDownRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x + 100, this._y - 50, true)) {
							_root.hitBadUpRight2 = true;
						}
						if (_root['char' + i].hitTest(this._x - 100, this._y + 50, true)) {
							_root.hitBadDownLeft2 = true;
						}
					}
					++i;
				}
				if (_root.hitCharLeft == true && _root.hitCharUpLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true && _root.hitCharUp == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDownRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true && _root.hitCharDown == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharUpRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true && _root.hitCharRight == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharDownLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true && _root.hitCharLeft == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft2 == true && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDownRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp2Right == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown2Left == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.hitCharLeft == true) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight == true) {
					this._rotation = 270;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp == true) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown == true) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharLeft2 == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharRight2 == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUp2 == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDown2 == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpLeft == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownRight == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._rotation = 270;
					this.gotoAndStop(1);
					this._y -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharUpRight == true && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._rotation = 180;
					this.gotoAndStop(1);
					this._x += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._rotation = 90;
					this.gotoAndStop(1);
					this._y += 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0 && _root.hitCharDownLeft == true && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._rotation = 0;
					this.gotoAndStop(1);
					this._x -= 50;
					_root.steps += 1;
					_root.displaySteps();
					_root.shouldAttack = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x < this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharUp == false && _root.hitBadUp == false && _root.hitWallUp == false) {
					this._y -= 50;
					this._rotation = 180;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._x > this._x && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharDown == false && _root.hitBadDown == false && _root.hitWallDown == false) {
					this._y += 50;
					this._rotation = 0;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y < this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharLeft == false && _root.hitBadLeft == false && _root.hitWallLeft == false) {
					this._x -= 50;
					this._rotation = 90;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.char4._y > this._y && _root.shouldAttack == 0 && _root.moved == 0 && _root.hitCharRight == false && _root.hitBadRight == false && _root.hitWallRight == false) {
					this._x += 50;
					this._rotation = 270;
					_root.steps += 1;
					_root.displaySteps();
					_root.moved = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 19 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char22 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo22();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 22 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 22 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char21 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo21();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 21 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 21 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char20 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo20();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displayDefaultInfo();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 20 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 20 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	instance char23 of movieClip 6384	{
		onClipEvent (rollOver) {
			if (_root.attacked !== 1 && _root.moveTurn < 16) {
				_root.displayInfo23();
			}
		}
		onClipEvent (press, rollOut, dragOut) {
			_root.displaySteps();
			_root.displayHP();
			_root.displayPsP();
			_root.displayName();
			_root.displayAttackButtons();
		}
		onClipEvent (enterFrame) {
			if (_root.moveTurn == 23 && _root.attacked == 3) {
				this.swapDepths(10 + _root.turnCounter);
				if (_root.wonBattle == true) {
					this.swapDepths(_root.turnCounter);
				}
				_root.hitCharLeft = false;
				_root.hitCharRight = false;
				_root.hitCharUp = false;
				_root.hitCharDown = false;
				var i = 1;
				while (i < 16) {
					if (_root['char' + i].hitTest(this._x - 50, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 50, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 50, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 50, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 100, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 100, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 100, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 100, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 150, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 150, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 150, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 150, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 200, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 200, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 200, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 200, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 250, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 250, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 250, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 250, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 300, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 300, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 300, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 300, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 350, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 350, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y - 350, true)) {
						_root.hitCharUp = true;
					}
					if (_root['char' + i].hitTest(this._x, this._y + 350, true)) {
						_root.hitCharDown = true;
					}
					if (_root['char' + i].hitTest(this._x - 400, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 400, this._y, true)) {
						_root.hitCharRight = true;
					}
					if (_root['char' + i].hitTest(this._x - 450, this._y, true)) {
						_root.hitCharLeft = true;
					}
					if (_root['char' + i].hitTest(this._x + 450, this._y, true)) {
						_root.hitCharRight = true;
					}
					++i;
				}
				if (_root.hitCharLeft) {
					this._rotation = 90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharUp) {
					this._rotation = 180;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharRight) {
					this._rotation = -90;
					_root.shouldAttack = 1;
				}
				if (_root.hitCharDown) {
					this._rotation = 0;
					_root.shouldAttack = 1;
				}
				if (_root.shouldAttack == 0) {
					_root.changeturns();
				}
				if (_root.shouldAttack == 1) {
					_root.attacked = 2;
					_root.attack();
				}
			}
			if (_root.moveTurn == 23 && _root.attacked == 1 && _root.checkedForDead == true) {
				_root.changeturns();
			}
		}
	}
	frame 1945 {
		pinholeOpen.removeMovieClip();
		turnCounter = 1;
		wingold = random(95) + 9000;
		wongold = 'Won ' + _root.wingold + ' gold coins!';
		name16 = 'Phantom Armr 1';
		name17 = 'Phantom Armr 2';
		name18 = 'Phantom Armr 3';
		name19 = 'Phantom Armr 4';
		name20 = 'Energy Golem 1';
		name21 = 'Energy Golem 2';
		name22 = 'Energy Golem 3';
		name23 = 'Energy Golem 4';
		name24 = '';
		name25 = 'Nelis';
		char16Dead = false;
		char17Dead = false;
		char18Dead = false;
		char19Dead = false;
		char20Dead = false;
		char21Dead = false;
		char22Dead = false;
		char23Dead = false;
		char24Dead = true;
		char25Dead = false;
		nelisDead = false;
		MaxHP16 = 80;
		MaxHP17 = 80;
		MaxHP18 = 80;
		MaxHP19 = 80;
		MaxHP20 = 32;
		MaxHP21 = 32;
		MaxHP22 = 32;
		MaxHP23 = 32;
		MaxHP24 = 1;
		MaxHP25 = 500;
		MaxPsP16 = 0;
		MaxPsP17 = 0;
		MaxPsP18 = 0;
		MaxPsP19 = 0;
		MaxPsP20 = 0;
		MaxPsP21 = 0;
		MaxPsP22 = 0;
		MaxPsP23 = 0;
		MaxPsP24 = 0;
		MaxPsP25 = 0;
		MaxSteps16 = 1;
		MaxSteps17 = 1;
		MaxSteps18 = 1;
		MaxSteps19 = 1;
		MaxSteps20 = 0;
		MaxSteps21 = 0;
		MaxSteps22 = 0;
		MaxSteps23 = 0;
		MaxSteps24 = 1;
		MaxSteps25 = 99;
		char16AttackType1 = 'melee';
		char16AttackType2 = 'none';
		char16AttackType3 = 'none';
		char16AttackType4 = 'none';
		char17AttackType1 = 'melee';
		char17AttackType2 = 'none';
		char17AttackType3 = 'none';
		char17AttackType4 = 'none';
		char18AttackType1 = 'melee';
		char18AttackType2 = 'none';
		char18AttackType3 = 'none';
		char18AttackType4 = 'none';
		char19AttackType1 = 'melee';
		char19AttackType2 = 'none';
		char19AttackType3 = 'none';
		char19AttackType4 = 'none';
		char20AttackType1 = 'laserblast';
		char20AttackType2 = 'none';
		char20AttackType3 = 'none';
		char20AttackType4 = 'none';
		char21AttackType1 = 'laserblast';
		char21AttackType2 = 'none';
		char21AttackType3 = 'none';
		char21AttackType4 = 'none';
		char22AttackType1 = 'laserblast';
		char22AttackType2 = 'none';
		char22AttackType3 = 'none';
		char22AttackType4 = 'none';
		char23AttackType1 = 'laserblast';
		char23AttackType2 = 'none';
		char23AttackType3 = 'none';
		char23AttackType4 = 'none';
		char24AttackType1 = 'melee';
		char24AttackType2 = 'none';
		char24AttackType3 = 'none';
		char24AttackType4 = 'none';
		char25AttackType1 = 'firegate';
		char25AttackType2 = 'holyblast';
		char25AttackType3 = 'firegate';
		char25AttackType4 = 'holyblast';
		char16Resists = 'Light';
		char17Resists = 'Light';
		char18Resists = 'Light';
		char19Resists = 'Light';
		char20Resists = 'none';
		char21Resists = 'none';
		char22Resists = 'none';
		char23Resists = 'none';
		char24Resists = 'none';
		char25Resists = 'Light';
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char16Damage = 0;
		char17Damage = 0;
		char18Damage = 0;
		char19Damage = 0;
		char20Damage = 0;
		char21Damage = 0;
		char22Damage = 0;
		char23Damage = 0;
		char24Damage = 0;
		char25Damage = 0;
		char16Drain = 0;
		char17Drain = 0;
		char18Drain = 0;
		char19Drain = 0;
		char20Drain = 0;
		char21Drain = 0;
		char22Drain = 0;
		char23Drain = 0;
		char24Drain = 0;
		char25Drain = 0;
		char16Strength = 20;
		char17Strength = 20;
		char18Strength = 20;
		char19Strength = 20;
		char20Strength = 10;
		char21Strength = 10;
		char22Strength = 10;
		char23Strength = 10;
		char24Strength = 1;
		char25Strength = 20;
	}
	instance battleDisplay of movieClip 5966	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1946 {
		adjustDifficulty();
		setDefaults();
	}
	frame 1947 {
		stop();
		battleDisplay.onEnterFrame = function () {
			if (Key.isDown(49) && attacked == 0 && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton1();
			}
			if (Key.isDown(50) && attacked == 0 && !Key.isDown(49) && !Key.isDown(51) && !Key.isDown(52)) {
				attackButton2();
			}
			if (Key.isDown(51) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(52)) {
				attackButton3();
			}
			if (Key.isDown(52) && attacked == 0 && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51)) {
				attackButton4();
			}
		};
		var HotkeyListener = new Object();
		HotkeyListener.onKeyDown = function () {
			var v1 = Key.getCode();
			if (v1 == 69) {
				rotateButton1();
			} else {
				if (v1 == 81) {
					rotateButton2();
				} else {
					if (v1 == 16) {
						endTurnButton();
					} else {
						if (v1 == 88) {
							undoButton();
						} else {
							if (v1 == 17) {
								showHeartsButton();
							} else {
								if (v1 == 48) {
									surrenderButton();
								}
							}
						}
					}
				}
			}
		};
		Key.addListener(HotkeyListener);
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 16) {
				displayInfo1();
			}
		};
		char1.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 26) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char1._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char1._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char1._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char1._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char1.gotoAndStop(5);
						initialX = char1._x;
						initialY = char1._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 16) {
				displayInfo2();
			}
		};
		char2.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char2._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char2._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char2._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char2._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char2.gotoAndStop(5);
						initialX = char2._x;
						initialY = char2._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 16) {
				displayInfo3();
			}
		};
		char3.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char3._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char3._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char3._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char3._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char3.gotoAndStop(5);
						initialX = char3._x;
						initialY = char3._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 16) {
				displayInfo4();
			}
		};
		char4.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char4._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char4._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char4._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char4._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char4.gotoAndStop(5);
						initialX = char4._x;
						initialY = char4._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 16) {
				displayInfo5();
			}
		};
		char5.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char5._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char5._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char5._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char5._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char5.gotoAndStop(5);
						initialX = char5._x;
						initialY = char5._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 16) {
				displayInfo6();
			}
		};
		char6.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char6._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char6._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char6._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char6._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char6.gotoAndStop(5);
						initialX = char6._x;
						initialY = char6._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 16) {
				displayInfo7();
			}
		};
		char7.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char7._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char7._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char7._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char7._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char7.gotoAndStop(5);
						initialX = char7._x;
						initialY = char7._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 16) {
				displayInfo8();
			}
		};
		char8.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (char8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (char8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char8._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char8._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char8._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char8._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char8.gotoAndStop(5);
						initialX = char8._x;
						initialY = char8._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 16) {
				displayInfo9();
			}
		};
		char9.onRollOut = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onPress = function () {
			displaySteps();
			displayHP();
			displayPsP();
			displayName();
			displayAttackButtons();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 26) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
					hitWallLeft = true;
				}
				if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
					hitWallRight = true;
				}
				if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
					hitWallUp = true;
				}
				if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
					hitWallDown = true;
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonBattle == true) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false) {
						char9._rotation = 90;
						display = '';
					}
				}
				if (Key.isDown(65) || Key.isDown(37)) {
					if (moving == false && hitWallLeft == false && hitCharLeft == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (moving == false) {
						char9._rotation = 270;
						display = '';
					}
				}
				if (Key.isDown(68) || Key.isDown(39)) {
					if (!moving && hitWallRight == false && hitCharRight == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityX = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false) {
						char9._rotation = 180;
						display = '';
					}
				}
				if (Key.isDown(87) || Key.isDown(38)) {
					if (moving == false && hitWallUp == false && hitCharUp == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = -1 * speed;
						steps += 1;
						displaySteps();
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false) {
						char9._rotation = 0;
						display = '';
					}
				}
				if (Key.isDown(83) || Key.isDown(40)) {
					if (moving == false && hitWallDown == false && hitCharDown == false) {
						moving = true;
						char9.gotoAndStop(5);
						initialX = char9._x;
						initialY = char9._y;
						velocityY = speed;
						steps += 1;
						displaySteps();
					}
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
	}
	frame 1955 {
		stop();
		gotoAndStop('battleProper08D');
	}
	frame 1956 {
		stop();
		playFanfareMusic();
		attacked = 1;
		_root.battleDisplay.removeMovieClip();
	}
	frame 1957 {
		stop();
		clearBattlefield();
		goingtoScene = 'ending01';
		submitGameDone();
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	movieClip 7287	{
		frame 1 {
			_root.mainChar.gotoAndStop(1);
		}
		frame 150 {
			stop();
			_root.changeScene();
		}
	}
	frame 1965 {
		stop();
		battleDisplay.removeMovieClip();
		attacked = 1;
	}
	instance Darkness_opacity50 of movieClip 5967	{
		onClipEvent (load) {
			this.swapDepths(99000);
		}
	}
	instance defeatBox of movieClip 6076	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1966 {
		stop();
		clearBattlefield();
		goingtoScene = 'deathScreen';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 1974 {
		function findBase() {
			if (randomBattles > 2) {
				mapMsg = 'You have discovered the Mechanics\' hidden base! Return to Tastidian--he\'ll want to know of this.';
				attachMovie('Map_MsgBox', 'mapMsgBox', 25);
				mapMsgBox._x = 79;
				mapMsgBox._y = 90;
				mapLowlands.removeMovieClip();
				attachMovie('Map_MechBase', 'mapMechBase', 10);
				mapMechBase._x = 407;
				mapMechBase._y = 81;
				mission1Done = true;
				tallyMissions();
			}
			if (randomBattles <= 2) {
				++randomBattles;
				goingtoScene = 'randomBattle01';
				gotoAndStop('closeMap');
			}
		}
		mapdisplay = '';
		mapMsg = '';
		lastscene = 'mapScreen';
		if (!mission1Done) {
			attachMovie('Map_Lowlands', 'mapLowlands', 10);
			mapLowlands._x = 411;
			mapLowlands._y = 122;
		}
		if (mission1Done == true) {
			attachMovie('Map_MechBase', 'mapMechBase', 10);
			mapMechBase._x = 407;
			mapMechBase._y = 81;
		}
		if (mission2Done == true && spokeToTastidian < 4) {
			mapMsg = 'You have destroyed the garrison and captured the Mechanics\' plans! Return to Tastidian--he\'ll want to know of this.';
			attachMovie('Map_MsgBox', 'mapMsgBox', 25);
			mapMsgBox._x = 79;
			mapMsgBox._y = 90;
		}
		if (mission3Done == true && spokeToTastidian >= 8) {
			attachMovie('Map_DeeperDowns', 'mapDeeperDowns', 11);
			mapDeeperDowns._x = 207;
			mapDeeperDowns._y = 53;
		}
		if (spokeToTastidian >= 11) {
			attachMovie('Map_Academy', 'mapAcademy', 12);
			mapAcademy._x = 355;
			mapAcademy._y = 303;
		}
		stop();
		somnusButton.onRollOver = function () {
			mapdisplay = 'Somnus, underground capital city of the Shadowlands.';
		};
		somnusButton.onRollOut = function () {
			mapdisplay = '';
		};
		somnusButton.onPress = function () {
			moneyWon = 0;
			goingtoScene = 'town01';
			if (spokeToPiter == 3) {
				goingtoScene = 'town01B';
			}
			gotoAndStop('closeMap');
		};
		forestButton.onRollOver = function () {
			mapdisplay = 'The Great Forest, a thick, tangled temperate rainforest. It is very easy to get lost here.';
		};
		forestButton.onRollOut = function () {
			mapdisplay = '';
		};
		forestButton.onPress = function () {
			if (mission1Done == true && spokeToTastidian == 1) {
			} else {
				if (mission2Done == true && spokeToTastidian == 3) {
				} else {
					goingtoScene = 'cave01';
					gotoAndStop('closeMap');
				}
			}
		};
		lowlandsButton.onRollOver = function () {
			if (!mission1Done) {
				mapdisplay = 'Just north of the Great Forest is a sparsely inhabited area prone to flooding, with poor dirt roads and many bandits.';
			}
			if (mission1Done == true) {
				mapdisplay = 'A sparsely inhabited area north of the Great Forest. The Mechanics have a base here.';
			}
		};
		lowlandsButton.onRollOut = function () {
			mapdisplay = '';
		};
		lowlandsButton.onPress = function () {
			if (mission1Done == true && mission2Done == true && spokeToTastidian > 3) {
				goingtoScene = 'randomBattle02';
				gotoAndStop('closeMap');
			}
			if (mission1Done == true && !mission2Done && spokeToTastidian == 3) {
				goingtoScene = 'battle02A';
				gotoAndStop('closeMap');
			}
			if (!mission1Done) {
				findBase();
			}
		};
		lakeButton.onRollOver = function () {
			mapdisplay = 'Lake Alto, said to be the deepest lake on the continent.';
		};
		lakeButton.onRollOut = function () {
			mapdisplay = '';
		};
		lakeButton.onPress = function () {
			if (mission1Done == true && spokeToTastidian == 1) {
			} else {
				if (mission2Done == true && spokeToTastidian == 3) {
				} else {
					goingtoScene = 'lake01';
					gotoAndStop('closeMap');
				}
			}
		};
		deeperdownsButton.onRollOver = function () {
			if (spokeToTastidian < 8) {
			}
			if (spokeToTastidian >= 8) {
				mapdisplay = 'The Deeper Downs, a series of caverns beneath the earth where the rebels are rumored to be hiding.';
			}
		};
		deeperdownsButton.onRollOut = function () {
			mapdisplay = '';
		};
		deeperdownsButton.onPress = function () {
			if (spokeToTastidian < 8) {
			}
			if (spokeToTastidian >= 8) {
				goingtoScene = 'deeper01';
				gotoAndStop('closeMap');
			}
		};
		academyButton.onRollOver = function () {
			if (spokeToTastidian < 11) {
			}
			if (spokeToTastidian >= 11) {
				mapdisplay = 'The Psy Academy, a military educational facility known to produce the greatest human generals.';
			}
		};
		academyButton.onRollOut = function () {
			mapdisplay = '';
		};
		academyButton.onPress = function () {
			if (spokeToTastidian < 11) {
			}
			if (spokeToTastidian >= 11) {
				if (spokeToPiter !== 2) {
					goingtoScene = 'acad01';
				}
				if (spokeToPiter == 2 && spokeToTastidian == 13) {
					goingtoScene = 'battle07A';
				}
				gotoAndStop('closeMap');
			}
		};
	}
	frame 1975 {
		stop();
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	movieClip 7292	{
	}
	frame 1977 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1AttackType1 = multiChar1AttackType1;
		char1AttackType2 = multiChar1AttackType2;
		char1AttackType3 = multiChar1AttackType3;
		char1AttackType4 = multiChar1AttackType4;
		char3AttackType1 = multiChar3AttackType1;
		char3AttackType2 = multiChar3AttackType2;
		char3AttackType3 = multiChar3AttackType3;
		char3AttackType4 = multiChar3AttackType4;
		char5AttackType1 = multiChar5AttackType1;
		char5AttackType2 = multiChar5AttackType2;
		char5AttackType3 = multiChar5AttackType3;
		char5AttackType4 = multiChar5AttackType4;
		char7AttackType1 = multiChar7AttackType1;
		char7AttackType2 = multiChar7AttackType2;
		char7AttackType3 = multiChar7AttackType3;
		char7AttackType4 = multiChar7AttackType4;
		char9AttackType1 = multiChar9AttackType1;
		char9AttackType2 = multiChar9AttackType2;
		char9AttackType3 = multiChar9AttackType3;
		char9AttackType4 = multiChar9AttackType4;
		char11AttackType1 = multiChar11AttackType1;
		char11AttackType2 = multiChar11AttackType2;
		char11AttackType3 = multiChar11AttackType3;
		char11AttackType4 = multiChar11AttackType4;
		char13AttackType1 = multiChar13AttackType1;
		char13AttackType2 = multiChar13AttackType2;
		char13AttackType3 = multiChar13AttackType3;
		char13AttackType4 = multiChar13AttackType4;
		char15AttackType1 = multiChar15AttackType1;
		char15AttackType2 = multiChar15AttackType2;
		char15AttackType3 = multiChar15AttackType3;
		char15AttackType4 = multiChar15AttackType4;
		char2AttackType1 = multiChar2AttackType1;
		char2AttackType2 = multiChar2AttackType2;
		char2AttackType3 = multiChar2AttackType3;
		char2AttackType4 = multiChar2AttackType4;
		char4AttackType1 = multiChar4AttackType1;
		char4AttackType2 = multiChar4AttackType2;
		char4AttackType3 = multiChar4AttackType3;
		char4AttackType4 = multiChar4AttackType4;
		char6AttackType1 = multiChar6AttackType1;
		char6AttackType2 = multiChar6AttackType2;
		char6AttackType3 = multiChar6AttackType3;
		char6AttackType4 = multiChar6AttackType4;
		char8AttackType1 = multiChar8AttackType1;
		char8AttackType2 = multiChar8AttackType2;
		char8AttackType3 = multiChar8AttackType3;
		char8AttackType4 = multiChar8AttackType4;
		char10AttackType1 = multiChar10AttackType1;
		char10AttackType2 = multiChar10AttackType2;
		char10AttackType3 = multiChar10AttackType3;
		char10AttackType4 = multiChar10AttackType4;
		char12AttackType1 = multiChar12AttackType1;
		char12AttackType2 = multiChar12AttackType2;
		char12AttackType3 = multiChar12AttackType3;
		char12AttackType4 = multiChar12AttackType4;
		char14AttackType1 = multiChar14AttackType1;
		char14AttackType2 = multiChar14AttackType2;
		char14AttackType3 = multiChar14AttackType3;
		char14AttackType4 = multiChar14AttackType4;
		char16AttackType1 = multiChar16AttackType1;
		char16AttackType2 = multiChar16AttackType2;
		char16AttackType3 = multiChar16AttackType3;
		char16AttackType4 = multiChar16AttackType4;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7293	{
	}
	movieClip 7294	{
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 1978 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 1979 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 1984 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	button 7301 {
		on (press) {
			if (_root.moveTurn == 1 && _root.attacked == 0) {
				_root.rotateCW1();
			}
			if (_root.moveTurn == 2 && _root.attacked == 0) {
				_root.rotateCW2();
			}
			if (_root.moveTurn == 3 && _root.attacked == 0) {
				_root.rotateCW3();
			}
			if (_root.moveTurn == 4 && _root.attacked == 0) {
				_root.rotateCW4();
			}
			if (_root.moveTurn == 5 && _root.attacked == 0) {
				_root.rotateCW5();
			}
			if (_root.moveTurn == 6 && _root.attacked == 0) {
				_root.rotateCW6();
			}
			if (_root.moveTurn == 7 && _root.attacked == 0) {
				_root.rotateCW7();
			}
			if (_root.moveTurn == 8 && _root.attacked == 0) {
				_root.rotateCW8();
			}
			if (_root.moveTurn == 9 && _root.attacked == 0) {
				_root.rotateCW9();
			}
			if (_root.moveTurn == 10 && _root.attacked == 0) {
				_root.rotateCW10();
			}
			if (_root.moveTurn == 11 && _root.attacked == 0) {
				_root.rotateCW11();
			}
			if (_root.moveTurn == 12 && _root.attacked == 0) {
				_root.rotateCW12();
			}
			if (_root.moveTurn == 13 && _root.attacked == 0) {
				_root.rotateCW13();
			}
			if (_root.moveTurn == 14 && _root.attacked == 0) {
				_root.rotateCW14();
			}
			if (_root.attacked == 1) {
			}
		}
	}
	button 7302 {
		on (press) {
			if (_root.attacked == 0 && !_root.moving) {
				_root.undoMoveMulti();
				_root.displayStepsMulti();
			}
			if (_root.attacked == 1) {
				_root.display = 'Cannot undo after attack.';
			}
		}
	}
	button 7303 {
		on (press) {
			if (_root.moving == false && _root.attacked == 0) {
				_root.char1.gotoAndStop(1);
				_root.char2.gotoAndStop(1);
				_root.char3.gotoAndStop(1);
				_root.char4.gotoAndStop(1);
				_root.char5.gotoAndStop(1);
				_root.char6.gotoAndStop(1);
				_root.char7.gotoAndStop(1);
				_root.char8.gotoAndStop(1);
				_root.char9.gotoAndStop(1);
				_root.char10.gotoAndStop(1);
				_root.char11.gotoAndStop(1);
				_root.char12.gotoAndStop(1);
				_root.char13.gotoAndStop(1);
				_root.char14.gotoAndStop(1);
				_root.char15.gotoAndStop(1);
				_root.char16.gotoAndStop(1);
				_root.changeturnsMulti();
			}
		}
	}
	movieClip 7309	{
		frame 1 {
			stop();
		}
		instance attackButton1 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType1 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType1 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType1 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType1 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType1 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType1 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtonsMulti();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 17) {
					if (_root.currAttackType1 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType1;
							_root.attackMulti();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance attackButton2 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType2 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType2 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType2 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType2 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType2 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType2 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtonsMulti();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 17) {
					if (_root.currAttackType2 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType2;
							_root.attackMulti();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance attackButton3 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType3 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType3 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType3 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType3 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType3 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType3 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtonsMulti();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 17) {
					if (_root.currAttackType3 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType3;
							_root.attackMulti();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance attackButton4 of movieClip 4482	{
			onClipEvent (rollOver) {
				if (_root.currAttackType4 == 'mindblast') {
					this.gotoAndStop(7);
					_root.display = 'Mind Blast - Range: 1 Cost: 2';
				}
				if (_root.currAttackType4 == 'pyroblast') {
					this.gotoAndStop(8);
					_root.display = 'Pyro Blast - Range: 2 Cost: 7';
				}
				if (_root.currAttackType4 == 'mindshield') {
					this.gotoAndStop(9);
					_root.display = 'Mind Shield - Range: 1 Cost: 3';
				}
				if (_root.currAttackType4 == 'feedback') {
					this.gotoAndStop(10);
					_root.display = 'Feedback - Range: 2 Cost: 5';
				}
				if (_root.currAttackType4 == 'melee') {
					this.gotoAndStop(11);
					_root.display = 'Melee - Range: 1 Cost: 0';
				}
				if (_root.currAttackType4 == 'none') {
					this.gotoAndStop(12);
				}
			}
			onClipEvent (rollOut, dragOut) {
				_root.displayAttackButtonsMulti();
			}
			onClipEvent (press) {
				if (_root.moving == false && _root.moveTurn < 17) {
					if (_root.currAttackType4 == 'none') {
					} else {
						if (_root.attacked == 0) {
							_root.chosenAttack = _root.currAttackType4;
							_root.attackMulti();
						} else {
							_root.display = 'Already attacked.';
						}
					}
				}
			}
		}
		instance qGUIbutton of movieClip 4519	{
			onClipEvent (rollOver) {
				this.gotoAndStop(2);
			}
			onClipEvent (rollOut) {
				this.gotoAndStop(1);
			}
			onClipEvent (press) {
				if (_root.attacked == 0) {
					_root.reDisplaySelectionMulti();
					_root.showHeartsMulti();
				}
			}
		}
		instance moveGUIbutton of movieClip 4492	{
			onClipEvent (load) {
				menuMoved = 0;
			}
			onClipEvent (enterFrame) {
				if (menuMoved == 0) {
					this.gotoAndStop(1);
				}
				if (menuMoved == 1) {
					this.gotoAndStop(2);
				}
				if (menuMoved == 2) {
					this.gotoAndStop(3);
				}
				if (menuMoved == 3) {
					this.gotoAndStop(4);
				}
				if (menuMoved == 4) {
					this.gotoAndStop(5);
				}
				if (menuMoved == 5) {
					this.gotoAndStop(6);
				}
				if (menuMoved == 6) {
					this.gotoAndStop(7);
				}
				if (menuMoved == 7) {
					this.gotoAndStop(8);
				}
			}
			onClipEvent (rollOver) {
				if (menuMoved == 0) {
					menuMoved = 1;
				}
				if (menuMoved == 2) {
					menuMoved = 3;
				}
				if (menuMoved == 4) {
					menuMoved = 5;
				}
				if (menuMoved == 6) {
					menuMoved = 7;
				}
			}
			onClipEvent (rollOut) {
				if (menuMoved == 1) {
					menuMoved = 0;
				}
				if (menuMoved == 3) {
					menuMoved = 2;
				}
				if (menuMoved == 5) {
					menuMoved = 4;
				}
				if (menuMoved == 7) {
					menuMoved = 6;
				}
			}
			onClipEvent (press) {
				if (menuMoved == 0 || menuMoved == 1) {
					menuMoved = 2;
					_root.battleDisplay._y = 305.7;
					_root.battleDisplay.gotoAndStop(2);
				} else {
					if (menuMoved == 2 || menuMoved == 3) {
						menuMoved = 6;
						_root.battleDisplay._x = 0;
						_root.battleDisplay.gotoAndStop(3);
					} else {
						if (menuMoved == 6 || menuMoved == 7) {
							menuMoved = 4;
							_root.battleDisplay._y = -4.3;
							_root.battleDisplay.gotoAndStop(4);
						} else {
							if (menuMoved == 4 || menuMoved == 5) {
								menuMoved = 0;
								_root.battleDisplay._x = 286.6;
								_root.battleDisplay.gotoAndStop(1);
							}
						}
					}
				}
			}
		}
		instance minimizeGUIbutton of movieClip 4497	{
			onClipEvent (load) {
				menuClosed = 0;
			}
			onClipEvent (enterFrame) {
				if (menuClosed == 0) {
					this.gotoAndStop(1);
				}
				if (menuClosed == 1) {
					this.gotoAndStop(3);
				}
				if (menuClosed == 2) {
					this.gotoAndStop(2);
				}
				if (menuClosed == 3) {
					this.gotoAndStop(4);
				}
			}
			onClipEvent (rollOver) {
				if (menuClosed == 0) {
					menuClosed = 2;
				}
				if (menuClosed == 1) {
					menuClosed = 3;
				}
			}
			onClipEvent (rollOut) {
				if (menuClosed == 2) {
					menuClosed = 0;
				}
				if (menuClosed == 3) {
					menuClosed = 1;
				}
			}
			onClipEvent (press) {
				if (menuClosed == 0 || menuClosed == 2) {
					menuClosed = 1;
					if (_root.battleDisplay.moveGUIbutton.menuMoved == 0 || _root.battleDisplay.moveGUIbutton.menuMoved == 1) {
						_root.battleDisplay.minimizeGUIbutton._x += 17.7;
					} else {
						if (_root.battleDisplay.moveGUIbutton.menuMoved == 2 || _root.battleDisplay.moveGUIbutton.menuMoved == 3) {
							_root.battleDisplay.minimizeGUIbutton._x += 17.7;
							_root.battleDisplay.minimizeGUIbutton._y += 74.3;
						} else {
							if (_root.battleDisplay.moveGUIbutton.menuMoved == 4 || _root.battleDisplay.moveGUIbutton.menuMoved == 5) {
								_root.battleDisplay.minimizeGUIbutton._x -= 228.4;
							} else {
								if (_root.battleDisplay.moveGUIbutton.menuMoved == 6 || _root.battleDisplay.moveGUIbutton.menuMoved == 7) {
									_root.battleDisplay.minimizeGUIbutton._x -= 228.4;
									_root.battleDisplay.minimizeGUIbutton._y += 74.3;
								}
							}
						}
					}
					_root.battleDisplay.guiBox._y += 1000;
					_root.battleDisplay.displayField._y += 1000;
					_root.battleDisplay.moveGUIbutton._y += 1000;
					_root.battleDisplay.qGUIbutton._y += 1000;
					_root.battleDisplay.attackButton1._y += 1000;
					_root.battleDisplay.attackButton2._y += 1000;
					_root.battleDisplay.attackButton3._y += 1000;
					_root.battleDisplay.attackButton4._y += 1000;
					_root.battleDisplay.doneButton._y += 1000;
					_root.battleDisplay.undoButton._y += 1000;
					_root.battleDisplay.rotateCW._y += 1000;
					_root.battleDisplay.rotateCCW._y += 1000;
					_root.battleDisplay.MoveIcon._y += 1000;
					_root.battleDisplay.HealthIcon._y += 1000;
					_root.battleDisplay.PsPIcon._y += 1000;
					_root.battleDisplay.CharNameField._y += 1000;
					_root.battleDisplay.StepsField._y += 1000;
					_root.battleDisplay.MaxStepsField._y += 1000;
					_root.battleDisplay.CurrHealthField._y += 1000;
					_root.battleDisplay.MaxHealthField._y += 1000;
					_root.battleDisplay.CurrPsPField._y += 1000;
					_root.battleDisplay.MaxPsPField._y += 1000;
				} else {
					if (menuClosed == 1 || menuClosed == 3) {
						menuClosed = 0;
						if (_root.battleDisplay.moveGUIbutton.menuMoved == 0 || _root.battleDisplay.moveGUIbutton.menuMoved == 1) {
							_root.battleDisplay.minimizeGUIbutton._x -= 17.7;
						} else {
							if (_root.battleDisplay.moveGUIbutton.menuMoved == 2 || _root.battleDisplay.moveGUIbutton.menuMoved == 3) {
								_root.battleDisplay.minimizeGUIbutton._x -= 17.7;
								_root.battleDisplay.minimizeGUIbutton._y -= 74.3;
							} else {
								if (_root.battleDisplay.moveGUIbutton.menuMoved == 4 || _root.battleDisplay.moveGUIbutton.menuMoved == 5) {
									_root.battleDisplay.minimizeGUIbutton._x += 228.4;
								} else {
									if (_root.battleDisplay.moveGUIbutton.menuMoved == 6 || _root.battleDisplay.moveGUIbutton.menuMoved == 7) {
										_root.battleDisplay.minimizeGUIbutton._x += 228.4;
										_root.battleDisplay.minimizeGUIbutton._y -= 74.3;
									}
								}
							}
						}
						_root.battleDisplay.guiBox._y -= 1000;
						_root.battleDisplay.displayField._y -= 1000;
						_root.battleDisplay.moveGUIbutton._y -= 1000;
						_root.battleDisplay.qGUIbutton._y -= 1000;
						_root.battleDisplay.attackButton1._y -= 1000;
						_root.battleDisplay.attackButton2._y -= 1000;
						_root.battleDisplay.attackButton3._y -= 1000;
						_root.battleDisplay.attackButton4._y -= 1000;
						_root.battleDisplay.doneButton._y -= 1000;
						_root.battleDisplay.undoButton._y -= 1000;
						_root.battleDisplay.rotateCW._y -= 1000;
						_root.battleDisplay.rotateCCW._y -= 1000;
						_root.battleDisplay.MoveIcon._y -= 1000;
						_root.battleDisplay.HealthIcon._y -= 1000;
						_root.battleDisplay.PsPIcon._y -= 1000;
						_root.battleDisplay.CharNameField._y -= 1000;
						_root.battleDisplay.StepsField._y -= 1000;
						_root.battleDisplay.MaxStepsField._y -= 1000;
						_root.battleDisplay.CurrHealthField._y -= 1000;
						_root.battleDisplay.MaxHealthField._y -= 1000;
						_root.battleDisplay.CurrPsPField._y -= 1000;
						_root.battleDisplay.MaxPsPField._y -= 1000;
					}
				}
			}
		}
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 1995 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	movieClip 7312	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 1996 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 2005 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1AttackType1 = multiChar1AttackType1;
		char1AttackType2 = multiChar1AttackType2;
		char1AttackType3 = multiChar1AttackType3;
		char1AttackType4 = multiChar1AttackType4;
		char3AttackType1 = multiChar3AttackType1;
		char3AttackType2 = multiChar3AttackType2;
		char3AttackType3 = multiChar3AttackType3;
		char3AttackType4 = multiChar3AttackType4;
		char5AttackType1 = multiChar5AttackType1;
		char5AttackType2 = multiChar5AttackType2;
		char5AttackType3 = multiChar5AttackType3;
		char5AttackType4 = multiChar5AttackType4;
		char7AttackType1 = multiChar7AttackType1;
		char7AttackType2 = multiChar7AttackType2;
		char7AttackType3 = multiChar7AttackType3;
		char7AttackType4 = multiChar7AttackType4;
		char9AttackType1 = multiChar9AttackType1;
		char9AttackType2 = multiChar9AttackType2;
		char9AttackType3 = multiChar9AttackType3;
		char9AttackType4 = multiChar9AttackType4;
		char11AttackType1 = multiChar11AttackType1;
		char11AttackType2 = multiChar11AttackType2;
		char11AttackType3 = multiChar11AttackType3;
		char11AttackType4 = multiChar11AttackType4;
		char13AttackType1 = multiChar13AttackType1;
		char13AttackType2 = multiChar13AttackType2;
		char13AttackType3 = multiChar13AttackType3;
		char13AttackType4 = multiChar13AttackType4;
		char15AttackType1 = multiChar15AttackType1;
		char15AttackType2 = multiChar15AttackType2;
		char15AttackType3 = multiChar15AttackType3;
		char15AttackType4 = multiChar15AttackType4;
		char2AttackType1 = multiChar2AttackType1;
		char2AttackType2 = multiChar2AttackType2;
		char2AttackType3 = multiChar2AttackType3;
		char2AttackType4 = multiChar2AttackType4;
		char4AttackType1 = multiChar4AttackType1;
		char4AttackType2 = multiChar4AttackType2;
		char4AttackType3 = multiChar4AttackType3;
		char4AttackType4 = multiChar4AttackType4;
		char6AttackType1 = multiChar6AttackType1;
		char6AttackType2 = multiChar6AttackType2;
		char6AttackType3 = multiChar6AttackType3;
		char6AttackType4 = multiChar6AttackType4;
		char8AttackType1 = multiChar8AttackType1;
		char8AttackType2 = multiChar8AttackType2;
		char8AttackType3 = multiChar8AttackType3;
		char8AttackType4 = multiChar8AttackType4;
		char10AttackType1 = multiChar10AttackType1;
		char10AttackType2 = multiChar10AttackType2;
		char10AttackType3 = multiChar10AttackType3;
		char10AttackType4 = multiChar10AttackType4;
		char12AttackType1 = multiChar12AttackType1;
		char12AttackType2 = multiChar12AttackType2;
		char12AttackType3 = multiChar12AttackType3;
		char12AttackType4 = multiChar12AttackType4;
		char14AttackType1 = multiChar14AttackType1;
		char14AttackType2 = multiChar14AttackType2;
		char14AttackType3 = multiChar14AttackType3;
		char14AttackType4 = multiChar14AttackType4;
		char16AttackType1 = multiChar16AttackType1;
		char16AttackType2 = multiChar16AttackType2;
		char16AttackType3 = multiChar16AttackType3;
		char16AttackType4 = multiChar16AttackType4;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7313	{
	}
	movieClip 7314	{
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 2006 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 2007 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 2012 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 2023 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 2024 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 2033 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1AttackType1 = multiChar1AttackType1;
		char1AttackType2 = multiChar1AttackType2;
		char1AttackType3 = multiChar1AttackType3;
		char1AttackType4 = multiChar1AttackType4;
		char3AttackType1 = multiChar3AttackType1;
		char3AttackType2 = multiChar3AttackType2;
		char3AttackType3 = multiChar3AttackType3;
		char3AttackType4 = multiChar3AttackType4;
		char5AttackType1 = multiChar5AttackType1;
		char5AttackType2 = multiChar5AttackType2;
		char5AttackType3 = multiChar5AttackType3;
		char5AttackType4 = multiChar5AttackType4;
		char7AttackType1 = multiChar7AttackType1;
		char7AttackType2 = multiChar7AttackType2;
		char7AttackType3 = multiChar7AttackType3;
		char7AttackType4 = multiChar7AttackType4;
		char9AttackType1 = multiChar9AttackType1;
		char9AttackType2 = multiChar9AttackType2;
		char9AttackType3 = multiChar9AttackType3;
		char9AttackType4 = multiChar9AttackType4;
		char11AttackType1 = multiChar11AttackType1;
		char11AttackType2 = multiChar11AttackType2;
		char11AttackType3 = multiChar11AttackType3;
		char11AttackType4 = multiChar11AttackType4;
		char13AttackType1 = multiChar13AttackType1;
		char13AttackType2 = multiChar13AttackType2;
		char13AttackType3 = multiChar13AttackType3;
		char13AttackType4 = multiChar13AttackType4;
		char15AttackType1 = multiChar15AttackType1;
		char15AttackType2 = multiChar15AttackType2;
		char15AttackType3 = multiChar15AttackType3;
		char15AttackType4 = multiChar15AttackType4;
		char2AttackType1 = multiChar2AttackType1;
		char2AttackType2 = multiChar2AttackType2;
		char2AttackType3 = multiChar2AttackType3;
		char2AttackType4 = multiChar2AttackType4;
		char4AttackType1 = multiChar4AttackType1;
		char4AttackType2 = multiChar4AttackType2;
		char4AttackType3 = multiChar4AttackType3;
		char4AttackType4 = multiChar4AttackType4;
		char6AttackType1 = multiChar6AttackType1;
		char6AttackType2 = multiChar6AttackType2;
		char6AttackType3 = multiChar6AttackType3;
		char6AttackType4 = multiChar6AttackType4;
		char8AttackType1 = multiChar8AttackType1;
		char8AttackType2 = multiChar8AttackType2;
		char8AttackType3 = multiChar8AttackType3;
		char8AttackType4 = multiChar8AttackType4;
		char10AttackType1 = multiChar10AttackType1;
		char10AttackType2 = multiChar10AttackType2;
		char10AttackType3 = multiChar10AttackType3;
		char10AttackType4 = multiChar10AttackType4;
		char12AttackType1 = multiChar12AttackType1;
		char12AttackType2 = multiChar12AttackType2;
		char12AttackType3 = multiChar12AttackType3;
		char12AttackType4 = multiChar12AttackType4;
		char14AttackType1 = multiChar14AttackType1;
		char14AttackType2 = multiChar14AttackType2;
		char14AttackType3 = multiChar14AttackType3;
		char14AttackType4 = multiChar14AttackType4;
		char16AttackType1 = multiChar16AttackType1;
		char16AttackType2 = multiChar16AttackType2;
		char16AttackType3 = multiChar16AttackType3;
		char16AttackType4 = multiChar16AttackType4;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7315	{
	}
	movieClip 7316	{
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 2034 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 2035 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 2040 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 2051 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 2052 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 2061 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7317	{
	}
	movieClip 7318	{
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 2062 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 2063 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 2068 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 2079 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 2080 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 2089 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7319	{
	}
	movieClip 7320	{
	}
	movieClip 7321	{
	}
	movieClip 7323	{
	}
	instance Overhead of movieClip 7323	{
		onClipEvent (load) {
			this.swapDepths(88000);
		}
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 2090 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 2091 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 2096 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 2107 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 2108 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 2116 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7324	{
	}
	movieClip 7325	{
	}
	movieClip 7327	{
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 2117 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 2118 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 2123 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 2134 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 2135 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 2144 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7328	{
	}
	movieClip 7329	{
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 2145 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 2146 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 2151 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 2162 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 2163 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
	frame 2172 {
		assignStats();
		populateBattlefieldMulti();
		pinholeOpen.play();
		turnCounter = 1;
		name1 = multiChar1Name;
		name3 = multiChar3Name;
		name5 = multiChar5Name;
		name7 = multiChar7Name;
		name9 = multiChar9Name;
		name11 = multiChar11Name;
		name13 = multiChar13Name;
		name15 = multiChar15Name;
		name2 = multiChar2Name;
		name4 = multiChar4Name;
		name6 = multiChar6Name;
		name8 = multiChar8Name;
		name10 = multiChar10Name;
		name12 = multiChar12Name;
		name14 = multiChar14Name;
		name16 = multiChar16Name;
		char1Dead = multiChar1Dead;
		char3Dead = multiChar3Dead;
		char5Dead = multiChar5Dead;
		char7Dead = multiChar7Dead;
		char9Dead = multiChar9Dead;
		char11Dead = multiChar11Dead;
		char13Dead = multiChar13Dead;
		char15Dead = multiChar15Dead;
		char2Dead = multiChar2Dead;
		char4Dead = multiChar4Dead;
		char6Dead = multiChar6Dead;
		char8Dead = multiChar8Dead;
		char10Dead = multiChar10Dead;
		char12Dead = multiChar12Dead;
		char14Dead = multiChar14Dead;
		char16Dead = multiChar16Dead;
		MaxHP1 = multiChar1HP;
		MaxHP3 = multiChar3HP;
		MaxHP5 = multiChar5HP;
		MaxHP7 = multiChar7HP;
		MaxHP9 = multiChar9HP;
		MaxHP11 = multiChar11HP;
		MaxHP13 = multiChar13HP;
		MaxHP15 = multiChar15HP;
		MaxHP2 = multiChar2HP;
		MaxHP4 = multiChar4HP;
		MaxHP6 = multiChar6HP;
		MaxHP8 = multiChar8HP;
		MaxHP10 = multiChar10HP;
		MaxHP12 = multiChar12HP;
		MaxHP14 = multiChar14HP;
		MaxHP16 = multiChar16HP;
		MaxPsP1 = multiChar1PsP;
		MaxPsP3 = multiChar3PsP;
		MaxPsP5 = multiChar5PsP;
		MaxPsP7 = multiChar7PsP;
		MaxPsP9 = multiChar9PsP;
		MaxPsP11 = multiChar11PsP;
		MaxPsP13 = multiChar13PsP;
		MaxPsP15 = multiChar15PsP;
		MaxPsP2 = multiChar2PsP;
		MaxPsP4 = multiChar4PsP;
		MaxPsP6 = multiChar6PsP;
		MaxPsP8 = multiChar8PsP;
		MaxPsP10 = multiChar10PsP;
		MaxPsP12 = multiChar12PsP;
		MaxPsP14 = multiChar14PsP;
		MaxPsP16 = multiChar16PsP;
		MaxSteps1 = multiChar1Steps;
		MaxSteps3 = multiChar3Steps;
		MaxSteps5 = multiChar5Steps;
		MaxSteps7 = multiChar7Steps;
		MaxSteps9 = multiChar9Steps;
		MaxSteps11 = multiChar11Steps;
		MaxSteps13 = multiChar13Steps;
		MaxSteps15 = multiChar15Steps;
		MaxSteps2 = multiChar2Steps;
		MaxSteps4 = multiChar4Steps;
		MaxSteps6 = multiChar6Steps;
		MaxSteps8 = multiChar8Steps;
		MaxSteps10 = multiChar10Steps;
		MaxSteps12 = multiChar12Steps;
		MaxSteps14 = multiChar14Steps;
		MaxSteps16 = multiChar16Steps;
		char1Strength = multiChar1Strength;
		char3Strength = multiChar3Strength;
		char5Strength = multiChar5Strength;
		char7Strength = multiChar7Strength;
		char9Strength = multiChar9Strength;
		char11Strength = multiChar11Strength;
		char13Strength = multiChar13Strength;
		char15Strength = multiChar15Strength;
		char2Strength = multiChar2Strength;
		char4Strength = multiChar4Strength;
		char6Strength = multiChar6Strength;
		char8Strength = multiChar8Strength;
		char10Strength = multiChar10Strength;
		char12Strength = multiChar12Strength;
		char14Strength = multiChar14Strength;
		char16Strength = multiChar16Strength;
		char1PsyPower = multiChar1PsyPower;
		char3PsyPower = multiChar3PsyPower;
		char5PsyPower = multiChar5PsyPower;
		char7PsyPower = multiChar7PsyPower;
		char9PsyPower = multiChar9PsyPower;
		char11PsyPower = multiChar11PsyPower;
		char13PsyPower = multiChar13PsyPower;
		char15PsyPower = multiChar15PsyPower;
		char2PsyPower = multiChar2PsyPower;
		char4PsyPower = multiChar4PsyPower;
		char6PsyPower = multiChar6PsyPower;
		char8PsyPower = multiChar8PsyPower;
		char10PsyPower = multiChar10PsyPower;
		char12PsyPower = multiChar12PsyPower;
		char14PsyPower = multiChar14PsyPower;
		char16PsyPower = multiChar16PsyPower;
		char1PsyDefense = multiChar1PsyDefense;
		char3PsyDefense = multiChar3PsyDefense;
		char5PsyDefense = multiChar5PsyDefense;
		char7PsyDefense = multiChar7PsyDefense;
		char9PsyDefense = multiChar9PsyDefense;
		char11PsyDefense = multiChar11PsyDefense;
		char13PsyDefense = multiChar13PsyDefense;
		char15PsyDefense = multiChar15PsyDefense;
		char2PsyDefense = multiChar2PsyDefense;
		char4PsyDefense = multiChar4PsyDefense;
		char6PsyDefense = multiChar6PsyDefense;
		char8PsyDefense = multiChar8PsyDefense;
		char10PsyDefense = multiChar10PsyDefense;
		char12PsyDefense = multiChar12PsyDefense;
		char14PsyDefense = multiChar14PsyDefense;
		char16PsyDefense = multiChar16PsyDefense;
		char1MBlevel = 1;
		char3MBlevel = 1;
		char5MBlevel = 1;
		char7MBlevel = 1;
		char9MBlevel = 1;
		char11MBlevel = 1;
		char13MBlevel = 1;
		char15MBlevel = 1;
		char2MBlevel = 1;
		char4MBlevel = 1;
		char6MBlevel = 1;
		char8MBlevel = 1;
		char10MBlevel = 1;
		char12MBlevel = 1;
		char14MBlevel = 1;
		char16MBlevel = 1;
		char1MSlevel = 1;
		char3MSlevel = 1;
		char5MSlevel = 1;
		char7MSlevel = 1;
		char9MSlevel = 1;
		char11MSlevel = 1;
		char13MSlevel = 1;
		char15MSlevel = 1;
		char2MSlevel = 1;
		char4MSlevel = 1;
		char6MSlevel = 1;
		char8MSlevel = 1;
		char10MSlevel = 1;
		char12MSlevel = 1;
		char14MSlevel = 1;
		char16MSlevel = 1;
		char1PBlevel = 1;
		char3PBlevel = 1;
		char5PBlevel = 1;
		char7PBlevel = 1;
		char9PBlevel = 1;
		char11PBlevel = 1;
		char13PBlevel = 1;
		char15PBlevel = 1;
		char2PBlevel = 1;
		char4PBlevel = 1;
		char6PBlevel = 1;
		char8PBlevel = 1;
		char10PBlevel = 1;
		char12PBlevel = 1;
		char14PBlevel = 1;
		char16PBlevel = 1;
		char1FBmax = multiChar1PsyDefense + 1;
		char3FBmax = multiChar3PsyDefense + 1;
		char5FBmax = multiChar5PsyDefense + 1;
		char7FBmax = multiChar7PsyDefense + 1;
		char9FBmax = multiChar9PsyDefense + 1;
		char11FBmax = multiChar11PsyDefense + 1;
		char13FBmax = multiChar13PsyDefense + 1;
		char15FBmax = multiChar15PsyDefense + 1;
		char2FBmax = multiChar2PsyDefense + 1;
		char4FBmax = multiChar4PsyDefense + 1;
		char6FBmax = multiChar6PsyDefense + 1;
		char8FBmax = multiChar8PsyDefense + 1;
		char10FBmax = multiChar10PsyDefense + 1;
		char12FBmax = multiChar12PsyDefense + 1;
		char14FBmax = multiChar14PsyDefense + 1;
		char16FBmax = multiChar16PsyDefense + 1;
	}
	movieClip 7330	{
	}
	movieClip 7331	{
	}
	movieClip 7332	{
	}
	instance Overhead of movieClip 6573	{
		onClipEvent (load) {
			this.swapDepths(88000);
		}
	}
	instance pinholeOpen of movieClip 5951	{
		onClipEvent (load) {
			this.swapDepths(90001);
		}
	}
	frame 2173 {
		moveTurn = 1;
		speed = 5;
		tileSize = 50;
		velocityX = 0;
		velocityY = 0;
		currentX = char1._x;
		currentY = char1._y;
		initialX = char1._x;
		initialY = char1._y;
		MBDmg = 0;
		MSDmg = 0;
		PBDmg = 0;
		FBDmg = 0;
		char1Damage = 0;
		char2Damage = 0;
		char3Damage = 0;
		char4Damage = 0;
		char5Damage = 0;
		char6Damage = 0;
		char7Damage = 0;
		char8Damage = 0;
		char9Damage = 0;
		char10Damage = 0;
		char11Damage = 0;
		char12Damage = 0;
		char13Damage = 0;
		char14Damage = 0;
		char15Damage = 0;
		char16Damage = 0;
		char1Drain = 0;
		char2Drain = 0;
		char3Drain = 0;
		char4Drain = 0;
		char5Drain = 0;
		char6Drain = 0;
		char7Drain = 0;
		char8Drain = 0;
		char9Drain = 0;
		char10Drain = 0;
		char11Drain = 0;
		char12Drain = 0;
		char13Drain = 0;
		char14Drain = 0;
		char15Drain = 0;
		char16Drain = 0;
		damageDisplay = 0;
		moving = false;
		wonMultiBattle = 0;
		currAttackType1 = 'none';
		currAttackType2 = 'none';
		currAttackType3 = 'none';
		currAttackType4 = 'none';
		attacked = 0;
		checkedForDead = false;
		display = '';
		chosenAttack = 'none';
		mindBlastDrain = 2;
		pyroBlastDrain = 7;
		mindShieldDrain = 3;
		feedbackDrain = 5;
		meleeDrain = 0;
		charAtkDrain = 0;
		steps = 0;
		focus = 2;
		startX = 0;
		startY = 0;
		displayNameMulti();
		displayAttackButtonsMulti();
		displayHPMulti();
		displayPsPMulti();
		displayStepsMulti();
	}
	frame 2174 {
		removeDeadMulti();
		stop();
		char1.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 1 && moveTurn < 17) {
				displayInfo1Multi();
			}
		};
		char1.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char1.onEnterFrame = function () {
			if (moveTurn == 1) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 2;
				while (v2 < 17) {
					if (_root['char' + v2].hitTest(char1._x - tileSize, char1._y, true)) {
						hitCharLeft = true;
					}
					if (_root['char' + v2].hitTest(char1._x + tileSize, char1._y, true)) {
						hitCharRight = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y - tileSize, true)) {
						hitCharUp = true;
					}
					if (_root['char' + v2].hitTest(char1._x, char1._y + tileSize, true)) {
						hitCharDown = true;
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar1Movement == 'land') {
					if (Collision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar1Movement == 'flying') {
					if (subCollision.hitTest(char1._x - tileSize, char1._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char1._x + tileSize, char1._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char1._x, char1._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char1._x, char1._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char1.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char1.swapDepths(turnCounter);
			}
			if (moveTurn == 1 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char1._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char1._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityX = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char1._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char1._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char1.gotoAndStop(5);
					initialX = char1._x;
					initialY = char1._y;
					velocityY = speed;
					steps += 1;
					displayInfo1Multi();
					displayStepsMulti();
				}
				if (MaxSteps1 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char1._x += velocityX;
				char1._y += velocityY;
				currentX = char1._x;
				currentY = char1._y;
			}
		};
		char2.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 2 && moveTurn < 17) {
				displayInfo2Multi();
			}
		};
		char2.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char2.onEnterFrame = function () {
			if (moveTurn == 2) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 2) {
						if (_root['char' + v2].hitTest(char2._x - tileSize, char2._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char2._x + tileSize, char2._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char2._x, char2._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar2Movement == 'land') {
					if (Collision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar2Movement == 'flying') {
					if (subCollision.hitTest(char2._x - tileSize, char2._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char2._x + tileSize, char2._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char2._x, char2._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char2._x, char2._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char2.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char2.swapDepths(turnCounter);
			}
			if (moveTurn == 2 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char2._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char2._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityX = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char2._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char2._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char2.gotoAndStop(5);
					initialX = char2._x;
					initialY = char2._y;
					velocityY = speed;
					steps += 1;
					displayInfo2Multi();
					displayStepsMulti();
				}
				if (MaxSteps2 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char2._x += velocityX;
				char2._y += velocityY;
				currentX = char2._x;
				currentY = char2._y;
			}
		};
		char3.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 3 && moveTurn < 17) {
				displayInfo3Multi();
			}
		};
		char3.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char3.onEnterFrame = function () {
			if (moveTurn == 3) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 3) {
						if (_root['char' + v2].hitTest(char3._x - tileSize, char3._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char3._x + tileSize, char3._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char3._x, char3._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar3Movement == 'land') {
					if (Collision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar3Movement == 'flying') {
					if (subCollision.hitTest(char3._x - tileSize, char3._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char3._x + tileSize, char3._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char3._x, char3._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char3._x, char3._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char3.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char3.swapDepths(turnCounter);
			}
			if (moveTurn == 3 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char3._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char3._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityX = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char3._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char3._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char3.gotoAndStop(5);
					initialX = char3._x;
					initialY = char3._y;
					velocityY = speed;
					steps += 1;
					displayInfo3Multi();
					displayStepsMulti();
				}
				if (MaxSteps3 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char3._x += velocityX;
				char3._y += velocityY;
				currentX = char3._x;
				currentY = char3._y;
			}
		};
		char4.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 4 && moveTurn < 17) {
				displayInfo4Multi();
			}
		};
		char4.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char4.onEnterFrame = function () {
			if (moveTurn == 4) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 4) {
						if (_root['char' + v2].hitTest(char4._x - tileSize, char4._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char4._x + tileSize, char4._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char4._x, char4._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar4Movement == 'land') {
					if (Collision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar4Movement == 'flying') {
					if (subCollision.hitTest(char4._x - tileSize, char4._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char4._x + tileSize, char4._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char4._x, char4._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char4._x, char4._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char4.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char4.swapDepths(turnCounter);
			}
			if (moveTurn == 4 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char4._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char4._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityX = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char4._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char4._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char4.gotoAndStop(5);
					initialX = char4._x;
					initialY = char4._y;
					velocityY = speed;
					steps += 1;
					displayInfo4Multi();
					displayStepsMulti();
				}
				if (MaxSteps4 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char4._x += velocityX;
				char4._y += velocityY;
				currentX = char4._x;
				currentY = char4._y;
			}
		};
		char5.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 5 && moveTurn < 17) {
				displayInfo5Multi();
			}
		};
		char5.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char5.onEnterFrame = function () {
			if (moveTurn == 5) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 5) {
						if (_root['char' + v2].hitTest(char5._x - tileSize, char5._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char5._x + tileSize, char5._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char5._x, char5._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar5Movement == 'land') {
					if (Collision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar5Movement == 'flying') {
					if (subCollision.hitTest(char5._x - tileSize, char5._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char5._x + tileSize, char5._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char5._x, char5._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char5._x, char5._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char5.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char5.swapDepths(turnCounter);
			}
			if (moveTurn == 5 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char5._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char5._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityX = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char5._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char5._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char5.gotoAndStop(5);
					initialX = char5._x;
					initialY = char5._y;
					velocityY = speed;
					steps += 1;
					displayInfo5Multi();
					displayStepsMulti();
				}
				if (MaxSteps5 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char5._x += velocityX;
				char5._y += velocityY;
				currentX = char5._x;
				currentY = char5._y;
			}
		};
		char6.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 6 && moveTurn < 17) {
				displayInfo6Multi();
			}
		};
		char6.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char6.onEnterFrame = function () {
			if (moveTurn == 6) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 6) {
						if (_root['char' + v2].hitTest(char6._x - tileSize, char6._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char6._x + tileSize, char6._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char6._x, char6._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar6Movement == 'land') {
					if (Collision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar6Movement == 'flying') {
					if (subCollision.hitTest(char6._x - tileSize, char6._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char6._x + tileSize, char6._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char6._x, char6._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char6._x, char6._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char6.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char6.swapDepths(turnCounter);
			}
			if (moveTurn == 6 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char6._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char6._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityX = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char6._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char6._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char6.gotoAndStop(5);
					initialX = char6._x;
					initialY = char6._y;
					velocityY = speed;
					steps += 1;
					displayInfo6Multi();
					displayStepsMulti();
				}
				if (MaxSteps6 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char6._x += velocityX;
				char6._y += velocityY;
				currentX = char6._x;
				currentY = char6._y;
			}
		};
		char7.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 7 && moveTurn < 17) {
				displayInfo7Multi();
			}
		};
		char7.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char7.onEnterFrame = function () {
			if (moveTurn == 7) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 7) {
						if (_root['char' + v2].hitTest(char7._x - tileSize, char7._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char7._x + tileSize, char7._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char7._x, char7._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar7Movement == 'land') {
					if (Collision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar7Movement == 'flying') {
					if (subCollision.hitTest(char7._x - tileSize, char7._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char7._x + tileSize, char7._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char7._x, char7._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char7._x, char7._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char7.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char7.swapDepths(turnCounter);
			}
			if (moveTurn == 7 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char7._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char7._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityX = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char7._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char7._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char7.gotoAndStop(5);
					initialX = char7._x;
					initialY = char7._y;
					velocityY = speed;
					steps += 1;
					displayInfo7Multi();
					displayStepsMulti();
				}
				if (MaxSteps7 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char7._x += velocityX;
				char7._y += velocityY;
				currentX = char7._x;
				currentY = char7._y;
			}
		};
		char8.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 8 && moveTurn < 17) {
				displayInfo8Multi();
			}
		};
		char8.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char8.onEnterFrame = function () {
			if (moveTurn == 8) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 8) {
						if (_root['char' + v2].hitTest(char8._x - tileSize, char8._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char8._x + tileSize, char8._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char8._x, char8._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar8Movement == 'land') {
					if (Collision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar8Movement == 'flying') {
					if (subCollision.hitTest(char8._x - tileSize, char8._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char8._x + tileSize, char8._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char8._x, char8._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char8._x, char8._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char8.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char8.swapDepths(turnCounter);
			}
			if (moveTurn == 8 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char8._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char8._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityX = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char8._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char8._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char8.gotoAndStop(5);
					initialX = char8._x;
					initialY = char8._y;
					velocityY = speed;
					steps += 1;
					displayInfo8Multi();
					displayStepsMulti();
				}
				if (MaxSteps8 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char8._x += velocityX;
				char8._y += velocityY;
				currentX = char8._x;
				currentY = char8._y;
			}
		};
		char9.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 9 && moveTurn < 17) {
				displayInfo9Multi();
			}
		};
		char9.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char9.onEnterFrame = function () {
			if (moveTurn == 9) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 9) {
						if (_root['char' + v2].hitTest(char9._x - tileSize, char9._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char9._x + tileSize, char9._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char9._x, char9._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar9Movement == 'land') {
					if (Collision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar9Movement == 'flying') {
					if (subCollision.hitTest(char9._x - tileSize, char9._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char9._x + tileSize, char9._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char9._x, char9._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char9._x, char9._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char9.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char9.swapDepths(turnCounter);
			}
			if (moveTurn == 9 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char9._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char9._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityX = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char9._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char9._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char9.gotoAndStop(5);
					initialX = char9._x;
					initialY = char9._y;
					velocityY = speed;
					steps += 1;
					displayInfo9Multi();
					displayStepsMulti();
				}
				if (MaxSteps9 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char9._x += velocityX;
				char9._y += velocityY;
				currentX = char9._x;
				currentY = char9._y;
			}
		};
		char10.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 10 && moveTurn < 17) {
				displayInfo10Multi();
			}
		};
		char10.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char10.onEnterFrame = function () {
			if (moveTurn == 10) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 10) {
						if (_root['char' + v2].hitTest(char10._x - tileSize, char10._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char10._x + tileSize, char10._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char10._x, char10._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar10Movement == 'land') {
					if (Collision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar10Movement == 'flying') {
					if (subCollision.hitTest(char10._x - tileSize, char10._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char10._x + tileSize, char10._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char10._x, char10._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char10._x, char10._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char10.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char10.swapDepths(turnCounter);
			}
			if (moveTurn == 10 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char10._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char10._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityX = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char10._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char10._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char10.gotoAndStop(5);
					initialX = char10._x;
					initialY = char10._y;
					velocityY = speed;
					steps += 1;
					displayInfo10Multi();
					displayStepsMulti();
				}
				if (MaxSteps10 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char10._x += velocityX;
				char10._y += velocityY;
				currentX = char10._x;
				currentY = char10._y;
			}
		};
		char11.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 11 && moveTurn < 17) {
				displayInfo11Multi();
			}
		};
		char11.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char11.onEnterFrame = function () {
			if (moveTurn == 11) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 11) {
						if (_root['char' + v2].hitTest(char11._x - tileSize, char11._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char11._x + tileSize, char11._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char11._x, char11._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar11Movement == 'land') {
					if (Collision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar11Movement == 'flying') {
					if (subCollision.hitTest(char11._x - tileSize, char11._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char11._x + tileSize, char11._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char11._x, char11._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char11._x, char11._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char11.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char11.swapDepths(turnCounter);
			}
			if (moveTurn == 11 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char11._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char11._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityX = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char11._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char11._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char11.gotoAndStop(5);
					initialX = char11._x;
					initialY = char11._y;
					velocityY = speed;
					steps += 1;
					displayInfo11Multi();
					displayStepsMulti();
				}
				if (MaxSteps11 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char11._x += velocityX;
				char11._y += velocityY;
				currentX = char11._x;
				currentY = char11._y;
			}
		};
		char12.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 12 && moveTurn < 17) {
				displayInfo12Multi();
			}
		};
		char12.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char12.onEnterFrame = function () {
			if (moveTurn == 12) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 12) {
						if (_root['char' + v2].hitTest(char12._x - tileSize, char12._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char12._x + tileSize, char12._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char12._x, char12._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar12Movement == 'land') {
					if (Collision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar12Movement == 'flying') {
					if (subCollision.hitTest(char12._x - tileSize, char12._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char12._x + tileSize, char12._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char12._x, char12._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char12._x, char12._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char12.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char12.swapDepths(turnCounter);
			}
			if (moveTurn == 12 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char12._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char12._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityX = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char12._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char12._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char12.gotoAndStop(5);
					initialX = char12._x;
					initialY = char12._y;
					velocityY = speed;
					steps += 1;
					displayInfo12Multi();
					displayStepsMulti();
				}
				if (MaxSteps12 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char12._x += velocityX;
				char12._y += velocityY;
				currentX = char12._x;
				currentY = char12._y;
			}
		};
		char13.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 13 && moveTurn < 17) {
				displayInfo13Multi();
			}
		};
		char13.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char13.onEnterFrame = function () {
			if (moveTurn == 13) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 13) {
						if (_root['char' + v2].hitTest(char13._x - tileSize, char13._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char13._x + tileSize, char13._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char13._x, char13._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar13Movement == 'land') {
					if (Collision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar13Movement == 'flying') {
					if (subCollision.hitTest(char13._x - tileSize, char13._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char13._x + tileSize, char13._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char13._x, char13._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char13._x, char13._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char13.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char13.swapDepths(turnCounter);
			}
			if (moveTurn == 13 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char13._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char13._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityX = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char13._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char13._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char13.gotoAndStop(5);
					initialX = char13._x;
					initialY = char13._y;
					velocityY = speed;
					steps += 1;
					displayInfo13Multi();
					displayStepsMulti();
				}
				if (MaxSteps13 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char13._x += velocityX;
				char13._y += velocityY;
				currentX = char13._x;
				currentY = char13._y;
			}
		};
		char14.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 14 && moveTurn < 17) {
				displayInfo14Multi();
			}
		};
		char14.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char14.onEnterFrame = function () {
			if (moveTurn == 14) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 14) {
						if (_root['char' + v2].hitTest(char14._x - tileSize, char14._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char14._x + tileSize, char14._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char14._x, char14._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar14Movement == 'land') {
					if (Collision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar14Movement == 'flying') {
					if (subCollision.hitTest(char14._x - tileSize, char14._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char14._x + tileSize, char14._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char14._x, char14._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char14._x, char14._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char14.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char14.swapDepths(turnCounter);
			}
			if (moveTurn == 14 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char14._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char14._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityX = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char14._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char14._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char14.gotoAndStop(5);
					initialX = char14._x;
					initialY = char14._y;
					velocityY = speed;
					steps += 1;
					displayInfo14Multi();
					displayStepsMulti();
				}
				if (MaxSteps14 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char14._x += velocityX;
				char14._y += velocityY;
				currentX = char14._x;
				currentY = char14._y;
			}
		};
		char15.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 15 && moveTurn < 17) {
				displayInfo15Multi();
			}
		};
		char15.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char15.onEnterFrame = function () {
			if (moveTurn == 15) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 15) {
						if (_root['char' + v2].hitTest(char15._x - tileSize, char15._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char15._x + tileSize, char15._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char15._x, char15._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar15Movement == 'land') {
					if (Collision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar15Movement == 'flying') {
					if (subCollision.hitTest(char15._x - tileSize, char15._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char15._x + tileSize, char15._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char15._x, char15._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char15._x, char15._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char15.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char15.swapDepths(turnCounter);
			}
			if (moveTurn == 15 && attacked == 0) {
				if (Key.isDown(65) && moving == false) {
					char15._rotation = 90;
					display = '';
				}
				if (Key.isDown(65) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(68) && moving == false) {
					char15._rotation = 270;
					display = '';
				}
				if (Key.isDown(68) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityX = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(87) && moving == false) {
					char15._rotation = 180;
					display = '';
				}
				if (Key.isDown(87) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (Key.isDown(83) && moving == false) {
					char15._rotation = 0;
					display = '';
				}
				if (Key.isDown(83) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char15.gotoAndStop(5);
					initialX = char15._x;
					initialY = char15._y;
					velocityY = speed;
					steps += 1;
					displayInfo15Multi();
					displayStepsMulti();
				}
				if (MaxSteps15 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char15._x += velocityX;
				char15._y += velocityY;
				currentX = char15._x;
				currentY = char15._y;
			}
		};
		char16.onRollOver = function () {
			if (attacked !== 1 && moveTurn !== 16 && moveTurn < 17) {
				displayInfo16Multi();
			}
		};
		char16.onRollOut = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onPress = function () {
			displayStepsMulti();
			displayHPMulti();
			displayPsPMulti();
			displayNameMulti();
			displayAttackButtonsMulti();
		};
		char16.onEnterFrame = function () {
			if (moveTurn == 16) {
				hitCharLeft = false;
				hitCharRight = false;
				hitCharUp = false;
				hitCharDown = false;
				var v2 = 1;
				while (v2 < 17) {
					if (v2 != 16) {
						if (_root['char' + v2].hitTest(char16._x - tileSize, char16._y, true)) {
							hitCharLeft = true;
						}
						if (_root['char' + v2].hitTest(char16._x + tileSize, char16._y, true)) {
							hitCharRight = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y - tileSize, true)) {
							hitCharUp = true;
						}
						if (_root['char' + v2].hitTest(char16._x, char16._y + tileSize, true)) {
							hitCharDown = true;
						}
					}
					++v2;
				}
				hitWallLeft = false;
				hitWallRight = false;
				hitWallUp = false;
				hitWallDown = false;
				if (multiChar16Movement == 'land') {
					if (Collision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (Collision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (Collision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (Collision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				if (multiChar16Movement == 'flying') {
					if (subCollision.hitTest(char16._x - tileSize, char16._y, true)) {
						hitWallLeft = true;
					}
					if (subCollision.hitTest(char16._x + tileSize, char16._y, true)) {
						hitWallRight = true;
					}
					if (subCollision.hitTest(char16._x, char16._y - tileSize, true)) {
						hitWallUp = true;
					}
					if (subCollision.hitTest(char16._x, char16._y + tileSize, true)) {
						hitWallDown = true;
					}
				}
				char16.swapDepths(10 + turnCounter);
			}
			if (wonMultiBattle !== 0) {
				char16.swapDepths(turnCounter);
			}
			if (moveTurn == 16 && attacked == 0) {
				if (Key.isDown(37) && moving == false) {
					char16._rotation = 90;
					display = '';
				}
				if (Key.isDown(37) && !moving && hitWallLeft == false && hitCharLeft == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(39) && moving == false) {
					char16._rotation = 270;
					display = '';
				}
				if (Key.isDown(39) && !moving && hitWallRight == false && hitCharRight == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityX = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(38) && moving == false) {
					char16._rotation = 180;
					display = '';
				}
				if (Key.isDown(38) && !moving && hitWallUp == false && hitCharUp == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = -1 * speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (Key.isDown(40) && moving == false) {
					char16._rotation = 0;
					display = '';
				}
				if (Key.isDown(40) && !moving && hitWallDown == false && hitCharDown == false) {
					moving = true;
					char16.gotoAndStop(5);
					initialX = char16._x;
					initialY = char16._y;
					velocityY = speed;
					steps += 1;
					displayInfo16Multi();
					displayStepsMulti();
				}
				if (MaxSteps16 - steps < 0 || initialX + tileSize <= currentX || initialY + tileSize <= currentY || initialX - tileSize >= currentX || initialY - tileSize >= currentY) {
					moving = false;
					if (velocityX < 0) {
						velocityX = 0;
					}
					if (velocityX > 0) {
						velocityX = 0;
					}
					if (velocityY < 0) {
						velocityY = 0;
					}
					if (velocityY > 0) {
						velocityY = 0;
					}
				}
				char16._x += velocityX;
				char16._y += velocityY;
				currentX = char16._x;
				currentY = char16._y;
			}
		};
	}
	frame 2179 {
		displaySelectionMulti();
		displayAttackButtonsMulti();
		stop();
	}
	instance battleDisplay of movieClip 7309	{
		onClipEvent (load) {
			this.swapDepths(89000);
		}
	}
	frame 2190 {
		stop();
		attacked = 1;
		playFanfareMusic();
		if (wonMultiBattle == 1) {
			wongold = P1name + ' wins!';
		}
		if (wonMultiBattle == 2) {
			wongold = P2name + ' wins!';
		}
	}
	instance victoryBox of movieClip 7312	{
		onClipEvent (load) {
			this.swapDepths(100000);
		}
		onClipEvent (rollOver) {
			this.gotoAndStop(2);
		}
		onClipEvent (rollOut) {
			this.gotoAndStop(1);
		}
		onClipEvent (press) {
			_root.Darkness_opacity50._visible = false;
			this._visible = false;
			_root.play();
		}
	}
	frame 2191 {
		stop();
		clearBattlefieldMulti();
		goingtoScene = 'multiplayerMenu';
		pinholeClose._visible = true;
		pinholeClose.swapDepths(500000);
		pinholeClose.play();
	}
